Hello all,
I am quite new to firesim and I am trying to build the aws FPGA image for a single rocket core config. I chose c5.4xlarge instance and I followed the firesim documentation. I cloned the
latest chipyard.
So, the changes I made to the .yaml files in firesim/deploy are as follows:
config_build_recipes.yaml:
test_design:
PLATFORM: f1
TARGET_PROJECT: firesim
TARGET_PROJECT_MAKEFRAG: null
DESIGN: FireSim
TARGET_CONFIG: FireSimRocketConfig
PLATFORM_CONFIG: DefaultF1Config
deploy_quintuplet: null
platform_config_args:
fpga_frequency: 100
build_strategy: TIMING
post_build_hook: null
metasim_customruntimeconfig: null
bit_builder_recipe: bit-builder-recipes/f1.yaml
-------------------------------------------------------------------------------------------------------
config_build.yaml:
build_farm:
...
#instance_type: z1d.2xlarge
instance_type: c5.4xlarge
...
builds_to_run:
...
#- midasexamples_gcd
- test_design
agfis_to_share:
#- midasexamples_gcd
- test_design
-------------------------------------------------------------------------------------------------------
And I also changed the
config.mk in firesim/sim/make/ :
...
# Root name for generated binaries
DESIGN ?=FireSim
...
-------------------------------------------------------------------------------------------------------
Then when I run firesim buildbitstream, I get the following messages:
2024-11-11 01:06:37,108 [flush ] [INFO ] [localhost] out:
at ... (Stack trace trimmed to user code only. Rerun with --full-stacktrace to see the full stack trace)
2024-11-11 01:06:37,139 [flush ] [INFO ] [localhost] out: make: *** [make/
goldengate.mk:26: /home/centos/chipyard/sims/firesim/sim/generated-src/f1/f1-firesim-FireSim-FireSimRocketConfig-DefaultF1Config/FireSim-generated.sv] Error 1
2024-11-11 01:06:37,140 [flush ] [INFO ] [localhost] out:
2024-11-11 01:06:37,158 [flush ] [INFO ] Fatal error: run() received nonzero return code 2 while executing!
2024-11-11 01:06:37,158 [flush ] [INFO ] Requested: make PLATFORM=f1 TARGET_PROJECT=firesim TARGET_PROJECT_MAKEFRAG=/home/centos/chipyard/sims/firesim/deploy/../../../generators/firechip/chip/src/main/makefrag/firesim DESIGN=FireSim TARGET_CONFIG=FireSimRocketConfig PLATFORM_CONFIG=DefaultF1Config replace-rtl
2024-11-11 01:06:37,158 [flush ] [INFO ] Executed: /bin/bash -l -c "cd /home/centos/chipyard/sims/firesim/deploy/../ && export RISCV=/home/centos/chipyard/sims/firesim/.conda-env/riscv-tools LD_LIBRARY_PATH=/home/centos/chipyard/sims/firesim/.conda-env/riscv-tools/lib PATH=/home/centos/chipyard/sims/firesim/utils/fireperf:/home/centos/chipyard/sims/firesim/utils/fireperf/FlameGraph:/home/centos/chipyard/sims/firesim/.conda-env/riscv-tools/bin:/home/centos/chipyard/software/firemarshal:/home/centos/chipyard/.conda-env/riscv-tools/bin:/home/centos/chipyard/sims/firesim/.conda-env/bin:/home/centos/conda_install/miniforge3/bin:/opt/Xilinx/Vitis_HLS/2021.2/bin:/opt/Xilinx/Vitis/2021.2/bin:/opt/Xilinx/Vivado/2021.2/bin:/home/centos/chipyard/sims/firesim/.conda-env/bin:/opt/conda/condabin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/srv/git/centos-git-common:/home/centos/.local/bin:/home/centos/bin:/home/centos/chipyard/sims/firesim/deploy && source sourceme-manager.sh --skip-ssh-setup && cd sim/ && make PLATFORM=f1 TARGET_PROJECT=firesim TARGET_PROJECT_MAKEFRAG=/home/centos/chipyard/sims/firesim/deploy/../../../generators/firechip/chip/src/main/makefrag/firesim DESIGN=FireSim TARGET_CONFIG=FireSimRocketConfig PLATFORM_CONFIG=DefaultF1Config replace-rtl"
2024-11-11 01:06:37,158 [flush ] [INFO ] Aborting.
2024-11-11 01:06:37,158 [<module> ] [ERROR] Fatal error.
Traceback (most recent call last):
File "/home/centos/chipyard/sims/firesim/deploy/firesim", line 530, in <module>
main(args)
File "/home/centos/chipyard/sims/firesim/deploy/firesim", line 469, in main
t['task'](t['config'](args))
File "/home/centos/chipyard/sims/firesim/deploy/firesim", line 267, in buildbitstream
execute(build_config.bitbuilder.replace_rtl, hosts=['localhost'])
File "/home/centos/chipyard/sims/firesim/.conda-env/lib/python3.10/site-packages/fabric/tasks.py", line 356, in execute
results[host] = _execute(
File "/home/centos/chipyard/sims/firesim/.conda-env/lib/python3.10/site-packages/fabric/tasks.py", line 247, in _execute
return task.run(*args, **kwargs)
File "/home/centos/chipyard/sims/firesim/.conda-env/lib/python3.10/site-packages/fabric/tasks.py", line 147, in run
return self.wrapped(*args, **kwargs)
File "/home/centos/chipyard/sims/firesim/deploy/buildtools/bitbuilder.py", line 86, in replace_rtl
run(self.build_config.make_recipe("replace-rtl", deploy_dir))
File "/home/centos/chipyard/sims/firesim/.conda-env/lib/python3.10/site-packages/fabric/network.py", line 688, in host_prompting_wrapper
return func(*args, **kwargs)
File "/home/centos/chipyard/sims/firesim/.conda-env/lib/python3.10/site-packages/fabric/operations.py", line 1068, in run
return _run_command(
File "/home/centos/chipyard/sims/firesim/.conda-env/lib/python3.10/site-packages/fabric/operations.py", line 944, in _run_command
error(message=msg, stdout=out, stderr=err)
File "/home/centos/chipyard/sims/firesim/.conda-env/lib/python3.10/site-packages/fabric/utils.py", line 357, in error
return func(message)
File "/home/centos/chipyard/sims/firesim/.conda-env/lib/python3.10/site-packages/fabric/utils.py", line 65, in abort
raise e
SystemExit: 1
-------------------------------------------------------------------------------------------------------
and many of these messages:
...
2024-11-11 01:05:43,055 [flush ] [INFO ] [localhost] out: Please report this issue at
https://github.com/ucb-bar/firrtl2/issues2024-11-11 01:05:43,055 [flush ] [INFO ] [localhost] out: [WARNING] Unsupported annotation: OutputBaseNameAnnotation
2024-11-11 01:05:43,055 [flush ] [INFO ] [localhost] out: [WARNING] Unsupported annotation: TopModuleAnnotation
2024-11-11 01:05:43,055 [flush ] [INFO ] [localhost] out: [WARNING] Unsupported annotation: ConfigsAnnotation
2024-11-11 01:05:43,055 [flush ] [INFO ] [localhost] out: Please report this issue at
https://github.com/ucb-bar/firrtl2/issues2024-11-11 01:05:43,055 [flush ] [INFO ] [localhost] out: [WARNING] Unsupported annotation: LegacySFCAnnotation
2024-11-11 01:05:44,002 [flush ] [INFO ] [localhost] out: echo "$mfc_extra_anno_contents" > /home/centos/chipyard/sims/firesim-staging/generated-src/firechip.chip.FireSim.FireSimRocketConfig/firechip.chip.FireSim.FireSimRocketConfig.extrafirtool.anno.json
-------------------------------------------------------------------------------------------------------
Could you please tell me what is wrong here?
Also:
$ conda --version
conda 24.9.2
$ python --version
Python 3.10.14
$ conda-lock --version
conda-lock, version 2.5.7
Any comments will be appreciated. Kindly let me know if you need the complete log file.