Re: [myhdl-list] Small failing example
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2008-11-07 14:13:34
|
Jan Decaluwe wrote: > Jos Huisken wrote: >> Attached is a small, hierarchical example failing with an xor in a >> full-adder. >> The sensitivity list of the xor (using the ports) within the full-adder >> is inconsistent with the used (internal) signals. >> So both simulation fails and the verilog/VHDL conversion is wrong. >> Maybe the example is somewhat artificial... maybe I do something wrong. >> These is my first small example. > > I have looked into your example. The problem is with the usage > of ports inside lists. There's good news and bad news :-): > The good news is that with internal signals (for example, in larger, > more realistic examples), similar code should work as expected. > The bad news is that I don't see a way to get this to work with > ports. This means that I propose to detect this situation and > flag it as a conversion error. I have just pushed a number of patches to the repo, including checks on the use of list of signals: * ports are not allowed to be part of a list * a signals is not allowed to be part of more than one list Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com From Python to silicon: http://www.myhdl.org |