Skip to content

Commit 7559f16

Browse files
Add default values to next state logic in boundcontroller
1 parent a0a9729 commit 7559f16

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

vtr_flow/benchmarks/verilog/boundtop.v

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,50 @@ module boundcontroller (raygroupout, raygroupwe, raygroupid, enablenear, raygrou
784784
end
785785
end
786786

787+
// Refactoring this with better style like resulttransmit and listhandler blocks would be very
788+
// time consuming, so instead apply an old trick where we initialize the value to previous state and
789+
// then let the case statement simply superimpose updates on top of that.
787790
always @*
788-
begin
791+
begin
792+
next_state = state ;
793+
temp_busy = busy;
794+
temp_statepeek = statepeek;
795+
temp_raygroupoutl = raygroupoutl ;
796+
temp_cts = cts ;
797+
temp_passCTSout = passCTSout ;
798+
temp_resetcount = resetcount ;
799+
temp_l0reset = l0reset ;
800+
temp_addr = addr ;
801+
temp_startAddr = startAddr ;
802+
temp_boundNodeIDout = boundNodeIDout ;
803+
temp_baseaddress = baseaddress ;
804+
temp_hitmask = hitmask ;
805+
temp_hit1 = hit1 ;
806+
temp_hit2 = hit2 ;
807+
temp_hit3 = hit3 ;
808+
temp_triIDvalid = triIDvalid ;
809+
temp_triID = triID ;
810+
temp_lack = lack ;
811+
temp_addrind = addrind ;
812+
temp_addrindvalid = addrindvalid ;
813+
temp_tladdr = tladdr ;
814+
temp_tladdrvalid = tladdrvalid ;
815+
temp_count = count ;
816+
temp_subcount = subcount ;
817+
temp_maskcount = maskcount ;
818+
temp_triDatalatch = triDatalatch ;
819+
temp_t1 = t1 ;
820+
temp_u1 = u1 ;
821+
temp_v1 = v1 ;
822+
temp_id1 = id1 ;
823+
temp_t2 = t2 ;
824+
temp_u2 = u2 ;
825+
temp_v2 = v2 ;
826+
temp_id2 = id2 ;
827+
temp_t3 = t3 ;
828+
temp_u3 = u3 ;
829+
temp_v3 = v3 ;
830+
temp_id3 = id3 ;
789831
case (state)
790832
0 :
791833
begin

0 commit comments

Comments
 (0)