Skip to content

Commit 1dd64c1

Browse files
committed
ColorLight-5A-75B-V8: Ledon and Blinky examples added
1 parent 4999d2b commit 1dd64c1

8 files changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//------------------------------------------------------------------
2+
//-- Blinking LED
3+
//------------------------------------------------------------------
4+
5+
module Test (
6+
input CLK, // 25MHz clock
7+
output led, // LED to blink
8+
);
9+
10+
reg [23:0] counter = 0;
11+
12+
always @(posedge CLK)
13+
counter <= counter + 1;
14+
15+
assign led = counter[23];
16+
17+
endmodule
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[env]
2+
board = ColorLight-5A-75B-V8
3+

ColorLight-5A-75B-V8/Blinky/info

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Blinking LED
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# -- Board: ColorLight-5A-75E-V71_(FT2232H)
2+
3+
# -- CLK
4+
LOCATE COMP "CLK" SITE "P6";
5+
IOBUF PORT "CLK" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
6+
7+
# -- LED
8+
LOCATE COMP "led" SITE "T6";
9+
IOBUF PORT "led" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;
10+
11+
12+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[env]
2+
board = ColorLight-5A-75B-V8
3+

ColorLight-5A-75B-V8/Ledon/info

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Blinking LEDs D0-D5

ColorLight-5A-75B-V8/Ledon/ledon.v

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//--------------------------------------
2+
//-- Turning on the LED
3+
//--------------------------------------
4+
5+
module top(
6+
output led, //-- LED
7+
);
8+
9+
// -- The LED on the ColorLight-5A-75E works
10+
// -- with inverse logic:
11+
// -- 0: Turn on the LED
12+
// -- 1: Turn off the LED
13+
14+
// Turn on the led
15+
// (output the bit 0 to the led)
16+
assign led = 1'b0;
17+
18+
endmodule
19+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -- Board: ColorLight-5A-75E-V71_(FT2232H)
2+
3+
# -- LED
4+
LOCATE COMP "led" SITE "T6";
5+
IOBUF PORT "led" IO_TYPE=LVCMOS33;
6+
7+
8+

0 commit comments

Comments
 (0)