Closed yk-choi-yk closed 2 years ago
You should provide the .xo file in order to use xosim see https://tapa.readthedocs.io/en/release/tutorial/fast_cosim.html
My misunderstanding - Got it!
I am sorry for reopening this - still having difficulty following the instructions for viewing the wavefrom.
So, if I type the command ./vadd --bitstream=vadd.xilinx_u250_xdma_201830_2.hw.xo -xosim_start_gui=true 1000
,
I get the error
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0526 23:16:52.914762 2304653 frt.cpp:18] Loading vadd.xilinx_u250_xdma_201830_2.hw.xo
I0526 23:16:52.916170 2304653 tapa_fast_cosim_device.cpp:76] Running hardware simulation with TAPA fast cosim
/usr/bin/python3: Error while finding module specification for 'tapa_fast_cosim.main' (ModuleNotFoundError: No module named 'tapa_fast_cosim')
F0526 23:16:53.123595 2304653 tapa_fast_cosim_device.cpp:182] TAPA fast cosim failed
*** Check failure stack trace: ***
Aborted (core dumped)
From the error, I am assuming that I have not generated the xo file correctly for the fast simulation. So is the following command adequate for generating the .xo file for the fast simulation? My guess is that additional option must be needed.
tapac -o vadd.xilinx_u250_xdma_201830_2.hw.xo vadd.cpp \
--platform xilinx_u250_xdma_201830_2 \
--top VecAdd \
--work-dir vadd.xilinx_u250_xdma_201830_2.hw.xo.tapa
python3 -m pip install tapa_fast_cosim
How did you install TAPA? It should be installed automatically
On Thu, May 26, 2022 at 11:26 PM mice101 @.***> wrote:
I am sorry for reopening this - still having difficulty following the instructions for viewing the wavefrom. So, if I type the command ./vadd --bitstream=vadd.xilinx_u250_xdma_201830_2.hw.xo -xosim_start_gui=true 1000 , I get the error
WARNING: Logging before InitGoogleLogging() is written to STDERR I0526 23:16:52.914762 2304653 frt.cpp:18] Loading vadd.xilinx_u250_xdma_201830_2.hw.xo I0526 23:16:52.916170 2304653 tapa_fast_cosim_device.cpp:76] Running hardware simulation with TAPA fast cosim /usr/bin/python3: Error while finding module specification for 'tapa_fast_cosim.main' (ModuleNotFoundError: No module named 'tapa_fast_cosim') F0526 23:16:53.123595 2304653 tapa_fast_cosim_device.cpp:182] TAPA fast cosim failed Check failure stack trace: Aborted (core dumped)
From the error, I am assuming that I have not generated the xo file correctly for the fast simulation. So is the following command adequate for generating the .xo file for the fast simulation? My guess is that additional option must be needed.
tapac -o vadd.xilinx_u250_xdma_201830_2.hw.xo vadd.cpp \ --platform xilinx_u250_xdma_201830_2 \ --top VecAdd \ --work-dir vadd.xilinx_u250_xdma_201830_2.hw.xo.tapa
— Reply to this email directly, view it on GitHub https://github.com/UCLA-VAST/tapa/issues/102#issuecomment-1139322815, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXOD264I6YAAKAG3PXBAZDVMBTKDANCNFSM5W7NPF5Q . You are receiving this because you commented.Message ID: @.***>
That was the reason - many thanks!
Following the instructions in https://tapa.readthedocs.io/en/release/getting_started.html, when I type the command,
./vadd -xosim_start_gui=true -xosim_work_dir=waveform -xosim_save_waveform=true -bitstream=VecAdd.xilinx_u250_xdma_201830_2.hw_emu.xclbin 1000
This runs the HW emulation, but does not generate waveform nor starts the GUI.