Skip to content

Commit b42344d

Browse files
committed
Upd sim for verilator
1 parent 3ea082c commit b42344d

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SRC_FILES := $(shell find $(SRC_DIR) -name '*.vh') \
1818
all: build execute simulate
1919

2020
build:
21-
$(VERILATOR) --trace --binary $(SRC_FILES) -I$(SRC_DIR) -I$(TB_DIR) --top $(TOP_NAME)_tb
21+
$(VERILATOR) --binary $(SRC_FILES) --trace --trace-params --trace-structs -I$(SRC_DIR) -I$(TB_DIR) --top $(TOP_NAME)_tb
2222

2323
execute:
2424
./obj_dir/V$(TOP_NAME)_tb

src/i2c_master_bit_ctrl.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ module i2c_master_bit_ctrl (
256256
else if (rst || !ena ) filter_cnt <= 14'h0;
257257
// verilator lint_off WIDTHTRUNC
258258
else if (~|filter_cnt) filter_cnt <= clk_cnt >> 2; //16x I2C bus frequency
259+
// verilator lint_on WIDTHTRUNC
259260
else filter_cnt <= filter_cnt -1;
260261

261262

src/i2c_master_byte_ctrl.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,5 +341,6 @@ module i2c_master_byte_ctrl (
341341
end
342342

343343
endcase
344+
// verilator lint_on CASEINCOMPLETE
344345
end
345346
endmodule

src/tb/si5340_config_loader_tb.sv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/* verilator lint_off MODDUP */
44
module si5340_config_loader_tb();
5+
/* verilator lint_on MODDUP */
56

67
si5340_config_loader_if dut_if();
78
environment env;

0 commit comments

Comments
 (0)