Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apycula/attrids.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,7 @@
'I2C_AS_GPIO': 20,
'JTAG_EN': 21,
'POR': 24, # power on reset
'CPU_AS_GPIO': 28,
}

cfg_attrvals = {
Expand Down
6 changes: 5 additions & 1 deletion apycula/gowin_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -2990,7 +2990,8 @@ def gsr(db, tilemap, args):

def dualmode_pins(db, tilemap, args):
pin_flags = {'JTAG_AS_GPIO': 'UNKNOWN', 'SSPI_AS_GPIO': 'UNKNOWN', 'MSPI_AS_GPIO': 'UNKNOWN',
'DONE_AS_GPIO': 'UNKNOWN', 'RECONFIG_AS_GPIO': 'UNKNOWN', 'READY_AS_GPIO': 'UNKNOWN'}
'DONE_AS_GPIO': 'UNKNOWN', 'RECONFIG_AS_GPIO': 'UNKNOWN', 'READY_AS_GPIO': 'UNKNOWN',
'CPU_AS_GPIO': 'UNKNOWN'}
if args.jtag_as_gpio:
pin_flags['JTAG_AS_GPIO'] = 'YES'
if args.sspi_as_gpio:
Expand All @@ -3003,6 +3004,8 @@ def dualmode_pins(db, tilemap, args):
pin_flags['DONE_AS_GPIO'] = 'YES'
if args.reconfign_as_gpio:
pin_flags['RECONFIG_AS_GPIO'] = 'YES'
if args.cpu_as_gpio:
pin_flags['CPU_AS_GPIO'] = 'YES'

set_attrs = set()
clr_attrs = set()
Expand Down Expand Up @@ -3057,6 +3060,7 @@ def main():
parser.add_argument('--ready_as_gpio', action = 'store_true')
parser.add_argument('--done_as_gpio', action = 'store_true')
parser.add_argument('--reconfign_as_gpio', action = 'store_true')
parser.add_argument('--cpu_as_gpio', action = 'store_true')
if pil_available:
parser.add_argument('--png')

Expand Down
2 changes: 1 addition & 1 deletion examples/gw5a/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ clean:
# ============================================================
# TangPrimer25k
%-primer25k.fs: %-primer25k.json
gowin_pack -d GW5A-25A -o $@ $<
gowin_pack -d GW5A-25A --cpu_as_gpio -o $@ $<

%-primer25k.json: %-primer25k-synth.json primer25k.cst
$(NEXTPNR) -v --debug --top top --json $< --write $@ --device GW5A-LV25MG121NES --vopt cst=primer25k.cst
Expand Down
Loading