File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ [env]
2+ board = ColorLight-5A-75B-V8
3+
Original file line number Diff line number Diff line change 1+ Blinking LED
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 1+ [env]
2+ board = ColorLight-5A-75B-V8
3+
Original file line number Diff line number Diff line change 1+ Blinking LEDs D0-D5
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments