Skip to content

Commit

Permalink
lean gemmini tutorial (#1413)
Browse files Browse the repository at this point in the history
* lean gemmini tutorial

* bump firesim

* Update check-commit.sh
  • Loading branch information
sagark authored Mar 23, 2023
1 parent 9ef3001 commit c14d11f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/check-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ search () {
done
}

submodules=("cva6" "boom" "ibex" "gemmini" "hwacha" "icenet" "nvdla" "rocket-chip" "sha3" "sifive-blocks" "sifive-cache" "testchipip" "riscv-sodor" "mempress")
submodules=("cva6" "boom" "ibex" "hwacha" "icenet" "nvdla" "rocket-chip" "sha3" "sifive-blocks" "sifive-cache" "testchipip" "riscv-sodor" "mempress")
dir="generators"
branches=("master" "main" "dev")
search
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ class LeanGemminiRocketConfig extends Config(
new chipyard.config.WithSystemBusWidth(128) ++
new chipyard.config.AbstractConfig)

class LeanGemminiPrintfRocketConfig extends Config(
new gemmini.LeanGemminiPrintfConfig ++ // use Lean Gemmini systolic array GEMM accelerator
new freechips.rocketchip.subsystem.WithNBigCores(1) ++
new chipyard.config.WithSystemBusWidth(128) ++
new chipyard.config.AbstractConfig)

class HwachaRocketConfig extends Config(
new chipyard.config.WithHwachaTest ++
new hwacha.DefaultHwachaConfig ++ // use Hwacha vector accelerator
Expand Down
14 changes: 13 additions & 1 deletion generators/firechip/src/main/scala/TargetConfigs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,18 @@ class FireSimGemminiRocketConfig extends Config(
new WithFireSimConfigTweaks ++
new chipyard.GemminiRocketConfig)

class FireSimLeanGemminiRocketConfig extends Config(
new WithDefaultFireSimBridges ++
new WithDefaultMemModel ++
new WithFireSimConfigTweaks ++
new chipyard.LeanGemminiRocketConfig)

class FireSimLeanGemminiPrintfRocketConfig extends Config(
new WithDefaultFireSimBridges ++
new WithDefaultMemModel ++
new WithFireSimConfigTweaks ++
new chipyard.LeanGemminiPrintfRocketConfig)

//**********************************************************************************
// Supernode Configurations, base off chipyard's RocketConfig
//**********************************************************************************
Expand Down Expand Up @@ -289,7 +301,7 @@ class FireSimRocketMMIOOnlyConfig extends Config(
new WithFireSimConfigTweaks ++
new chipyard.RocketConfig)

class FireSimGemminiRocketMMIOOnlyConfig extends Config(
class FireSimLeanGemminiRocketMMIOOnlyConfig extends Config(
new WithDefaultMMIOOnlyFireSimBridges ++
new WithDefaultMemModel ++
new WithFireSimConfigTweaks ++
Expand Down
2 changes: 1 addition & 1 deletion generators/gemmini
2 changes: 1 addition & 1 deletion sims/firesim
Submodule firesim updated 69 files
+28 −0 .github/scripts/check-vitis-docs-generated-components.py
+14 −1 .github/scripts/cull-old-ci-instances.py
+46 −0 .github/scripts/platform_lib.py
+13 −3 .github/scripts/run-linux-poweroff-externally-provisioned.py
+17 −5 .github/scripts/run-linux-poweroff-vitis.py
+14 −4 .github/scripts/run-linux-poweroff.py
+2 −2 .github/scripts/setup-manager-self-hosted.py
+5 −1 .github/scripts/workflow-monitor.py
+10 −0 .github/workflows/firesim-run-tests.yml
+1 −1 build-setup-nolog.sh
+858 −499 conda-reqs/conda-reqs.conda-lock.yml
+19 −20 conda-reqs/firesim.yaml
+3 −1 deploy/awstools/aws_setup.py
+14 −3 deploy/awstools/awstools.py
+2 −0 deploy/build-farm-recipes/aws_ec2.yaml
+15 −11 deploy/buildtools/buildfarm.py
+12 −8 deploy/runtools/firesim_topology_elements.py
+1 −1 deploy/runtools/run_farm.py
+20 −19 deploy/runtools/run_farm_deploy_managers.py
+2 −1 deploy/runtools/runtime_config.py
+8 −1 deploy/sample-backup-configs/sample_config_build.yaml
+52 −0 deploy/sample-backup-configs/sample_config_build_recipes.yaml
+13 −5 deploy/sample-backup-configs/sample_config_hwdb.yaml
+1 −1 deploy/util/streamlogger.py
+2 −2 deploy/workloads/Makefile
+0 −11 deploy/workloads/ci/vitis/config_build_recipes.yaml
+0 −4 deploy/workloads/ci/vitis/config_hwdb.yaml
+1 −1 deploy/workloads/ci/vitis/config_runtime.yaml
+3 −3 deploy/workloads/ci/vitis/run-workload.sh
+1 −1 deploy/workloads/fedora-uniform/fedora-base-bin
+1 −1 deploy/workloads/fedora-uniform/fedora-base.img
+1 −1 deploy/workloads/linux-poweroff/br-base-bin
+1 −1 deploy/workloads/linux-uniform/br-base-bin
+1 −1 deploy/workloads/linux-uniform/br-base-bin-dwarf
+1 −1 deploy/workloads/linux-uniform/br-base.img
+5 −4 docs/Advanced-Usage/Conda.rst
+2 −3 docs/Advanced-Usage/Debugging-and-Profiling-on-FPGA/Dromajo.rst
+1 −1 docs/Advanced-Usage/Manager/HELP_OUTPUT
+10 −0 docs/Advanced-Usage/Manager/Manager-Configuration-Files.rst
+5 −4 docs/Advanced-Usage/Manager/Manager-Environment-Variables.rst
+0 −122 docs/Advanced-Usage/Vitis.rst
+3 −5 docs/Advanced-Usage/Workloads/Defining-Custom-Workloads.rst
+3 −5 docs/Advanced-Usage/Workloads/Deprecated-Defining-Custom-Workloads.rst
+3 −3 docs/Building-a-FireSim-AFI.rst
+67 −0 docs/Building-a-FireSim-Xclbin.rst
+5 −5 docs/FireSim-Basics.rst
+195 −0 docs/Initial-OnPrem-Setup/Setting-up-your-On-Premises-Machine.rst
+14 −0 docs/Initial-OnPrem-Setup/index.rst
+2 −2 docs/Initial-Setup/Setting-up-your-Manager-Instance.rst
+100 −0 docs/Running-OnPrem-Simulations-Tutorial/DOCS_EXAMPLE_config_runtime.yaml
+424 −0 docs/Running-OnPrem-Simulations-Tutorial/Running-a-Single-Node-Simulation.rst
+15 −0 docs/Running-OnPrem-Simulations-Tutorial/index.rst
+2 −2 docs/Running-Simulations-Tutorial/Running-a-Cluster-Simulation.rst
+2 −3 docs/Running-Simulations-Tutorial/Running-a-Single-Node-Simulation.rst
+10 −1 docs/index.rst
+18 −4 platforms/vitis/cl_firesim/Makefile
+1 −1 regression/aws-ec2-tests/launch-setup-manager-instance.sh
+28 −7 scripts/machine-launch-script.sh
+2 −0 sim/.gitignore
+0 −5 sim/firesim-lib/src/main/cc/bridges/tracerv.cc
+0 −1 sim/firesim-lib/src/main/cc/bridges/tracerv.h
+1 −1 sim/firesim-lib/src/main/scala/bridges/SerialBridge.scala
+122 −73 sim/firesim-lib/src/main/scala/bridges/TracerVBridge.scala
+1 −1 sim/make/driver.mk
+19 −8 sim/src/main/cc/bridges/TracerVModule.cc
+14 −6 sim/src/main/cc/firesim/firesim_top.cc
+5 −0 sim/src/main/scala/bridges/TracerVModule.scala
+7 −4 sim/src/test/scala/bridges/TracerVSuite.scala
+1 −1 target-design/chipyard

0 comments on commit c14d11f

Please sign in to comment.