Thread: [myhdl-list] migrating from myHDL-0.5.1 to myHDL_0.6
Brought to you by:
jandecaluwe
From: Sami Al D. <sam...@gm...> - 2009-01-25 20:14:46
|
Dear All, I think there should be a guide for migrating from myHDL-0.5.1 to 0.6 in linux and windows. Further more the manual should contain examples on the new features. -- Best Regards Sami Aldalahmeh |
From: Jan D. <ja...@ja...> - 2009-01-25 22:18:01
|
Sami Al Dalahmah wrote: > Dear All, > > I think there should be a guide for migrating from myHDL-0.5.1 to 0.6 in > linux and windows. The What's New document is supposed to document the new features: http://www.myhdl.org/doc/0.6/whatsnew/0.6.html For migration, I think the most important section is the one on backwards incompatible changes: http://www.myhdl.org/doc/0.6/whatsnew/0.6.html#backwards-incompatible-changes > Further more the manual should contain examples on > the new features. The most important features are conversion to VHDL and enhancements to the convertor capabilities. Consequently, the chapter on conversion has been rewritten completely: http://www.myhdl.org/doc/0.6/manual/conversion.html Moreover, there is a new chapter dedicated to conversion examples, both in Verilog and in VHDL: http://www.myhdl.org/doc/0.6/manual/conversion.html In the future, more in-depth examples, e.g. about test bench conversion, will be added to the on-line Cookbook. Regards, Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a hardware description language: http://www.myhdl.org |
From: Sami Al D. <sam...@gm...> - 2009-01-25 22:25:02
|
Dear Jan, Thank you for your response. Maybe I should have been more precise, what I should have said was "installation guide" . I have myHDL 0.5.1 with python 2.5 on Ubuntu, if I want to have the new myHDL 0.6, should I remove the 0.5.1 version or remove a specific files in the bin directory? Thank you for your time and a job well done in myHDL. On Sun, Jan 25, 2009 at 9:53 PM, Jan Decaluwe <ja...@ja...> wrote: > Sami Al Dalahmah wrote: > > Dear All, > > > > I think there should be a guide for migrating from myHDL-0.5.1 to 0.6 in > > linux and windows. > > The What's New document is supposed to document the new features: > http://www.myhdl.org/doc/0.6/whatsnew/0.6.html > > For migration, I think the most important section is the one on > backwards incompatible changes: > > > http://www.myhdl.org/doc/0.6/whatsnew/0.6.html#backwards-incompatible-changes > > > Further more the manual should contain examples on > > the new features. > > The most important features are conversion to VHDL and enhancements > to the convertor capabilities. Consequently, the chapter on conversion > has been rewritten completely: > > http://www.myhdl.org/doc/0.6/manual/conversion.html > > Moreover, there is a new chapter dedicated to conversion examples, > both in Verilog and in VHDL: > > http://www.myhdl.org/doc/0.6/manual/conversion.html > > In the future, more in-depth examples, e.g. about test bench > conversion, will be added to the on-line Cookbook. > > Regards, > > Jan > > -- > Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com > Python as a hardware description language: > http://www.myhdl.org > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > -- Best Regards Sami Aldalahmeh |
From: Günter D. <dan...@we...> - 2009-01-26 07:13:56
|
Sami Al Dalahmah wrote: > Dear Jan, > Thank you for your response. Maybe I should have been more precise, what I > should have said was "installation guide" . I have myHDL 0.5.1 with python > 2.5 on Ubuntu, if I want to have the new myHDL 0.6, should I remove the > 0.5.1 version or remove a specific files in the bin directory? Thank you for > your time and a job well done in myHDL. Hi Sami, The upgrade is Python standard procedure and it depends on how you installed MyHDL in the first place. If you have a RPM package (assuming there is one for Ubuntu) you can just run the update process and it will replace the old files. If you used the easy_install, there is an update feature. http://peak.telecommunity.com/DevCenter/EasyInstall#upgrading-a-package Now with the source installation (python setup.py install) I have to admit I always did it the rough way, by removing the site-package/myhdl folder and install the new package. I am not sure whether there is also something like an update feature? Cheers, Guenter |
From: Jan D. <ja...@ja...> - 2009-01-26 20:38:37
|
Sami Al Dalahmah wrote: > Dear Jan, > > Thank you for your response. Maybe I should have been more precise, what > I should have said was "installation guide" . I have myHDL 0.5.1 with > python 2.5 on Ubuntu, if I want to have the new myHDL 0.6, should I > remove the 0.5.1 version or remove a specific files in the bin > directory? There are no bin files, myhdl is installed as a directory somewhere in your Python path. Personally, I always use 'python setup.py install', as for all my Python packages. Usually I don't even bother to remove the old installation, although I admit that would be cleaner. (Note that for this to go wrong, a package's behavior should depend on the existence of superfluous files, which is rather strange behaviour.) Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a hardware description language: http://www.myhdl.org |
From: Sami Al D. <sam...@gm...> - 2009-01-26 23:07:46
|
Dear All, Thank you for your response, it is really helpful especially Gunter's approach. But for now I think I will go with the straight forward one suggested by Jan. And I assume I should install the new VPI file of the 0.6 for the cosimulation instead of the old one in the simulator (Icarus in my case), right? I really like the analyze/verify features, because they save me the script used to compile ans simulate the Verilog code. By the way does anyone have good experience in Icarus (maybe it is somehow unrelated to myHDL but it can be useful)? I ran into the issue when you have a python script using the function "os.system(*command*)" to run Icarus for compiling and simulating then GTKwave for showing the wave diagram, sometimes when you have a syntax error python just do not realize this and continue the script. Do you if Icarus can return a value that can be tested for errors that can help my script? Actually I asked the same question in the Icarus Wiki and they pointed to a Perl test suite that I can learn from, this requires investing time to learn Perl then translate it to Python, which is an option I like to make one my last ones. Sorry for the long email and thank you for your time reading it. On Mon, Jan 26, 2009 at 10:38 PM, Jan Decaluwe <ja...@ja...> wrote: > Sami Al Dalahmah wrote: > > Dear Jan, > > > > Thank you for your response. Maybe I should have been more precise, what > > I should have said was "installation guide" . I have myHDL 0.5.1 with > > python 2.5 on Ubuntu, if I want to have the new myHDL 0.6, should I > > remove the 0.5.1 version or remove a specific files in the bin > > directory? > > There are no bin files, myhdl is installed as a directory somewhere in > your Python path. > > Personally, I always use 'python setup.py install', as for all my > Python packages. Usually I don't even bother to remove the old > installation, although I admit that would be cleaner. (Note that > for this to go wrong, a package's behavior should depend on the > existence of superfluous files, which is rather strange behaviour.) > > Jan > > -- > Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com > Python as a hardware description language: > http://www.myhdl.org > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > -- Best Regards Sami Aldalahmeh |
From: Newell J. <pil...@gm...> - 2009-01-26 23:15:32
|
On Mon, Jan 26, 2009 at 3:07 PM, Sami Al Dalahmah <sam...@gm...>wrote: > Dear All, > > Thank you for your response, it is really helpful especially Gunter's > approach. But for now I think I will go with the straight forward one > suggested by Jan. And I assume I should install the new VPI file of the 0.6 > for the cosimulation instead of the old one in the simulator (Icarus in my > case), right? > > I really like the analyze/verify features, because they save me the script > used to compile ans simulate the Verilog code. By the way does anyone have > good experience in Icarus (maybe it is somehow unrelated to myHDL but it can > be useful)? I ran into the issue when you have a python script using the > function "os.system(*command*)" to run Icarus for compiling and simulating > then Just remember that you are simply programming in Python. Therefore, there are other ways of calling the command above (whether or not this would be the right thing to do or not will depend on what you doing). Look at Popen in the subprocess module that comes with Python. You can do try-except blocks as well etc. >>> help(os.system) This will show you that os.system will give you an exit status. This is the beauty of MyHDL....its in Python! -- Newell http://www.gempillar.com Before enlightenment: chop wood, carry water After enlightenment: code, build circuits |
From: Günter D. <dan...@we...> - 2009-01-27 09:47:01
|
Sami Al Dalahmah wrote: ... > By the way does anyone have > good experience in Icarus (maybe it is somehow unrelated to myHDL but it can > be useful)? I ran into the issue when you have a python script using the > function "os.system(*command*)" to run Icarus for compiling and simulating > then GTKwave for showing the wave diagram, sometimes when you have a syntax > error python just do not realize this and continue the script. Do you if > Icarus can return a value that can be tested for errors that can help my > script? Actually I asked the same question in the Icarus Wiki and they > pointed to a Perl test suite that I can learn from, this requires investing > time to learn Perl then translate it to Python, which is an option I like to > make one my last ones. > > Sorry for the long email and thank you for your time reading it. > I thought there was a discussion about that last year or so on the Icarus mailing list, but the only post I found was this from 2007: http://www.nabble.com/gEDA-dev:-Icarus-Verilog-return-codes--td8653647.html However, if I understand you right then you want to know when the simulation failed, which might not be covered by that return code. As Newell mentioned in another post, one way to solve that is not to use os.system() but for example os.popen() instead. There you can read the output of the application and in the test bench you can write some text that can be search for in the calling python script. Cheers, Guenter |
From: Jan D. <ja...@ja...> - 2009-01-27 10:20:38
|
Sami Al Dalahmah wrote: > Dear All, > > Thank you for your response, it is really helpful especially Gunter's > approach. But for now I think I will go with the straight forward one > suggested by Jan. And I assume I should install the new VPI file of the > 0.6 for the cosimulation instead of the old one in the simulator (Icarus > in my case), right? Yes. -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a hardware description language: http://www.myhdl.org |
From: Brendan R. <bre...@gm...> - 2009-01-26 08:36:57
|
Sami Al Dalahmah <sami.dalahmah <at> gmail.com> writes: > > > Dear Jan, > > Thank you for your response. Maybe I should have been more precise, what I should have said was "installation guide" . I have myHDL 0.5.1 with python 2.5 on Ubuntu, if I want to have the new myHDL 0.6, should I remove the 0.5.1 version or remove a specific files in the bin directory? Thank you for your time and a job well done in myHDL. Hi Sami, I have separate virtual Pythons for most every tool or combination of tools that I need. I use virtualenv to do this and recommend it highly. Doug Hellmann even has a nice wrapper, that I also use: http://www.doughellmann.com/projects/virtualenvwrapper/ Cheers, - Brendan |