Re: [myhdl-list] TypeError: Unexpected type with toVerilog
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2012-05-29 07:45:35
|
On 05/26/2012 10:49 AM, Jan Coombs wrote: > On 26/05/12 00:28, Jan Coombs wrote: >> The /always_comb/ problem still shows in my processor code when >> using enums, but converts ok when constants are used: > > The attached code shows a problem with using enum for state control > inside an @always_comb process. I have carefully cut this down from > my working code to show just my conversion problem. I would be really surprized if this is your original problem, because it is related to enum signals which are not driven, unlikely to be useful in a real design. Anyway, I have "solved" the problem reported in development by raising error messages on the use of undriven enum signals. Supporting this would be easy in Verilog, but not in VHDL, at least not at the top-level, where enums create some complications. Do you really have a need for undriven enum signals? -- 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 |