Skip to content

Demonstrator for sys_core emulation#3

Merged
unbtorsten merged 4 commits into1-emulator-prototypefrom
1-sys_core_emulator
May 8, 2025
Merged

Demonstrator for sys_core emulation#3
unbtorsten merged 4 commits into1-emulator-prototypefrom
1-sys_core_emulator

Conversation

@unbtorsten
Copy link
Copy Markdown
Contributor

@unbtorsten unbtorsten commented May 4, 2025

Scope

  • Contributions toward emulator prototype #2 led to realization that sanimut_run establishes session based on interaction with sys_core, hence, emulation of application-core (trxpc1_core) is insufficient. This hack adapts the prototype for use with only the module sys_core.

Open Points

Test

export SANIMUT_FPGA_SOURCEDIR=[PATH/TO/sanimut_fpga]/sanimut/rtl/hdl/
cd demo_hack
make
./run_direct.sh

In another terminal:

sanimut_run --use_device fpgamodel

Expected output

Communication and handshakes can be observed in both terminals:
image

Test (via UNB network)

On local computer:

  • Modify demo_hack/demo_sanimut.py,
    if_socket = SocketInterface(20002, host_address=<USER_IP>)
    
  • Run
    cd demo_hack
    make
    ./run_direct.sh
    

On remote machine:

  • Modify/create devices.conf with section
    [virtual1]
    name=helium
    # Address of computer/host
    src_addr=<USER_IP>
    # Port on computer
    src_port=20000
    # Address of FPGA/Emulator
    dst_addr=<EMULATOR_IP>
    # Port on FPGA
    dst_port=20002
    
  • Run
    sanimut_run --use_device helium
    

Enjoy the output

image

@unbtorsten unbtorsten requested a review from mferris03 May 4, 2025 23:11
@unbtorsten unbtorsten self-assigned this May 4, 2025
@unbtorsten unbtorsten linked an issue May 4, 2025 that may be closed by this pull request
4 tasks
@mferris03
Copy link
Copy Markdown
Contributor

mferris03 commented May 5, 2025

Struggling with both the makefile and python test. for the makefile, should the SANIMUT_FPGA_SOURCEDIR variable point to the top level of the sanimut_fpga repo? For the python test I assume its for the future given the lack of the Static file
Edit: found the right variable name

@unbtorsten
Copy link
Copy Markdown
Contributor Author

That piece of information was missing. You'll need to set

export SANIMUT_FPGA_SOURCEDIR=[PATH/TO/sanimut_fpga]/sanimut/rtl/hdl/

@unbtorsten unbtorsten marked this pull request as ready for review May 8, 2025 02:47
@unbtorsten unbtorsten merged commit 30373dc into 1-emulator-prototype May 8, 2025
@unbtorsten unbtorsten deleted the 1-sys_core_emulator branch May 8, 2025 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prototype for application core emulator

2 participants