[xc7] blinky.v to use led0-3, and just to be safe, set BUFGCTRL control
inputs too
This commit is contained in:
parent
42a1b1a750
commit
f1b454b96c
10
xc7/blinky.v
10
xc7/blinky.v
@ -1,15 +1,19 @@
|
||||
module blinky (
|
||||
input clki,
|
||||
output led0,
|
||||
output led1,
|
||||
output led2,
|
||||
output led3,
|
||||
output led4,
|
||||
output led3
|
||||
);
|
||||
|
||||
BUFGCTRL clk_gb (
|
||||
.I0(clki),
|
||||
.CE0(1'b1),
|
||||
.CE1(1'b0),
|
||||
.S0(1'b1),
|
||||
.S1(1'b0),
|
||||
.IGNORE0(1'b0),
|
||||
.IGNORE1(1'b0),
|
||||
.O(clk)
|
||||
);
|
||||
|
||||
@ -24,5 +28,5 @@ module blinky (
|
||||
outcnt <= counter >> LOG2DELAY;
|
||||
end
|
||||
|
||||
assign {led1, led2, led3, led4} = outcnt ^ (outcnt >> 1);
|
||||
assign {led0, led1, led2, led3} = outcnt ^ (outcnt >> 1);
|
||||
endmodule
|
||||
|
Loading…
Reference in New Issue
Block a user