Re: wave storage

Felix Salfelder <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel
Message-ID <[email protected]>
On Wed, Sep 10, 2014 at 04:33:10PM -0400, al davis wrote:
> need that "wave" command.

there's now a wave command in gnucap-uf (from 0.0.2) that supports some
basics. waves are grouped into WAVE_LISTs which are basically of type
map<string, WAVE>.  _sim->_waves now is a map<string, WAVE_LIST>. string
_sim->_label specifies which of the wave lists is 'active'.

simulations store their results into the respective WAVE_LIST (tr into
"tran", dc into "dc"...) and set _sim->_label accordingly. a label
option passed to the simulation command is meant to override this.

a list command lists the wave lists and the waves within a WAVE_LIST. a
select command sets _sim->_label, a build command reads in waves
(interactively, or from simulator output), a dump command dumps waves.
and theres a command that scales and one that warps a wave.

CKT_BASE::find_wave looks for waves in _sim->_waves[_sim->_label] first,
if unsuccessful, it splits the name into a:b (or rather ([^:]*):(.*))
and checks _sim->_waves[a] for a wave named b. in particular,
measurements work with all these waves.

i think the plugin is a candidate for what is still "apps", but it will
require some more tinkering. if i knew what to do, i'd maybe put it
somewhere...

cheers
felix

PS: i couldn't yet make Abhinavs plot command work with the new _waves,
but i might have another look the next days.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.