Skip to content

Commit a0a9729

Browse files
Refactor resulttransmit to eliminate latches
1 parent 08a9d3c commit a0a9729

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

vtr_flow/benchmarks/verilog/boundtop.v

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,9 @@ reg[31:0] temp_rgResultData;
424424
begin
425425
next_state = 0 ;
426426
end
427+
temp_rgResultReady = rgResultReady;
428+
temp_rgResultData = rgResultData;
429+
temp_rgResultSource = rgResultSource;
427430
end
428431
1 :
429432
begin
@@ -482,10 +485,13 @@ reg[31:0] temp_rgResultData;
482485
temp_rgResultReady = 1'b0 ;
483486
temp_rgResultSource = 2'b10 ;
484487
end
485-
default:
486-
begin
487-
temp_rgResultReady = u01a || u01b || u01c || v01a || v01b || v01c || u10a || u10b || u10c || v10a || v10b || v10c;
488-
end
488+
default:
489+
begin
490+
next_state = state;
491+
temp_rgResultReady = u01a || u01b || u01c || v01a || v01b || v01c || u10a || u10b || u10c || v10a || v10b || v10c;
492+
temp_rgResultData = rgResultData;
493+
temp_rgResultSource = rgResultSource;
494+
end
489495
endcase
490496
end
491497
endmodule
@@ -778,10 +784,8 @@ module boundcontroller (raygroupout, raygroupwe, raygroupid, enablenear, raygrou
778784
end
779785
end
780786

781-
782-
783787
always @*
784-
begin
788+
begin
785789
case (state)
786790
0 :
787791
begin

0 commit comments

Comments
 (0)