Re: [myhdl-list] Simplifying Interfaces
Brought to you by:
jandecaluwe
From: Wesley N. <we...@sk...> - 2012-07-03 12:34:35
|
Great, I have more in-depth look at this and post some feed back as soon as I get some time. Thanks for the example. :) Wes On Tue, Jul 3, 2012 at 1:34 PM, Jan Decaluwe <ja...@ja...> wrote: > On 06/26/2012 02:35 PM, Christopher Felton wrote: > > On 6/22/2012 10:24 AM, Jan Decaluwe wrote: > >> Hi: > >> > >> I don't follow the example completely, but if you - > >> an experienced MyHDL designer - are surprized, then > >> others will be even more so. > >> > >> I wonder if we can come up with an example suited for > >> the MyHDL by Example section, that demonstrates the power > >> of these techniques. > >> > >> The message should be that conversion only deals with > >> code inside generators, in the context of their namespaces. > >> Conversion restrictions only apply to that code. > >> The namespaces are created during elaboration, so it > >> doesn't matter how. > >> > > > > I have been trying to think of a good example, an example that isn't too > > large (too much code to dig through for a cookbook example) and an > > example that fits nicely, I haven't come up with too many ideas. > > > > One example that appears to be used heavily with VHDL records and SV > > structs is a simple {opcode, address, flags} bundling. But this example > > on its own wouldn't be functional, it wouldn't do anything. > > > > It would be nice to have a small example that does something, I am > > failing to think of a good example. > > > > Anyone else have an idea for an example? I think for the example to be > > useful, you would want a design that you would use multiple modules and > > have some interface between. But the interface would be small (limited > > number of signals in the class) so the the example would be digestible. > > Maybe something based on complex numbers, as Tom D has > hinted. One could represent them as a class instance, > or even as a tuple. > > > -- > 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 > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > |