Building custom afi using recipes in chipyard 1.4

36 views
Skip to first unread message

Varun Gandhi

unread,
Feb 16, 2021, 11:00:19 AM2/16/21
to chip...@googlegroups.com
Hi,

I’m trying to build a quadcore mediumboom config with NIC using build recipes in the new release, and the make command fails. I’ve been stuck at it for a while now and would appreciate some help, thanks!

Note: my firesim setup successfully builds the sample configs, e.g., single-core largeboom config.

I follow these steps for building my custom config:

1. BoomConfigs.scala

class QuadMediumBoomConfig extends Config(                             // quad medium boom config
new boom.common.WithNMediumBooms(4) ++
new chipyard.config.AbstractConfig)


2. Config_build_recipes.ini

[firesim-boom-quadcore-nic-l2-llc4mb-ddr3]
DESIGN=FireSim
TARGET_CONFIG=WithNIC_DDR3FRFCFSLLC4MB_WithDefaultFireSimBridges_WithFireSimConfigTweaks_chipyard.QuadMediumBoomConfig
PLATFORM_CONFIG=F65MHz_BaseF1Config
instancetype=z1d.2xlarge
deploytriplet=None

3. Config_build.ini

[builds]
firesim-medium-quad-boom-nic-l2-llc4mb-ddr3



The make command fails and I get the following error:


2021-02-16 15:27:20,788 [flush       ] [INFO ]  [localhost] out: ^[[0J^[[0Jmake: *** [/home/centos/chipyard/sims/firesim/sim/generated-src/f1/FireSim-WithNIC_DDR3FRFCFSLLC4MB_WithDefaultFireSimBridges_WithFireSimConfigTweaks_chipyard.QuadMediumBoomConfig-F65MHz_BaseF1Config/FPGATop.v] Error 1
2021-02-16 15:27:20,789 [flush       ] [INFO ]  [localhost] out:
2021-02-16 15:27:20,789 [flush       ] [INFO ]  Fatal error: run() received nonzero return code 2 while executing!
2021-02-16 15:27:20,789 [flush       ] [INFO ]  Requested: make  DESIGN=FireSim TARGET_CONFIG=WithNIC_DDR3FRFCFSLLC4MB_WithDefaultFireSimBridges_WithFireSimConfigTweaks_chipyard.QuadMediumBoomConfig PLATFORM_CONFIG=F65MHz_BaseF1Config replace-rtl
2021-02-16 15:27:20,789 [flush       ] [INFO ]  Executed: /bin/bash -l -c "cd /home/centos/chipyard/sims/firesim/deploy/../ && export RISCV=/home/centos/chipyard/riscv-tools-install && export PATH=/home/centos/chipyard/sims/firesim/utils/fireperf:/home/centos/chipyard/sims/firesim/utils/fireperf/FlameGraph:/home/centos/chipyard/sims/firesim/utils/fireperf:/home/centos/chipyard/sims/firesim/utils/fireperf/FlameGraph:/home/centos/chipyard/riscv-tools-install/bin:/home/centos/chipyard/software/firemarshal:/home/centos/chipyard/bin:/opt/Xilinx/SDx/2018.3.op2405991/bin:/opt/Xilinx/Vivado/2018.3.op2405991/bin:/usr/local/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/srv/git/centos-git-common:/home/centos/.local/bin:/home/centos/bin:/srv/git/centos-git-common:/home/centos/.local/bin:/home/centos/bin:/home/centos/chipyard/sims/firesim/deploy:/home/centos/chipyard/sims/firesim/deploy && export LD_LIBRARY_PATH=/home/centos/chipyard/riscv-tools-install/lib && source sourceme-f1-manager.sh && export CL_DIR=/home/centos/chipyard/sims/firesim/deploy/../platforms/f1/aws-fpga/hdk/cl/developer_designs/cl_FireSim-WithNIC_DDR3FRFCFSLLC4MB_WithDefaultFireSimBridges_WithFireSimConfigTweaks_chipyard.QuadMediumBoomConfig-F65MHz_BaseF1Config && cd sim/ && make  DESIGN=FireSim TARGET_CONFIG=WithNIC_DDR3FRFCFSLLC4MB_WithDefaultFireSimBridges_WithFireSimConfigTweaks_chipyard.QuadMediumBoomConfig PLATFORM_CONFIG=F65MHz_BaseF1Config replace-rtl"
2021-02-16 15:27:20,789 [flush       ] [INFO ]  Aborting.
2021-02-16 15:27:20,790 [<module>    ] [ERROR]  Fatal error.
Traceback (most recent call last):
  File "/home/centos/chipyard/sims/firesim/deploy/firesim", line 334, in <module>
    main(args)
  File "/home/centos/chipyard/sims/firesim/deploy/firesim", line 269, in main
    globals()[args.task](buildconfig)
  File "/home/centos/chipyard/sims/firesim/deploy/firesim", line 136, in buildafi
    execute(replace_rtl, globalbuildconf, buildconf, hosts=['localhost'])
  File "/usr/lib64/python2.7/site-packages/fabric/tasks.py", line 386, in execute
    multiprocessing
  File "/usr/lib64/python2.7/site-packages/fabric/tasks.py", line 276, in _execute
    return task.run(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/fabric/tasks.py", line 173, in run
    return self.wrapped(*args, **kwargs)
  File "/home/centos/chipyard/sims/firesim/deploy/buildtools/buildafi.py", line 43, in replace_rtl
    run(buildconfig.make_recipe("replace-rtl"))
  File "/usr/lib64/python2.7/site-packages/fabric/network.py", line 687, in host_prompting_wrapper
    return func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/fabric/operations.py", line 1090, in run
    shell_escape=shell_escape, capture_buffer_size=capture_buffer_size,
  File "/usr/lib64/python2.7/site-packages/fabric/operations.py", line 954, in _run_command
    error(message=msg, stdout=out, stderr=err)
  File "/usr/lib64/python2.7/site-packages/fabric/utils.py", line 358, in error
    return func(message)
  File "/usr/lib64/python2.7/site-packages/fabric/utils.py", line 62, in abort
    raise e


Best,
Varun
Reply all
Reply to author
Forward
0 new messages