Skip to content

Commit

Permalink
[hardware] Fix VLEN parameter passing to Verilator
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Jul 2, 2024
1 parent 56d9a0f commit 22946d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions hardware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ $(veril_library)/V$(veril_top): $(config_file) Makefile ../Bender.yml $(shell fi
# Verilate the design
$(veril_path)/verilator -f $(veril_library)/bender_script_$(config) \
-GNrLanes=$(nr_lanes) \
-GVLEN=$(vlen) \
-O3 \
-Wno-fatal \
-Wno-PINCONNECTEMPTY \
Expand Down
4 changes: 3 additions & 1 deletion hardware/tb/ara_tb_verilator.sv
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
// Description: Top level testbench module for Verilator.

module ara_tb_verilator #(
parameter int unsigned NrLanes = 0
parameter int unsigned NrLanes = 0,
parameter int unsigned VLEN = 0
)(
input logic clk_i,
input logic rst_ni,
Expand All @@ -27,6 +28,7 @@ module ara_tb_verilator #(

ara_testharness #(
.NrLanes (NrLanes ),
.VLEN (VLEN ),
.AxiAddrWidth(AxiAddrWidth ),
.AxiDataWidth(AxiWideDataWidth)
) dut (
Expand Down

0 comments on commit 22946d8

Please sign in to comment.