Skip to content

Commit 2083ff8

Browse files
phsauterthommythomaso
authored andcommitted
Fix implicit cast of enum-type
store_req_t is a parameter coming from above, it contains tag_mode_e. This leads to an error in slang flagging the implicit cast: > error: no implicit conversion from 'bit[0:0]' to 'tag_mode_e'; > explicit conversion exists, are you missing a cast? If we just assign a casted zero-vector this is prevented.
1 parent 7abcc36 commit 2083ff8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hit_miss_detect/axi_llc_tag_store.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ module axi_llc_tag_store #(
255255
end
256256
end
257257

258-
`FFLARN(req_q, req_i, load_req, store_req_t'{default: '0}, clk_i, rst_ni)
258+
`FFLARN(req_q, req_i, load_req, store_req_t'(0), clk_i, rst_ni)
259259
`FFLARN(busy_q, busy_d, switch_busy, 1'b0, clk_i, rst_ni)
260260
assign busy_d = ~busy_q;
261261
`FFLARN(ram_rvalid_q, ram_rvalid_d, lock_rvalid, way_ind_t'(0), clk_i, rst_ni)

0 commit comments

Comments
 (0)