-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added to test-examples a the ECP5 example ColorLight-5A-75B-V8/Blinky…
… for testing. This is a straight verilog project but can replaced later with a IceStudion version.
- Loading branch information
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[env] | ||
board = ColorLight-5A-75B-V8 | ||
top-module = Test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Blinking LED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
|
||
|