midas transform failing duing image generation

13 views
Skip to first unread message

amoon_ea

unread,
Nov 24, 2024, 4:59:46 PM11/24/24
to FireSim
Hi all,

I am trying to build an image/bitstream for the single core rocket config in chipyard( I am using chipyard 1.13.0). When I try to run the $ firesim buildbitstream command in firesime/deploy, I get the following messages:

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: [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: [WARNING] Unsupported annotation: LegacySFCAnnotation
2024-11-11 01:05:43,055 [flush       ] [INFO ]  [localhost] out:  Please report this issue at https://github.com/ucb-bar/firrtl2/issues
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
---------------------------------------------------------------------------------------------------

The changes I made to the config files 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

and  config_build.yaml:

build_farm:
    ...
    # instance type to use per build
    #instance_type: z1d.2xlarge
    instance_type: c5.4xlarge
    ...
builds_to_run:
    
    #- midasexamples_gcd
    - test_design

agfis_to_share:
    #- midasexamples_gcd
    - test_design
---------------------------------------------------------------------------------------------------
and in firesim/sim/make I changed a line in the config.mk:
...
# Root name for generated binaries
DESIGN ?=FireSim
...
---------------------------------------------------------------------------------------------------
Also:
$ conda --version
conda 24.9.2

$ python --version
Python 3.10.14

$ conda-lock --version
conda-lock, version 2.5.7

Could you please tell me what is wrong here?

Kindly let me know if you need the full log file. Any comments would be appreciated.
Reply all
Reply to author
Forward
0 new messages