Skip to content

Commit

Permalink
ENH: Verilator: fix min()/max() macros
Browse files Browse the repository at this point in the history
  • Loading branch information
flooklab authored and themperek committed Dec 20, 2020
1 parent 871839e commit a04bc83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions basil/firmware/modules/utils/RAMB16_S1_S2_sim.v
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
`define max(a,b) (a) > (b) ? (a) : (b)
`define min(a,b) (a) < (b) ? (a) : (b)

`include "../includes/log2func.v"

Expand Down
4 changes: 2 additions & 2 deletions basil/firmware/modules/utils/RAMB16_S1_S9_sim.v
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ parameter WIDTHB = 8;
parameter SIZEB = 2048;
parameter ADDRWIDTHB = 11;

`define max(a,b) {(a) > (b) ? (a) : (b)}
`define min(a,b) {(a) < (b) ? (a) : (b)}
`define max(a,b) (a) > (b) ? (a) : (b)
`define min(a,b) (a) < (b) ? (a) : (b)

`include "../includes/log2func.v"

Expand Down

0 comments on commit a04bc83

Please sign in to comment.