User manual

exp1_traffic.v (5/5)
8
//==== sequential part =====================================
always@( posedge clk_16 or negedge rst_n ) begin
if( rst_n==0 ) begin
clks <= 24'd0;
state <= S_NORMAL;
countdown <= C_PERIOD;
HEX0 <= 7'h7f;
end
else begin
clks <= next_clks;
state <= next_state;
countdown <= next_countdown;
HEX0 <= next_HEX0;
end
end
endmodule