Skip to content

Commit

Permalink
Merge branch 'release/v1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Oct 12, 2020
2 parents 32a2f24 + 59b4eea commit 9db56b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def run_verilator(target, source, env):
cmd = [
os.path.join(
platform.get_package_dir("tool-verilator-swervolf") or "",
"Vswervolf_core_tb",
env.BoardConfig().get("debug.verilator.binary", "Vswervolf_core_tb")
),
"+ram_init_file=" + os.path.basename(source[0].get_path()),
"+vcd=1",
Expand Down Expand Up @@ -176,7 +176,7 @@ def run_verilator(target, source, env):

# Note: there is a precompiled bitstream in framework-wd-riscv-sdk package
bitstream_file = os.path.abspath(
env.BoardConfig().get("build.bitstream_file", "swervolf_0.bit"))
board_config.get("build.bitstream_file", "swervolf_0.bit"))

if "program_fpga" in COMMAND_LINE_TARGETS and not os.path.isfile(bitstream_file):
sys.stderr.write("Error: Couldn't find bitstream file.\n")
Expand All @@ -199,7 +199,7 @@ def run_verilator(target, source, env):
% os.path.join(
platform.get_package_dir("framework-wd-riscv-sdk") or "",
"board",
env.BoardConfig().get("build.variant", ""),
board_config.get("build.variant", ""),
),
"-s",
'"%s"'
Expand Down Expand Up @@ -241,7 +241,7 @@ def run_verilator(target, source, env):
'"%s"'
% os.path.join(
platform.get_package_dir("tool-verilator-swervolf") or "",
"Vswervolf_core_tb",
board_config.get("debug.verilator.binary", "Vswervolf_core_tb"),
),
"+jtag_vpi_enable=1",
]
Expand All @@ -266,11 +266,11 @@ def run_verilator(target, source, env):
env.Exit(1)

vivado_tcl_script = os.path.abspath(
env.BoardConfig().get("build.swervolf_run_tc", "swervolf_0.6_run.tcl")
board_config.get("build.swervolf_run_tc", "swervolf_0.6_run.tcl")
)

vivado_design_project = os.path.abspath(
env.BoardConfig().get("build.swervolf_xpr", "swervolf_0.6.xpr")
board_config.get("build.swervolf_xpr", "swervolf_0.6.xpr")
)

for f in (vivado_tcl_script, vivado_design_project):
Expand Down
2 changes: 1 addition & 1 deletion platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"type": "git",
"url": "https://github.com/platformio/platform-chipsalliance.git"
},
"version": "1.0.1",
"version": "1.0.2",
"frameworks": {
"wd-riscv-sdk": {
"package": "framework-wd-riscv-sdk",
Expand Down

0 comments on commit 9db56b9

Please sign in to comment.