Skip to content

Commit 2d142a8

Browse files
committed
cdc_*_tb: Fix mailbox type mismatch
In both testbenches, `dst_mbox` is defined as `int` type but populated and read via `integer` variables. Hence, change the mailbox type to `integer`. Fixes a slang error (`argument of type 'integer' connects to 'ref' port of inequivalent type 'int'`)
1 parent f67418b commit 2d142a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/cdc_2phase_tb.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module cdc_2phase_tb;
4747
end
4848

4949
// Mailbox with expected items on destination side.
50-
mailbox #(int) dst_mbox = new();
50+
mailbox #(integer) dst_mbox = new();
5151
int num_sent = 0;
5252
int num_received = 0;
5353
int num_failed = 0;

test/cdc_fifo_tb.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module cdc_fifo_tb;
5151
cdc_fifo_2phase #(.T(logic [31:0]), .LOG_DEPTH(DEPTH)) i_dut (.*);
5252

5353
// Mailbox with expected items on destination side.
54-
mailbox #(int) dst_mbox = new();
54+
mailbox #(integer) dst_mbox = new();
5555
int num_sent = 0;
5656
int num_received = 0;
5757
int num_failed = 0;

0 commit comments

Comments
 (0)