Skip to content
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

Compilation of J1B with Verilator does not work in Linux/Debian. Small modification of j1b.v needed. #67

Open
wzab opened this issue Jul 6, 2019 · 0 comments

Comments

@wzab
Copy link
Contributor

wzab commented Jul 6, 2019

When I try to run the j1b emulated with Verilator in the j1b/verilator directory, I get the following error:

verilator --l2-name v -Wall -I../verilog/ --cc j1b.v ../verilog/j1.v ../verilog/stack.v --top-module j1b --exe sim_main.cpp
%Error-PROCASSWIRE: j1b.v:28: Procedural assignment to wire, perhaps intended var (IEEE 2017 6.5): insn
%Error: Exiting due to 1 error(s)
%Error: See the manual and http://www.veripool.org/verilator for more assistance.
%Error: Command Failed /usr/bin/verilator_bin --l2-name v -Wall -I../verilog/ --cc j1b.v  ../verilog/j1.v ../verilog/stack.v --top-module j1b --exe sim_main.cpp
make: *** [Makefile:8: obj_dir/Vj1b] Error 10

To cure it, I have to change the 21st line in j1b from:

  wire [15:0] insn;

to

  reg [15:0] insn;

After that change the simulation and compilation goes fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant