Re: [myhdl-list] MEP 107 Initial support
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2013-09-13 21:37:47
|
I have merged this in now on bitbucket. Development is now on branch 0.9-dev, bug fixes for 0.8 on branch default. The merged-in new functionality is major - I encourage all to test further. If it all works as advertised, this is exciting because it is a fantastic example of how we can support advanced features (interfaces) in conversion even when the target languages don't support them. Let's test this thoroughly, and then create a lot of buzz about it :-) NOTE: There are 2 known issues to be resolved, one with list of Signals naming (discovered by jck), another with dynamically set attributes (discovered by me, see failing unit test in conversion/toVerilog and conversion/toVHDL. I also propose that MEP 107 is adapted to the current implementation if necessary - (iff there are features not yet supported I suggest to factor them out for a future MEP). Thanks Chris for already starting with the documentation. Jan On 09/11/2013 09:47 PM, Jan Decaluwe wrote: > Hi Keerthan, > > Thanks for the efforts, I think this is going to be a great enhancement. > > Before proceeding, I have posted some comments/questions to the > pull request. (I propose to keep the detail discussion there, right > with the pull request.) > > Jan > > > On 08/07/2013 11:59 PM, Keerthan jai.c wrote: >> I just created a 0.9-dev branch, merged the mep107 branch into it and >> sent a pull request to jandecaluwe/myhdl. >> >> >> If you would like to improve upon this implementation, you can fork >> the mep107 branch at https://bitbucket.org/jck2/myhdl/**and send me a >> pull request. >> >> The full changeset can be viewed here: >> https://bitbucket.org/jandecaluwe/myhdl/pull-request/3/ >> >> >> On Wed, Aug 7, 2013 at 5:33 PM, Keerthan jai.c <jck...@gm... >> <mailto:jck...@gm...>> wrote: >> >> Oops, the first line in __init__ of Operand should be: concat(opcode, >> a, b) >> >> >> On Wed, Aug 7, 2013 at 5:30 PM, Keerthan jai.c <jck...@gm... >> <mailto:jck...@gm...>> wrote: >> >> I just pushed better support for dealing with signal attributes. >> >> This enables us to do cool things such as subclassing Signal to >> define a bitfield. Among other things, I beleive this feature will be >> helpful to describe things like instruction opcodes, which are >> actually a single signal(in memory), rather than a collection of >> discrete signals. For example: >> >> class Operand(Signal): def __init__(opcode=intbv(0)[4:], >> a=intbv(0)[8:], b=intbv(0)[8:]): val = concat(fielda, fieldb) >> super(Operand, self).__init__(val) self.opcode = self(20, 16) self.a >> = self(16, 8) self.b = self(8, 0) >> >> def decoder(operand, ...): @always_comb def logic(): if >> operand.opcode == ... ... >> >> and in the generated HDL, operand.opcode would refer to bits 20:16. >> >> >> >> On Mon, Aug 5, 2013 at 10:11 PM, Christopher Felton >> <chr...@gm... <mailto:chr...@gm...>> wrote: >> >> On 7/29/13 5:23 PM, Keerthan jai.c wrote: >>> Thanks a lot Chris! >>> >>> Jan, Did you get a chance to take a look at the implementation? I >>> would love to hear some feedback on whether you think this >>> implementation can be merged into myhdl. >>> >>> >> >> @jck, >> >> I just submitted a pull-request with some mods to the tests and a >> start on some documentation. At this point I would suggest we create >> a 0.9-dev branch, merge the mep-107 to the 0.9-dev, and create a >> pull-request to Jan's repo. >> >> It will be easier to comment on the changes etc. in the >> pull-request. >> >> Regards, Chris >> >> >> >> ------------------------------------------------------------------------------ >> >> > Get your SQL database under version control now! >> Version control is standard for application code, but databases >> havent caught up. So what steps can you take to put your SQL >> databases under version control? Why should you start doing it? Read >> more to find out. >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> >> > _______________________________________________ >> myhdl-list mailing list myh...@li... >> <mailto:myh...@li...> >> https://lists.sourceforge.net/lists/listinfo/myhdl-list >> >> >> >> >> -- have a nice day -jck >> >> >> >> >> -- have a nice day -jck >> >> >> >> >> -- have a nice day -jck >> >> >> ------------------------------------------------------------------------------ >> >> > Get 100% visibility into Java/.NET code with AppDynamics Lite! >> It's a free troubleshooting tool designed for production. Get down to >> code-level detail for bottlenecks, with <2% overhead. Download for >> free and get started troubleshooting in minutes. >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> >> >> >> >> _______________________________________________ myhdl-list mailing >> list myh...@li... >> https://lists.sourceforge.net/lists/listinfo/myhdl-list >> > > -- 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 |