Re: [myhdl-list] attribute enum_encoding: string;
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2013-09-05 13:29:01
|
<snip> > > But "ghdl -a ..." still complains unless I patch m_think.vhd to add "attribute enum_encoding: string;" > > tensor(pts/0):~/m_think> diff -u m_think.vhd.orig m_think.vhd > --- m_think.vhd.orig 2013-09-05 08:31:50.002627130 -0400 > +++ m_think.vhd 2013-09-05 08:37:51.481874280 -0400 > @@ -6,6 +6,7 @@ > > package pck_m_think is > > +attribute enum_encoding: string; > type t_enum_states_1 is ( > IDLE, > THINK, > I don't recall all the VHDL rules here off the top of my head. I can test with some synthesis tools as well and do some research. It is a small change that can probably be added, but I have to do some inquiring before I create a pull-request. Best I can tell adding attribute enum_encoding: string should be harmless, just an additional attribute http://quartushelp.altera.com/11.1/mergedProjects/hdl/vhdl/vhdl_file_dir_enum_encoding.htm Regards, Chris |