From help-request at octave dot org Tue Jan 18 10:27:10 2005 Subject: Re: Verilog - x and z values with octave load From: Joe Koski To: Luke Darnell , Octave Help Date: Tue, 18 Jan 2005 09:27:44 -0700 on 1/17/05 10:27 PM, Luke Darnell at luke dot darnell at g2microsystems dot com wrote: > Hi, > > I am trying to load some data from a verilog simulation. > My verilog simulation dumps each variable I am interested in, to a file of the > same name. > I am then using the octave command "load variable_name" to load the required > variable_name. > I am running into problems the when variable file has undefined values, "x", > or high impedance values "z". > "load" doesn't seem to like "x" or "z" values. > Is there a way I can change "load" to read in "x" and "z"?? > Or does anyone have a better way of reading in values from a verilog/vhdl > simulation?? > Luke, Two things to try. The octave C-style input format (e.g., fscanf(file_id,template,"C") allows line-by-line reading in a "for" loop with the use of a specified format, but is slow for large files. Second, since all you are trying to do is plot data, take a look at doing it directly with gnuplot, especially if you have gnuplot 4.0. You already know (almost) how to write the script if you have been using octave for plots, and you have more options available than can be passed through octave to gnuplot. Joe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------