Re: [myhdl-list] Bug in MyHDL compiler?
Brought to you by:
jandecaluwe
From: David G. <dsg...@gm...> - 2011-09-27 12:10:53
|
While considering other approaches for a register file, if I could return functions that would be synthesized into tasks, then I could have a very similar interface to the one I imagined. It seems that the hierarchy extractor could ignore these unknown objects as long as they're used only during the elaboration phase. Is there a technical reason this isn't done? I'd like to extend MyHDL to support this. If you could just give me a pointer or two to get started it'd make this easier for me (I have some experience in compiler implementation) 1) I think that if I modify the _ConvertVisitor to treat non-instance functions as either being ignored or the same as other functions, this would work, since MyHDL doesn't generate hierarchy, so the returned function would be accessible from the outer scope in the generated code. 2) Would it be more effective to make another subclass of ast.NodeVisitor and have all of the code generator/waveform viewer visitors inherit from the subclass of NodeVisitor instead of NodeVisitor itself? 3) Does the waveform analyzer require something different for this? Thanks, David On Tue, Sep 27, 2011 at 3:46 AM, Jan Decaluwe <ja...@ja...> wrote: > On 09/27/2011 06:13 AM, David Greenberg wrote: >> When I try to run the following code in a file, it terminates with an >> error. It appears to occur when a memory list is used in a function >> that doesn't return something directly executable, > > Hierarchy extraction (used for lower level tasks like conversion > and waveform tracing) doesn't work for things that are not strictly > instances according to MyHDL definition: > > http://www.myhdl.org/doc/current/manual/modeling.html#structural-modeling > > > > > -- > Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com > Python as a HDL: http://www.myhdl.org > VHDL development, the modern way: http://www.sigasi.com > World-class digital design: http://www.easics.com > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > |