Skip to content

Commit e716b5a

Browse files
dawidzimimphil
authored andcommitted
Add the Width parameter to prim_buf module
The prim_buf.sv file in Ibex is a manual copy of a file which is typically auto-generated by FuseSoC/primgen. However, Ibex DV doesn't yet run FuseSoC, and we provide a pregenerated copy instead. The auto-generated file and its copy got out of sync. Fix that by adding the new Width parameter.
1 parent 7071b04 commit e716b5a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

dv/uvm/core_ibex/common/prim/prim_buf.sv

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
// Its contents are taken from the file which would be generated by FuseSoC.
99
// https://github.com/lowRISC/ibex/issues/893
1010

11-
module prim_buf (
12-
input in_i,
13-
output logic out_o
11+
module prim_buf #(
12+
parameter int Width = 1
13+
) (
14+
input [Width-1:0] in_i,
15+
output logic [Width-1:0] out_o
1416
);
1517

1618
if (1) begin : gen_generic
17-
prim_generic_buf u_impl_generic (
19+
prim_generic_buf#(.Width(Width)) u_impl_generic (
1820
.*
1921
);
2022
end

0 commit comments

Comments
 (0)