antmicro / xls-cosimulation-demonstrator

Apache License 2.0
0 stars 0 forks source link

gem5 simulation hang #3

Open proppy opened 5 months ago

proppy commented 5 months ago

when following README instructions to drive the simulation with gem5: https://github.com/antmicro/xls-cosimulation-demonstrator?tab=readme-ov-file#run-gem5 it currently hangs on:

xls-cosimulation-demonstrator πŸ™  ./gem5/build/RISCV/gem5.debug gem5/configs/rv32/rv32.py --firmware firmware/out/demo-gem5/fw_demo-gem5.elf                  
                                       --xls-plugin xls/./bazel-bin/xls/simulation/gem5/libgem5_xls_plugin.so                                                 
        --xls-config ci/test_data/config.textproto
gem5 Simulator System.  https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version 23.0.1.0
gem5 compiled Feb 19 2024 12:05:17
gem5 started Mar 29 2024 13:21:35
gem5 executing on penguin, pid 4364
command line: ./gem5/build/RISCV/gem5.debug gem5/configs/rv32/rv32.py --firmware firmware/out/demo-gem5/fw_demo-gem5.elf --xls-plugin xls/./bazel-bin/xls/simulation/gem5/libgem5_xls_plugin.so --xls-config ci/test_data/config.textproto

Global frequency set at 1000000000000 ticks per second
warn: No dot file generated. Please install pydot to generate the dot file and pdf.
src/base/statistics.hh:279: warn: One of the stats is a legacy stat. Legacy stat is a stat that does not belong to any statistics::Group. Legacy stat is deprecated.
system.platform.terminal: Listening for connections on port 3456
src/dev/cosim/xls.cc:186: warn: before xls_setupPeripheral call
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1711714895.992667    4364 gem5connection.cc:106] In xls_setupPeripheral
I0000 00:00:1711714895.997285    4364 peripheral_factory.cc:66] Setting up simulation of the following design: "rle_enc_opt_ir.opt.ir"
XLS UNINIT-LOG (0): Setting up simulation of the following design: "rle_enc_opt_ir.opt.ir"

I0000 00:00:1711714896.007821    4364 xlsperipheral.cc:41] Creating generic::XlsPeripheral.
XLS UNINIT-LOG (0): Creating generic::XlsPeripheral.

src/dev/cosim/xls.cc:189: warn: after xls_setupPeripheral call
I0000 00:00:1711714896.008413    4364 peripheral_factory.cc:138] Registering channel "rle_enc__input_r"
I0000 00:00:1711714896.008482    4364 peripheral_factory.cc:138] Registering channel "rle_enc__output_s"
I0000 00:00:1711714896.008517    4364 gem5connection.cc:128] Peripheral has been reset!
system.remote_gdb: Listening for connections on port 7000
Starting simulation
src/sim/simulate.cc:194: info: Entering event queue @ 0.  Starting simulation...
kboronski-ant commented 5 months ago

This is what you are supposed to see when the simulation starts.

If the run is successful, then you will see output with the following lines:

system.platform.terminal: Listening for connections on port 3456

Followed by simulation started prompt:

system.remote_gdb: Listening for connections on port 7000
Starting simulation
src/sim/simulate.cc:194: info: Entering event queue @ 0.  Starting simulation...

I see all of the those in your output. It looks like the simulation has started.

Have you tried proceeding further with README, by that I mean connecting to the terminal on port 3456?