[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 (
|
module blinky (
|
||||||
input clki,
|
input clki,
|
||||||
|
output led0,
|
||||||
output led1,
|
output led1,
|
||||||
output led2,
|
output led2,
|
||||||
output led3,
|
output led3
|
||||||
output led4,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
BUFGCTRL clk_gb (
|
BUFGCTRL clk_gb (
|
||||||
.I0(clki),
|
.I0(clki),
|
||||||
.CE0(1'b1),
|
.CE0(1'b1),
|
||||||
|
.CE1(1'b0),
|
||||||
.S0(1'b1),
|
.S0(1'b1),
|
||||||
|
.S1(1'b0),
|
||||||
|
.IGNORE0(1'b0),
|
||||||
|
.IGNORE1(1'b0),
|
||||||
.O(clk)
|
.O(clk)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -24,5 +28,5 @@ module blinky (
|
|||||||
outcnt <= counter >> LOG2DELAY;
|
outcnt <= counter >> LOG2DELAY;
|
||||||
end
|
end
|
||||||
|
|
||||||
assign {led1, led2, led3, led4} = outcnt ^ (outcnt >> 1);
|
assign {led0, led1, led2, led3} = outcnt ^ (outcnt >> 1);
|
||||||
endmodule
|
endmodule
|
||||||
|
Loading…
Reference in New Issue
Block a user