Skip to content

Commit

Permalink
properly set sefine for verilator
Browse files Browse the repository at this point in the history
  • Loading branch information
thommythomaso committed Oct 5, 2023
1 parent 8a25131 commit 131cc52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 3 additions & 2 deletions idma.mk
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,10 @@ IDMA_VLT_PARAMS ?=

.PRECIOUS: $(IDMA_VLT_DIR)/%_elab.log

$(IDMA_VLT_DIR)/%_elab.log: $(IDMA_PICKLE_DIR)/$(IDMA_VLT_TOP).sv
$(IDMA_VLT_DIR)/%_elab.log: $(IDMA_PICKLE_DIR)/sources.json
mkdir -p $(IDMA_VLT_DIR)
cd $(IDMA_VLT_DIR); $(VERILATOR) $(IDMA_VLT_ARGS) $(IDMA_VLT_PARAMS) -Mdir obj_$* ../../../$^ --top-module $(IDMA_VLT_TOP) 2> $*_elab.log
$(MORTY) -f $< -i --top $(IDMA_VLT_TOP) -DVERILATOR --propagate_defines -o $(IDMA_VLT_DIR)/$(IDMA_VLT_TOP).sv
cd $(IDMA_VLT_DIR); $(VERILATOR) $(IDMA_VLT_ARGS) $(IDMA_VLT_PARAMS) -Mdir obj_$* $(IDMA_VLT_TOP).sv --top-module $(IDMA_VLT_TOP) 2> $*_elab.log

idma_verilator_clean:
rm -rf $(IDMA_VLT_DIR)/obj_*
Expand Down
8 changes: 2 additions & 6 deletions src/backend/idma_error_handler.sv
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,7 @@ module idma_error_handler #(
// the counter is 0 -> no transfer in the datapath. This is an impossible
// state
end else begin
`IDMA_NONSYNTH_BLOCK(\
`ASSERT_NEVER(inactive_tf_wait, 1'b1, clk_i, !rst_ni)\
)
`ASSERT_NEVER(inactive_tf_wait, 1'b1, clk_i, !rst_ni)
end
end
end
Expand Down Expand Up @@ -335,9 +333,7 @@ module idma_error_handler #(
// the counter is 0 -> no transfer in the datapath. This is an impossible
// state
end else begin
`IDMA_NONSYNTH_BLOCK(\
`ASSERT_NEVER(inactive_tf_wait_last_w, 1'b1, clk_i, !rst_ni)\
)
`ASSERT_NEVER(inactive_tf_wait_last_w, 1'b1, clk_i, !rst_ni)
end
end
end
Expand Down

0 comments on commit 131cc52

Please sign in to comment.