Re: [myhdl-list] Re: printing vcd files for custom objects
Brought to you by:
jandecaluwe
From: bedros <be...@ya...> - 2003-11-17 18:18:40
|
Jan, My comments are below. --- Jan Decaluwe <ja...@ja...> wrote: > bedros wrote: > > Jan, > > > > Thanks a lot for providing myhdl. I used it to > model a > > design and I'm very impressed. > > > > However, it still needs a lot of work. I made some > > changes to files (_Signal.py and _traceSignal.py) > to > > allow printing vcd output of a custom object > (class) > > instead of only int and intbv. > > The fallback behavior for any type should be to > print > the string representation (from str()) as a VCD > string > output. I think this is the best one can do for the > general > case. Could you explain why it does not work for > you? printing __str__ attribute of a user-defined object (custom class) should work, but we need to pass the code generator (_genNameCode()) to the class to allocate symbol(s) for the object. Because traceSignals class allocates only one symbol per object (for VCD format) > > You are more than welcome. An interface to a popular > VHDL > simulator would be a real value. Some remarks: > > - some time ago another engineer offered help to > provide > a cosimulation interface to VHDL. I explained the > needs, > also warning that this kind of development is not > necessarily > fun (from my experience with the Verilog PLI - > though it's > real fun to have it once it works.) I have not heard > from > him since ... > > - last time I checked I believe Aldec's PLI did not > have > the capability to write values to signals (only to > read > them). In that case, we don't have a solution. > > Keep up the good work, and let us know about it! > > Regards, Jan I'll be working on myhdl as a part of my current job. I need a modeling language/platform to make the right design decisions before I start coding in VHDL. and having a library like myhdl will save me a lot of time. All my contribution would be free of charge, because we're not an EDA company and I was going to do it on my own from the scratch anyway. -Bedros |