Merge pull request #462 from ironsteel/trellis-12k

Add support for ecp5 12k device in trellis.py
This commit is contained in:
enjoy-digital 2020-04-12 15:49:49 +02:00 committed by GitHub
commit 44746870a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def main():
parser.add_argument("--gateware-toolchain", dest="toolchain", default="trellis", parser.add_argument("--gateware-toolchain", dest="toolchain", default="trellis",
help="gateware toolchain to use, trellis (default) or diamond") help="gateware toolchain to use, trellis (default) or diamond")
parser.add_argument("--device", dest="device", default="LFE5U-45F", parser.add_argument("--device", dest="device", default="LFE5U-45F",
help="FPGA device, ULX3S can be populated with LFE5U-45F (default) or LFE5U-85F") help="FPGA device, ULX3S can be populated with LFE5U-12F, LFE5U-25F, LFE5U-45F (default) or LFE5U-85F")
parser.add_argument("--sys-clk-freq", default=50e6, parser.add_argument("--sys-clk-freq", default=50e6,
help="system clock frequency (default=50MHz)") help="system clock frequency (default=50MHz)")
parser.add_argument("--sdram-module", default="MT48LC16M16", parser.add_argument("--sdram-module", default="MT48LC16M16",

View File

@ -97,6 +97,7 @@ def nextpnr_ecp5_parse_device(device):
return (family, size, speed_grade, package) return (family, size, speed_grade, package)
nextpnr_ecp5_architectures = { nextpnr_ecp5_architectures = {
"lfe5u-12f" : "12k",
"lfe5u-25f" : "25k", "lfe5u-25f" : "25k",
"lfe5u-45f" : "45k", "lfe5u-45f" : "45k",
"lfe5u-85f" : "85k", "lfe5u-85f" : "85k",