Re: [myhdl-list] Combinational Logic Modeling
Brought to you by:
jandecaluwe
From: Joseph C. <ca...@au...> - 2009-07-18 01:49:24
|
On Jul 17, 2009, at 1:34 PM, Jan Decaluwe wrote: > Joseph Cali wrote: >> You are correct that Example 2 can be solved with an MSB detector >> (not only solved, but solved more efficiently) and in that sense it >> is >> not an ideal example. The general form of the question is how to >> write >> large combinational encoders and decoders in myhdl where neither the >> input nor the output are binary. I will look at the EnumItem >> suggestion >> in the coming days. > > Please be precise in what you are asking. You original post mentioned > "how to implement in MyHDL" but from the context I inferred you were > asking how to *convert* a *specific* design problem from MyHDL to > Verilog, probably for synthesis. Now you suggest your example was only > meant to illustrate a general case. If you want meaningful feedback, > don't make me guess. > Right, that was my mistake. I will be sure to make my questions more clear in the future. You provided a great solution to that specific problem, which made me realize that I did not give a solid example with a proper description. > There's a *very* big difference between > > 1) modeling > 2) conversion to Verilog/VHDL > 3) synthesis > I understand the distinctions here quite well. I will be sure to use the correct terminology in any further conversation on this list. > Modeling in MyHDL is intended to be completely general in the Python > sense. Much, much more powerful than Verilog. > > Conversion is very restrictive. Synthesis is even more restrictive. > Moreover, I can't control synthesis contraints. > > My goal with conversion is the following: whatever you may want to > write in Verilog *for synthesis*, should be easier or as easy to do > with MyHDL. But there's no way in which MyHDL can magically avoid > synthesis restrictions. Therefore, if synthesis is your concern, > you should also understand synthesis itself quite well. > All the reasoning here is sound. > Jan > > -- > 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 > Analog design automation: http://www.mephisto-da.com > World-class digital design: http://www.easics.com > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) will > have > the opportunity to enter the BlackBerry Developer Challenge. See > full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list Joseph |