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

Small fixes for monitor generation #31

Merged
merged 3 commits into from Oct 22, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prevent warning in icarus verilog with output of generate.py

This is unfortunate as it requires switching between wire/reg, but otherwise
icarus verilog complains that this always block has no sensitivity list.
  • Loading branch information
Joshua Leahy
Joshua Leahy committed Sep 18, 2019
commit 3e2dac95fcf8cc07de669f38893166f67a496126
@@ -522,15 +522,18 @@ def usage():
print(" output reg o%d_valid," % (chidx))
print(" output reg [63:0] o%d_order," % (chidx))
print(" output reg [%d:0] o%d_data," % (rob_data_width-1, chidx))
print(" output reg [15:0] errcode")
if robdepth == 0:
print(" output wire [15:0] errcode")
else:
print(" output reg [15:0] errcode")
print(");")

if robdepth == 0:
for chidx in range(channels):
print(" always @* o%d_valid = i%d_valid;" % (chidx, chidx))
print(" always @* o%d_order = i%d_order;" % (chidx, chidx))
print(" always @* o%d_data = i%d_data;" % (chidx, chidx))
print(" always @* errcode = 0;")
print(" assign errcode = 0;")

else:
orderbits = ceil(log2(robdepth))
ProTip! Use n and p to navigate between commits in a pull request.