chore fix target, args processing

This commit is contained in:
Chema 2022-10-26 20:45:53 +02:00
parent 189ee3de39
commit f9d3a39001
1 changed files with 4 additions and 1 deletions

View File

@ -80,12 +80,15 @@ def main():
target_group.add_argument("--build", action="store_true", help="Build bitstream.") target_group.add_argument("--build", action="store_true", help="Build bitstream.")
target_group.add_argument("--sys-clk-freq", default=12e6, help="System clock frequency.") target_group.add_argument("--sys-clk-freq", default=12e6, help="System clock frequency.")
target_group.add_argument("--toolchain", default="icestorm", help="FPGA toolchain (radiant or prjoxide).") target_group.add_argument("--toolchain", default="icestorm", help="FPGA toolchain (radiant or prjoxide).")
target_group.add_argument("--bios-flash-offset", default=0x50000, help="BIOS offset in SPI flash") target_group.add_argument("--bios-flash-offset", default="0x50000", help="BIOS offset in SPI flash")
target_group.add_argument("--flash", action="store_true", help="Flash Bitstream.")
builder_args(parser) builder_args(parser)
soc_core_args(parser) soc_core_args(parser)
icestorm_args(parser)
args = parser.parse_args() args = parser.parse_args()
soc = BaseSoC( soc = BaseSoC(
bios_flash_offset = int(args.bios_flash_offset, 0),
sys_clk_freq = int(float(args.sys_clk_freq)), sys_clk_freq = int(float(args.sys_clk_freq)),
**soc_core_argdict(args) **soc_core_argdict(args)
) )