Verilator: Fix syntax in icmp_reply example
@@ -59,7 +59,7 @@ parameter S_MODIFY_PACKET = 3'b010;
parameter S_SEND_PACKET = 3'b011;
reg [2:0] state;
-reg [31:0] packet_buffer [63:0];
+reg [31:0] packet_buffer [31:0];
reg [4:0] rx_word_ptr, tx_word_ptr;
reg [1:0] empty_saved;
@@ -126,7 +126,7 @@ always @(posedge clk or negedge reset_n) begin
if (stream_out_ready) begin
tx_word_ptr <= tx_word_ptr + 1;
- if (tx_word_ptr)
+ if (tx_word_ptr > 0)
stream_out_startofpacket<= 1'b0;
if (tx_word_ptr == rx_word_ptr - 1) begin
@@ -144,7 +144,9 @@ always @(posedge clk or negedge reset_n) begin
end
end
-
+ default: begin
+ state <= S_IDLE;
+ end
endcase
end
end
