-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The localtest doesn't work with Verilator 5.xxx #81
Comments
It seems that this is related to using undocumented features of Verilator.
So probably, the memory should be initialized with |
…verilator 5.xxx and with newest versions of Python 3. The problems were described in jamesbowman#81 The fix uses $readmemh to fill the memory. However, it does not allow specifying the filename. Therefore, it is assumed that there is a symlink `ram.hex` pointing to the desired hex file. The problem with installation of created ad hoc Python package was worked around by using the `develop` command in setup.py together with `--prefix` option pointing to `build` directory. It still complains about using the obsolete easy install functionality, but at least works with Python 3.11.
I have prepared a work around, allowing me to generate the J1B firmware with Verilator on current Debian/testing. |
FWIW, the reason you're seeing this issue is because starting from Verilator version 4.210, the model class is an interface object. I created a pull request a while back that points to the correct internal object locations (well for the newer 4.x versions at least): #76 I do agree it's better to not use internals. |
I'm using a Debian/testing system with
Verilator 5.006 2023-01-22 rev (Debian 5.006-3)
When I try to run
localtest
inswapforth/j1b/verilator
directory, I get the following error:The text was updated successfully, but these errors were encountered: