diff --git a/ColoLight-5A-75E-V71_FT2232H/Blink/blink.v b/ColoLight-5A-75E-V71_FT2232H/Blink/blink.v deleted file mode 100644 index b44bd8b..0000000 --- a/ColoLight-5A-75E-V71_FT2232H/Blink/blink.v +++ /dev/null @@ -1,41 +0,0 @@ -//-------------------------------------- -//-- Blink the LED -//-------------------------------------- - -module top( - input clk, //-- CLK - output led //-- LEDs -); - wire clk_out; - - prescaler #( - .N(22) - ) pre1 ( - .clk_in(clk), - .clk_out(clk_out) - ); - - // assign led to clk output - assign led = clk_out; - -endmodule - - - -module prescaler #( - parameter N = 22 //-- Number of bits of the prescaler -) ( - input clk_in, - output clk_out -); - //-- divisor register - reg [N-1:0] divcounter; - - //-- N bit counter - always @(posedge clk_in) - divcounter <= divcounter + 1; - - //-- Use the most significant bit as output - assign clk_out = divcounter[N-1]; - -endmodule \ No newline at end of file diff --git a/ColoLight-5A-75E-V71_FT2232H/Blink/info b/ColoLight-5A-75E-V71_FT2232H/Blink/info deleted file mode 100644 index 463f25a..0000000 --- a/ColoLight-5A-75E-V71_FT2232H/Blink/info +++ /dev/null @@ -1 +0,0 @@ -Blinking LEDs D0-D5 diff --git a/ColoLight-5A-75E-V71_FT2232H/Blinky/Blinky.v b/ColoLight-5A-75E-V71_FT2232H/Blinky/Blinky.v new file mode 100644 index 0000000..f662a47 --- /dev/null +++ b/ColoLight-5A-75E-V71_FT2232H/Blinky/Blinky.v @@ -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 diff --git a/ColoLight-5A-75E-V71_FT2232H/Blink/apio.ini b/ColoLight-5A-75E-V71_FT2232H/Blinky/apio.ini similarity index 100% rename from ColoLight-5A-75E-V71_FT2232H/Blink/apio.ini rename to ColoLight-5A-75E-V71_FT2232H/Blinky/apio.ini diff --git a/ColoLight-5A-75E-V71_FT2232H/Blinky/info b/ColoLight-5A-75E-V71_FT2232H/Blinky/info new file mode 100644 index 0000000..f4dd032 --- /dev/null +++ b/ColoLight-5A-75E-V71_FT2232H/Blinky/info @@ -0,0 +1 @@ +Blinking LED diff --git a/ColoLight-5A-75E-V71_FT2232H/Blink/pinout.lpf b/ColoLight-5A-75E-V71_FT2232H/Blinky/pinout.lpf similarity index 64% rename from ColoLight-5A-75E-V71_FT2232H/Blink/pinout.lpf rename to ColoLight-5A-75E-V71_FT2232H/Blinky/pinout.lpf index 097b469..1acecc8 100644 --- a/ColoLight-5A-75E-V71_FT2232H/Blink/pinout.lpf +++ b/ColoLight-5A-75E-V71_FT2232H/Blinky/pinout.lpf @@ -1,8 +1,8 @@ # -- Board: ColorLight-5A-75E-V71_(FT2232H) # -- CLK -LOCATE COMP "clk" SITE "P6"; -IOBUF PORT "clk" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4; +LOCATE COMP "CLK" SITE "P6"; +IOBUF PORT "CLK" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=4; # -- LED LOCATE COMP "led" SITE "P11";