1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00

Adding always_latch to avoid verilator warnings

This commit is contained in:
aolofsson 2021-03-02 16:49:20 -05:00
parent 1925c188c8
commit 9b63e23bda

View File

@ -19,7 +19,7 @@ module oh_lat0 #(parameter DW = 1 // data width
.out(out[DW-1:0]));
`else
reg [DW-1:0] out_reg;
always @ (clk or in)
always_latch @ (clk or in)
if (!clk)
out_reg[DW-1:0] <= in[DW-1:0];
assign out[DW-1:0] = out_reg[DW-1:0];