Skip to content

Commit

Permalink
ColorLight-5A-75B-V8: Ledon and Blinky examples added
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Jun 23, 2022
1 parent 4999d2b commit 1dd64c1
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ColorLight-5A-75B-V8/Blinky/Blinky.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//------------------------------------------------------------------
//-- Blinking LED
//------------------------------------------------------------------

module Test (
input CLK, // 25MHz clock
output led, // LED to blink
);

reg [23:0] counter = 0;

always @(posedge CLK)
counter <= counter + 1;

assign led = counter[23];

endmodule
3 changes: 3 additions & 0 deletions ColorLight-5A-75B-V8/Blinky/apio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[env]
board = ColorLight-5A-75B-V8

1 change: 1 addition & 0 deletions ColorLight-5A-75B-V8/Blinky/info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Blinking LED
12 changes: 12 additions & 0 deletions ColorLight-5A-75B-V8/Blinky/pinout.lpf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# -- Board: ColorLight-5A-75E-V71_(FT2232H)

# -- CLK
LOCATE COMP "CLK" SITE "P6";
IOBUF PORT "CLK" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;

# -- LED
LOCATE COMP "led" SITE "T6";
IOBUF PORT "led" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4;



3 changes: 3 additions & 0 deletions ColorLight-5A-75B-V8/Ledon/apio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[env]
board = ColorLight-5A-75B-V8

1 change: 1 addition & 0 deletions ColorLight-5A-75B-V8/Ledon/info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Blinking LEDs D0-D5
19 changes: 19 additions & 0 deletions ColorLight-5A-75B-V8/Ledon/ledon.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//--------------------------------------
//-- Turning on the LED
//--------------------------------------

module top(
output led, //-- LED
);

// -- The LED on the ColorLight-5A-75E works
// -- with inverse logic:
// -- 0: Turn on the LED
// -- 1: Turn off the LED

// Turn on the led
// (output the bit 0 to the led)
assign led = 1'b0;

endmodule

8 changes: 8 additions & 0 deletions ColorLight-5A-75B-V8/Ledon/pinout.lpf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# -- Board: ColorLight-5A-75E-V71_(FT2232H)

# -- LED
LOCATE COMP "led" SITE "T6";
IOBUF PORT "led" IO_TYPE=LVCMOS33;



0 comments on commit 1dd64c1

Please sign in to comment.