Initial import. Counter to leds
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
module spectrum(
|
||||
input CLOCK_50,
|
||||
output reg[7:0] LED
|
||||
);
|
||||
|
||||
reg[27:0] counter;
|
||||
|
||||
always @(posedge CLOCK_50)
|
||||
begin
|
||||
counter <= counter + 1;
|
||||
LED <= counter[27:21];
|
||||
end
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user