X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ships%2FDebug.ship;h=2c8178501ac15e0a45b7607d4b12f5f7b6ef5586;hb=5f5d9ed8353b6889f9dab9b4dc1fbb0f0e9d38da;hp=861e66c2888afcac74ad7fc53c9a3d7dd43a91b7;hpb=9c6ec87d89ece203ed90302c524247d4b58595d6;p=fleet.git diff --git a/ships/Debug.ship b/ships/Debug.ship index 861e66c..2c81785 100644 --- a/ships/Debug.ship +++ b/ships/Debug.ship @@ -63,7 +63,7 @@ public void service() { wire break; wire uart_cts; assign uart_cts = 0; - assign rst_out = rst_in || (force_reset!=0); + assign rst_out = rst_in || (force_reset!=0) /* || break */; // fst=3 means clock divider is 3+2=5 for a 50Mhz clock => 10Mhz // using a 33Mhz clock, @@ -91,7 +91,7 @@ public void service() { // fpga -> host always @(posedge clk) begin - if (rst_in) begin + if (rst_in /* || break */) begin count_in <= 0; count_out <= 0; force_reset <= 0; @@ -128,6 +128,11 @@ public void service() { data_to_fleet_read_enable <= 0; if (!data_to_fleet_empty && !data_to_fleet_read_enable) begin + // Note: if the switch fabric refuses to accept a new item, + // we can get deadlocked in a state where sending a reset + // code (2'b11) won't have any effect. Probably need to go + // back to using the break signal. + // command 0: data if (data_to_fleet[7:6] == 2'b00 && `out_empty) begin data_to_fleet_read_enable <= 1;