Skip to content

Commit

Permalink
iceWerx: blinky example added
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Apr 28, 2022
1 parent 6b0ec63 commit acf4a08
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 5 deletions.
19 changes: 19 additions & 0 deletions iceWerx/Blinky/Blinky.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//------------------------------------------------------------------
//-- Blinking LED
//------------------------------------------------------------------

module Test (
input CLK, // 12MHz clock
output LEDG // LED to blink
);

reg [23:0] counter = 0;

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

assign LEDG = counter[23];

endmodule


3 changes: 3 additions & 0 deletions iceWerx/Blinky/apio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[env]
board = iceWerx

1 change: 1 addition & 0 deletions iceWerx/Blinky/info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Blinking the Green LED
17 changes: 17 additions & 0 deletions iceWerx/Blinky/pinout.pcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -----------------------------------------------------------------------------
#- iceWerx constraint file (.pcf)
#- By Juan Gonzalez (Obijuan)
#- April - 2022
#- GPL license
# -----------------------------------------------------------------------------


# ------------ User Leds ------------------------------------------------------
#-- Red LED
set_io --warn-no-port LEDR A5 # output

#-- Green LED
set_io --warn-no-port LEDG M4 # output

#-- 12 Mhz clock
set_io --warn-no-port CLK P7 # input
5 changes: 0 additions & 5 deletions iceWerx/ledon/pinout.pcf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@
# ------------ User Leds ------------------------------------------------------
#-- Red LED
set_io --warn-no-port LEDR A5 # output

#-- M4

#-- Reloj:
# set_io --warn-no-port clk12MHz P7

0 comments on commit acf4a08

Please sign in to comment.