blinky.v to not instantiate PS7, blink more slowly/predictably
This commit is contained in:
parent
533c730418
commit
a0c6c64be7
@ -5,7 +5,7 @@ module blinky (
|
|||||||
output led2,
|
output led2,
|
||||||
output led3
|
output led3
|
||||||
);
|
);
|
||||||
`include "ps7.vh"
|
//`include "ps7.vh"
|
||||||
|
|
||||||
BUFGCTRL clk_gb (
|
BUFGCTRL clk_gb (
|
||||||
.I0(clki),
|
.I0(clki),
|
||||||
@ -19,7 +19,7 @@ module blinky (
|
|||||||
);
|
);
|
||||||
|
|
||||||
localparam BITS = 4;
|
localparam BITS = 4;
|
||||||
localparam LOG2DELAY = 21;
|
localparam LOG2DELAY = 23;
|
||||||
|
|
||||||
reg [BITS+LOG2DELAY-1:0] counter = 0;
|
reg [BITS+LOG2DELAY-1:0] counter = 0;
|
||||||
reg [BITS-1:0] outcnt;
|
reg [BITS-1:0] outcnt;
|
||||||
@ -29,5 +29,5 @@ module blinky (
|
|||||||
outcnt <= counter >> LOG2DELAY;
|
outcnt <= counter >> LOG2DELAY;
|
||||||
end
|
end
|
||||||
|
|
||||||
assign {led0, led1, led2, led3} = outcnt ^ (outcnt >> 1);
|
assign {led0, led1, led2, led3} = outcnt /*^ (outcnt >> 1)*/;
|
||||||
endmodule
|
endmodule
|
||||||
|
Loading…
Reference in New Issue
Block a user