Skip to content

Commit 5fbee52

Browse files
Eliminate latches in vblockramcontroller
1 parent 48dcce9 commit 5fbee52

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

vtr_flow/benchmarks/verilog/boundtop.v

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,18 @@ reg temp_datavalid;
15611561

15621562
always @(*)
15631563

1564-
begin
1564+
begin
1565+
next_state = state;
1566+
temp_data = data;
1567+
temp_waddr = waddr;
1568+
temp_datavalid = datavalid;
1569+
// For the unregistered values, we have to pick default behavior;
1570+
// these values are used in enough other defined states to appear to
1571+
// be reasonable fallbacks, but putting this here does change design
1572+
// intent:
1573+
we = 1'b0 ;
1574+
want_addr = 1'b1 ;
1575+
want_data = 1'b0 ;
15651576
case (state)
15661577
0 :
15671578
begin

0 commit comments

Comments
 (0)