Re: [myhdl-list] Restrictions for conversion
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2012-05-21 16:56:32
|
On 05/21/2012 01:28 PM, Norbo wrote: > then i realized that it probably would just be better to make the Signal > as a base class and derive every other type from it, wheter it is (intbv, > bool"x" or modbv, enum, etc.). This probably doesnt made sense once when > only the intbv existed? > or is it done the way it is done because of performance reason? I'm just jumping in on this thread, but if that is the conclusion there is something fundamentally wrong. intbv is just a hardware friendly datatype. Signal is the type we need to do racefree communication. These types should be complementary - they can be used together (because you want to be able to do racefree communication with any datatype) or separate (because the datatype are useful for plain variables also.) -- 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 |