mirror of
https://github.com/enjoy-digital/usb3_pipe.git
synced 2025-01-04 10:18:41 +08:00
targets: update builds.
This commit is contained in:
parent
48304d0ad5
commit
091c39f248
@ -195,13 +195,13 @@ def main():
|
||||
if not args.build and not args.load:
|
||||
parser.print_help()
|
||||
|
||||
os.makedirs("build/gateware", exist_ok=True)
|
||||
os.makedirs("build/ecpix5/gateware", exist_ok=True)
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/ecpix5/gateware/")
|
||||
platform = ecpix5.Platform(toolchain="trellis")
|
||||
platform.add_extension(_usb3_io)
|
||||
soc = USB3SoC(platform)
|
||||
builder = Builder(soc, output_dir="build", csr_csv="tools/csr.csv")
|
||||
builder = Builder(soc, csr_csv="tools/csr.csv")
|
||||
builder.build(run=args.build)
|
||||
|
||||
if args.load:
|
||||
|
19
kc705.py
19
kc705.py
@ -198,19 +198,16 @@ def main():
|
||||
if not args.build and not args.load:
|
||||
parser.print_help()
|
||||
|
||||
if args.build:
|
||||
print("[build]...")
|
||||
os.makedirs("build/kc705/gateware", exist_ok=True)
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/kc705/gateware/")
|
||||
platform = kc705.Platform()
|
||||
platform.add_extension(_usb3_io)
|
||||
soc = USB3SoC(platform)
|
||||
builder = Builder(soc, csr_csv="tools/csr.csv")
|
||||
builder.build()
|
||||
os.makedirs("build/kc705/gateware", exist_ok=True)
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/kc705/gateware/")
|
||||
platform = kc705.Platform()
|
||||
platform.add_extension(_usb3_io)
|
||||
soc = USB3SoC(platform)
|
||||
builder = Builder(soc, csr_csv="tools/csr.csv")
|
||||
builder.build(run=args.build)
|
||||
|
||||
if args.load:
|
||||
print("[load]...")
|
||||
prog = soc.platform.create_programmer()
|
||||
prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))
|
||||
|
||||
|
18
netv2.py
18
netv2.py
@ -149,16 +149,14 @@ def main():
|
||||
if not args.build and not args.load:
|
||||
parser.print_help()
|
||||
|
||||
if args.build:
|
||||
print("[build {}]...".format(args.device))
|
||||
os.makedirs("build/netv2/gateware", exist_ok=True)
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/netv2/gateware/")
|
||||
platform = netv2.Platform(device=args.device)
|
||||
platform.add_extension(_usb3_io)
|
||||
soc = USB3SoC(platform)
|
||||
builder = Builder(soc, csr_csv="tools/csr.csv")
|
||||
builder.build()
|
||||
os.makedirs("build/netv2/gateware", exist_ok=True)
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/netv2/gateware/")
|
||||
platform = netv2.Platform(device=args.device)
|
||||
platform.add_extension(_usb3_io)
|
||||
soc = USB3SoC(platform)
|
||||
builder = Builder(soc, csr_csv="tools/csr.csv")
|
||||
builder.build(run=args.build)
|
||||
|
||||
if args.load:
|
||||
prog = soc.platform.create_programmer()
|
||||
|
@ -149,19 +149,16 @@ def main():
|
||||
if not args.build and not args.load:
|
||||
parser.print_help()
|
||||
|
||||
if args.build:
|
||||
print("[build]...")
|
||||
os.makedirs("build/pcie_screamer/gateware", exist_ok=True)
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/pcie_screamer/gateware/")
|
||||
platform = pcie_screamer.Platform()
|
||||
platform.add_extension(_usb3_io)
|
||||
soc = USB3SoC(platform)
|
||||
builder = Builder(soc, csr_csv="tools/csr.csv")
|
||||
builder.build()
|
||||
os.makedirs("build/pcie_screamer/gateware", exist_ok=True)
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/pcie_screamer/gateware/")
|
||||
platform = pcie_screamer.Platform()
|
||||
platform.add_extension(_usb3_io)
|
||||
soc = USB3SoC(platform)
|
||||
builder = Builder(soc, csr_csv="tools/csr.csv")
|
||||
builder.build(run=args.build)
|
||||
|
||||
if args.load:
|
||||
print("[load]...")
|
||||
prog = soc.platform.create_programmer()
|
||||
prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))
|
||||
|
||||
|
@ -201,19 +201,17 @@ def main():
|
||||
if not args.build and not args.load:
|
||||
parser.print_help()
|
||||
|
||||
if args.build:
|
||||
print("[build]...")
|
||||
os.makedirs("build/gateware", exist_ok=True)
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/gateware/")
|
||||
platform = versa_ecp5.Platform(toolchain="trellis")
|
||||
platform.add_extension(_usb3_io)
|
||||
soc = USB3SoC(platform)
|
||||
builder = Builder(soc, output_dir="build", csr_csv="tools/csr.csv")
|
||||
builder.build()
|
||||
print("[build]...")
|
||||
os.makedirs("build/versa_ecp5/gateware", exist_ok=True)
|
||||
os.system("cd usb3_core/daisho && make && ./usb_descrip_gen")
|
||||
os.system("cp usb3_core/daisho/usb3/*.init build/versa_ecp5/gateware/")
|
||||
platform = versa_ecp5.Platform(toolchain="trellis")
|
||||
platform.add_extension(_usb3_io)
|
||||
soc = USB3SoC(platform)
|
||||
builder = Builder(soc, csr_csv="tools/csr.csv")
|
||||
builder.build(run=args.build)
|
||||
|
||||
if args.load:
|
||||
print("[load]...")
|
||||
prog = soc.platform.create_programmer()
|
||||
prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".svf"))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user