Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulate SoC and communicate through UART #2084

Open
Leopard777 opened this issue Sep 28, 2024 · 3 comments
Open

Simulate SoC and communicate through UART #2084

Leopard777 opened this issue Sep 28, 2024 · 3 comments

Comments

@Leopard777
Copy link

I had a look at the wiki (https://github.com/enjoy-digital/litex/wiki/SoC-Simulator and https://github.com/enjoy-digital/litex/wiki/Use-Host-Bridge-to-control-debug-a-SoC) and I had the question whether or not its possible to simulate an SoC with UART and communicate with it through UART? The reason I’m asking is because the firmware I’m creating accepts commands via UART and I would like to make use of simulation for development.

P.S. The project looks really cool!

@Leopard777 Leopard777 changed the title Simulated SoC communicate through UART Simulate SoC and communicate through UART Sep 28, 2024
@AndrewD
Copy link
Collaborator

AndrewD commented Sep 28, 2024

You can interact with the bios, or a running firmware, via the terminal when running the simulator.

@enjoy-digital
Copy link
Owner

Hi @Leopard777,

do you want the simulator to create a virtual UART and just use regular terminal tools to interact with it? If so, this is not currently possible with upstream code, but I probably have some old code to do so and would try to re-integrate it.

@Leopard777
Copy link
Author

Hi,

Apologies for the delay @AndrewD. @enjoy-digital yeah, I think that’s exactly what I need. The simulator creates a virtual UART for the SoC and some client side code can send/receive data by means of a FIFO or a socket, … . But I have no idea have feasible this is.

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

No branches or pull requests

3 participants