diff options
Diffstat (limited to 'examples/gowin/demo.cst')
-rw-r--r-- | examples/gowin/demo.cst | 58 |
1 files changed, 41 insertions, 17 deletions
diff --git a/examples/gowin/demo.cst b/examples/gowin/demo.cst index 0b14b5bd6..22d7eb668 100644 --- a/examples/gowin/demo.cst +++ b/examples/gowin/demo.cst @@ -1,17 +1,41 @@ -IO_LOC "clk" D11; -IO_LOC "led1" D22; -IO_LOC "led2" E22; -IO_LOC "led3" G22; -IO_LOC "led4" J22; -IO_LOC "led5" L22; -IO_LOC "led6" L19; -IO_LOC "led7" L20; -IO_LOC "led8" M21; -IO_LOC "led9" N19; -IO_LOC "led10" R19; -IO_LOC "led11" T18; -IO_LOC "led12" AA22; -IO_LOC "led13" U18; -IO_LOC "led14" V20; -IO_LOC "led15" AA21; -IO_LOC "led16" AB21; +// 50 MHz Clock +IO_LOC "clk" D11; + +// LEDs +IO_LOC "leds[0]" D22; +IO_LOC "leds[1]" E22; +IO_LOC "leds[2]" G22; +IO_LOC "leds[3]" J22; +IO_LOC "leds[4]" L22; +IO_LOC "leds[5]" L19; +IO_LOC "leds[6]" L20; +IO_LOC "leds[7]" M21; +IO_LOC "leds[8]" N19; +IO_LOC "leds[9]" R19; +IO_LOC "leds[10]" T18; +IO_LOC "leds[11]" AA22; +IO_LOC "leds[12]" U18; +IO_LOC "leds[13]" V20; +IO_LOC "leds[14]" AA21; +IO_LOC "leds[15]" AB21; + + +// 7-Segment Display +IO_LOC "seg7dig[0]" E20; +IO_LOC "seg7dig[1]" G18; +IO_LOC "seg7dig[2]" G20; +IO_LOC "seg7dig[3]" F21; +IO_LOC "seg7dig[4]" J20; +IO_LOC "seg7dig[5]" H21; +IO_LOC "seg7dig[6]" H18; +IO_LOC "seg7dig[7]" D20; +IO_LOC "seg7sel[0]" C19; +IO_LOC "seg7sel[1]" B22; +IO_LOC "seg7sel[2]" C20; +IO_LOC "seg7sel[3]" C21; + +// Switches +IO_LOC "sw[0]" AB20; +IO_LOC "sw[1]" AB19; +IO_LOC "sw[2]" AB18; +IO_LOC "sw[3]" AB17; |