-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from tinyfpga/support-tinyfpga-bx
add TinyFPGA BX support
- Loading branch information
Showing
9 changed files
with
96 additions
and
3 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 |
---|---|---|
|
@@ -9,6 +9,9 @@ | |
*.vcd | ||
*.mo | ||
|
||
*.swp | ||
*~ | ||
|
||
.tmp | ||
dist | ||
cache | ||
|
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
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
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 @@ | ||
{ | ||
"label": "TinyFPGA BX", | ||
"datasheet": "https://github.com/tinyfpga/TinyFPGA-BX", | ||
"interface": "Serial", | ||
"FPGAResources": { | ||
"ffs": 7680, | ||
"luts": 7680, | ||
"pios": 23, | ||
"plbs": 960, | ||
"brams": 32 | ||
} | ||
} |
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 @@ | ||
[{"type": "inout", "name": "PIN_1", "value": "A2"}, {"type": "inout", "name": "PIN_2", "value": "A1"}, {"type": "inout", "name": "PIN_3", "value": "B1"}, {"type": "inout", "name": "PIN_4", "value": "C2"}, {"type": "inout", "name": "PIN_5", "value": "C1"}, {"type": "inout", "name": "PIN_6", "value": "D2"}, {"type": "inout", "name": "PIN_7", "value": "D1"}, {"type": "inout", "name": "PIN_8", "value": "E2"}, {"type": "inout", "name": "PIN_9", "value": "E1"}, {"type": "inout", "name": "PIN_10", "value": "G2"}, {"type": "inout", "name": "PIN_11", "value": "H1"}, {"type": "inout", "name": "PIN_12", "value": "J1"}, {"type": "inout", "name": "PIN_13", "value": "H2"}, {"type": "inout", "name": "PIN_14", "value": "H9"}, {"type": "inout", "name": "PIN_15", "value": "D9"}, {"type": "inout", "name": "PIN_16", "value": "D8"}, {"type": "inout", "name": "PIN_17", "value": "C9"}, {"type": "inout", "name": "PIN_18", "value": "A9"}, {"type": "inout", "name": "PIN_19", "value": "B8"}, {"type": "inout", "name": "PIN_20", "value": "A8"}, {"type": "inout", "name": "PIN_21", "value": "B7"}, {"type": "inout", "name": "PIN_22", "value": "A7"}, {"type": "inout", "name": "PIN_23", "value": "B6"}, {"type": "inout", "name": "PIN_24", "value": "A6"}, {"type": "inout", "name": "SPI_SS", "value": "F7"}, {"type": "inout", "name": "SPI_SCK", "value": "G7"}, {"type": "inout", "name": "SPI_IO0", "value": "G6"}, {"type": "inout", "name": "SPI_IO1", "value": "H7"}, {"type": "inout", "name": "SPI_IO2", "value": "H4"}, {"type": "inout", "name": "SPI_IO3", "value": "J8"}, {"type": "inout", "name": "PIN_25", "value": "G1"}, {"type": "inout", "name": "PIN_26", "value": "J3"}, {"type": "inout", "name": "PIN_27", "value": "J4"}, {"type": "inout", "name": "PIN_28", "value": "G9"}, {"type": "inout", "name": "PIN_29", "value": "J9"}, {"type": "inout", "name": "PIN_30", "value": "E8"}, {"type": "inout", "name": "PIN_31", "value": "J2"}, {"type": "inout", "name": "LED", "value": "B3"}, {"type": "inout", "name": "USBP", "value": "B4"}, {"type": "inout", "name": "USBN", "value": "A4"}, {"type": "inout", "name": "USBPU", "value": "A3"}, {"type": "input", "name": "CLK", "value": "B2"}] |
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,64 @@ | ||
# ----------------------------------------------------------------------------- | ||
#- TinyFPGA BX constraint file (.pcf) | ||
#- By Luke Valenty | ||
#- May - 2018 | ||
#- GPLv3 license | ||
# ----------------------------------------------------------------------------- | ||
# | ||
# TinyFPGA BX information: https://github.com/tinyfpga/TinyFPGA-BX/ | ||
|
||
# -- Left side of board | ||
set_io --warn-no-port PIN_1 A2 | ||
set_io --warn-no-port PIN_2 A1 | ||
set_io --warn-no-port PIN_3 B1 | ||
set_io --warn-no-port PIN_4 C2 | ||
set_io --warn-no-port PIN_5 C1 | ||
set_io --warn-no-port PIN_6 D2 | ||
set_io --warn-no-port PIN_7 D1 | ||
set_io --warn-no-port PIN_8 E2 | ||
set_io --warn-no-port PIN_9 E1 | ||
set_io --warn-no-port PIN_10 G2 | ||
set_io --warn-no-port PIN_11 H1 | ||
set_io --warn-no-port PIN_12 J1 | ||
set_io --warn-no-port PIN_13 H2 | ||
|
||
# -- Right side of board | ||
set_io --warn-no-port PIN_14 H9 | ||
set_io --warn-no-port PIN_15 D9 | ||
set_io --warn-no-port PIN_16 D8 | ||
set_io --warn-no-port PIN_17 C9 | ||
set_io --warn-no-port PIN_18 A9 | ||
set_io --warn-no-port PIN_19 B8 | ||
set_io --warn-no-port PIN_20 A8 | ||
set_io --warn-no-port PIN_21 B7 | ||
set_io --warn-no-port PIN_22 A7 | ||
set_io --warn-no-port PIN_23 B6 | ||
set_io --warn-no-port PIN_24 A6 | ||
|
||
# -- SPI flash interface on bottom of board | ||
set_io --warn-no-port SPI_SS F7 | ||
set_io --warn-no-port SPI_SCK G7 | ||
set_io --warn-no-port SPI_IO0 G6 | ||
set_io --warn-no-port SPI_IO1 H7 | ||
set_io --warn-no-port SPI_IO2 H4 | ||
set_io --warn-no-port SPI_IO3 J8 | ||
|
||
# -- General purpose pins on bottom of board | ||
set_io --warn-no-port PIN_25 G1 | ||
set_io --warn-no-port PIN_26 J3 | ||
set_io --warn-no-port PIN_27 J4 | ||
set_io --warn-no-port PIN_28 G9 | ||
set_io --warn-no-port PIN_29 J9 | ||
set_io --warn-no-port PIN_30 E8 | ||
set_io --warn-no-port PIN_31 J2 | ||
|
||
# -- LED pin on bottom of board | ||
set_io --warn-no-port LED B3 | ||
|
||
# -- USB pins on bottom of board | ||
set_io --warn-no-port USBP B4 | ||
set_io --warn-no-port USBN A4 | ||
set_io --warn-no-port USBPU A3 | ||
|
||
# -- 16MHz clock pin on bottom of board | ||
set_io --warn-no-port CLK B2 # input |
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,8 @@ | ||
{ | ||
"input" : [ | ||
{ | ||
"port" : "clk", | ||
"pin": "B2" | ||
} | ||
] | ||
} |
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
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