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:
parent
1925c188c8
commit
9b63e23bda
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user