Re: [myhdl-list] Simplifying Interfaces
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2012-06-27 04:05:35
|
On 6/26/12 7:23 AM, Christopher Felton wrote: > On 6/25/2012 3:30 AM, Wesley New wrote: >> Firstly, thanks for Chris for bringing this feature to light. It is >> definitely one I will employ. >> >> The only problem I am having is that the ports arent expanded out when I am >> using user-defined hdl. >> As it isnt creating a flat file, the wrapper doesnt have any wishbone ports. >> >> For instance see the attached file. >> >> Initially all I wish to do is to encapsulate the wishbone ports so that I >> dont have to type them every time I instantiate a module that has a >> wishbone interface >> >> Regards >> >> Wesley >> > > > You would not be able to use the "object" on the top-level. The outside > world (your Verilog or VHDL) wouldn't know how to interface to a /wb/. > The top-level has to be the discrete signals everything inside can use > the /wb/ to simplify the interface. > > I haven't tested it with the user defined code, you might have to do and > extra step, but it should be possible. > > Regards, > Chris > I added an example that I believe does what you are trying to do. https://bitbucket.org/cfelton/examples/src/tip/stitch The example is a little redonkulous right now, lot of top-level ports that are not used. The top-levels will always need to be the individual signals (best of my knowledge) don't think it is reasonable that the top-level can be something else. Regards, Chris |