Re: [myhdl-list] Prerequisites to run the MyHDL regression test
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-02-28 15:26:51
|
On 2/28/15 4:16 AM, Josy Boelen wrote: > I happen to work under Windows (8.1) using PyDev, Sigasi VHDL editor and > Impulse vcd-viewer plug-ins in Eclipse. It seems to me that most others > work under Linux, though. > What are the prerequisites to run the MyHDL regression tests? And can it > be done under Windows? I tried some of them manually but all of them > returned a lot of 'False' results. > I do majority of my work on a *nix system. I do have access to a Windows machine with Python and MyHDL setup. On this machine I use the git bash [1]. The git bash will have `make` etc. (I believe). Then I also have `iverilog` and `modelsim`. Some of the test require `py.test` [2] to be installed The test suite has two categories: 1. core (core and core2) 2. conversion The *core* don't require any cosimulation, these you should be able to run out of the box. # setup myhdl, install the latest or create links >> cd <clone dir>/myhdl/test/core >> make This will run one set of tests, you should see them all pass >> cd <clone dir>/myhdl/test/core2 >> py.test This will run the second set of core tests, again all should pass. For the conversion tests you will need a simulator installed an possibly the myhdl.vpi built and copied. The Windows machine I have access to, has modelsim. To run the general conversion (these don't require the myhdl.vpi) >> cd <clone dir>myhdl/test/conversion/general >> make vcom # or make icarus, make GHDL, make vlog On my linux machine, I have 3 failing tests on the master branch with `icarus` and 5 wiht `GHDL`. On the windows machine I have most tests failing (icarus, GHDL, and VCOM) ... not sure why. Is this what you are seeing (reporting)? The toVerilog directories will require the myhdl.vpi, we can cover these in a follow-up. [1] https://openhatch.org/missions/windows-setup/install-git-bashl [2] http://pytest.org/latest/getting-started.html |