T-bird Signal on DE0

Submitted by james on Fri, 09/29/2017 - 20:53

 

 

CIRCUIT PICTURE HERE

 

counter32.v

module counter32 ( CLOCK_50, counter_out ); 
input   CLOCK_50;                       
output [31:0] counter_out;
reg    [31:0] counter_out;
always @ (posedge CLOCK_50)
	begin
		counter_out <= #1 counter_out + 1;
	end 
endmodule

lightsequencer.v

module lightsequencer( enable, in3, out3 );
input enable;
input [2:0] in3;
output [2:0] out3;
assign out3[2] = in3[2]    && !enable;
assign out3[1] = &in3[2:1] && !enable;
assign out3[0] = &in3[2:0] && !enable;
endmodule