-
Notifications
You must be signed in to change notification settings - Fork 29
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
Improve Verilator compatibility 3 #150
Improve Verilator compatibility 3 #150
Conversation
@@ -36,8 +36,8 @@ parameter WIDTHB = 2; | |||
parameter SIZEB = SIZEA/2; | |||
parameter ADDRWIDTHB = 13; | |||
|
|||
`define max(a,b) {(a) > (b) ? (a) : (b)} | |||
`define min(a,b) {(a) < (b) ? (a) : (b)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This somehow got interpreted by Verilator as repetition operator construct ({count{...}}
)
if I understand the error message correctly.
Codecov Report
@@ Coverage Diff @@
## master #150 +/- ##
=======================================
Coverage 31.92% 31.92%
=======================================
Files 72 72
Lines 4780 4780
=======================================
Hits 1526 1526
Misses 3254 3254 Continue to review full report at Codecov.
|
@@ -79,7 +79,7 @@ always @(posedge CLK) | |||
reg [31:0] DATA_BUF; | |||
always @(posedge CLK) | |||
if(RST) begin | |||
DATA_BUF = 0; | |||
DATA_BUF <= 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
Small fixes for Verilator.