mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 21:07:34 -04:00
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.
This commit is contained in:
parent
7071b04a66
commit
e716b5add8
1 changed files with 6 additions and 4 deletions
|
@ -8,13 +8,15 @@
|
|||
// Its contents are taken from the file which would be generated by FuseSoC.
|
||||
// https://github.com/lowRISC/ibex/issues/893
|
||||
|
||||
module prim_buf (
|
||||
input in_i,
|
||||
output logic out_o
|
||||
module prim_buf #(
|
||||
parameter int Width = 1
|
||||
) (
|
||||
input [Width-1:0] in_i,
|
||||
output logic [Width-1:0] out_o
|
||||
);
|
||||
|
||||
if (1) begin : gen_generic
|
||||
prim_generic_buf u_impl_generic (
|
||||
prim_generic_buf#(.Width(Width)) u_impl_generic (
|
||||
.*
|
||||
);
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue