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

Improve Verilator compatibility 3 #150

Merged
merged 4 commits into from Dec 20, 2020
Merged

Improve Verilator compatibility 3 #150

merged 4 commits into from Dec 20, 2020

Conversation

flooklab
Copy link
Contributor

Small fixes for Verilator.

@@ -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)}
Copy link
Contributor Author

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
Copy link

codecov bot commented Dec 19, 2020

Codecov Report

Merging #150 (2b9c38f) into master (af5e949) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af5e949...2b9c38f. Read the comment docs.

@@ -79,7 +79,7 @@ always @(posedge CLK)
reg [31:0] DATA_BUF;
always @(posedge CLK)
if(RST) begin
DATA_BUF = 0;
DATA_BUF <= 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@themperek themperek merged commit a04bc83 into SiLab-Bonn:master Dec 20, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants