Skip to content

Commit

Permalink
Merge branch 'release/v1.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Jun 29, 2023
2 parents 18a6e50 + 3b26ddb commit 3a4635e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
pio pkg install --global --platform symlink://.
- name: Build examples
run: |
platformio run -d ${{ matrix.example }}
pio run -d ${{ matrix.example }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CHIPS Alliance: development platform for [PlatformIO](http://platformio.org)
# CHIPS Alliance: development platform for [PlatformIO](https://platformio.org)

[![Build Status](https://github.com/platformio/platform-chipsalliance/workflows/Examples/badge.svg)](https://github.com/platformio/platform-chipsalliance/actions)

Expand All @@ -9,7 +9,7 @@ CHIPS Alliance brings the power of open source and software automation to the se

# Usage

1. [Install PlatformIO](http://platformio.org)
1. [Install PlatformIO](https://platformio.org)
2. Create PlatformIO project and configure a platform option in [platformio.ini](https://docs.platformio.org/page/projectconf.html) file:

## Stable version
Expand Down
19 changes: 18 additions & 1 deletion builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ def run_verilator(target, source, env):
p.terminate()


def run_RVfpgaViDBoPipeline(target, source, env):
cmd = [
env.BoardConfig().get("debug.verilator.binary"),
"+ram_init_file=" + os.path.basename(source[0].get_path())
]

p = subprocess.run(cmd, cwd=env.subst("$BUILD_DIR"))


env = DefaultEnvironment()
platform = env.PioPlatform()
board_config = env.BoardConfig()
Expand Down Expand Up @@ -213,7 +222,7 @@ def run_verilator(target, source, env):
"scripts",
),
"-c",
'"set BITFILE {$SOURCE}"',
'"set BITFILE {"$SOURCE"}"',
"-f",
"%s_program.cfg" % env.subst("$BOARD")
]
Expand All @@ -231,6 +240,14 @@ def run_verilator(target, source, env):
run_verilator, "Generating trace from Verilator"), "Generate Trace")


#
# Target: Run RVfpga-ViDBo/PipelineSimulator
#

env.AddPlatformTarget("ViDBo", target_vh, env.VerboseAction(
run_RVfpgaViDBoPipeline, "Running Program in RVfpga-ViDBo or RVfpga-PipelineSimulator"), "RVfpga-ViDBo/Pipeline")


#
# Target: Run Verilator simulator to connect OpenOCD
#
Expand Down
2 changes: 1 addition & 1 deletion platform.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chipsalliance",
"version": "1.2.0",
"version": "1.3.0",
"title": "CHIPS Alliance",
"description": "The CHIPS Alliance develops high-quality, open source hardware designs relevant to silicon devices and FPGAs.",
"homepage": "https://chipsalliance.org",
Expand Down
1 change: 0 additions & 1 deletion platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def _add_default_debug_tools(self, board):
"arguments": server_args,
},
"onboard": tool in debug.get("onboard_tools", [])
or tool in ("verilator", "whisper"),
}

board.manifest["debug"] = debug
Expand Down

0 comments on commit 3a4635e

Please sign in to comment.