-
Notifications
You must be signed in to change notification settings - Fork 224
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
Questions reg. UART and SPI demo #1080
Comments
Hey @vinith32.
Thank you very much! :)
The demo_spi program provides an interactive console (via UART) to allow the user to execute manual SPI transmissions; neorv32/sw/example/demo_spi/main.c Line 40 in f9a2801
When simulating this program, there is no UART input. So this program will just wait for input until the simulation terminates.
That depends on the compile switches. If you compile with
Yes, basically all example programs are also some kind of test programs as they target each individual peripheral module.
Unfortunately, there is no default sim_tx -> core_rx mechanism right now. We just have a simulated UART receiver. But it should not be too hard to add the TX counterpart I think. 🤔 |
Ok sir. So, here demo_spi can be simualted by enabling the inbuilt SPI using the testbench or it needed a real external spi device? |
Sure, you can simulate the Furthermore, the SPI port is not connected to any simulated device inside the testbench - there is just some kind of local echo that connects the SPI module (SPI host) to the SDI (SPI device): Lines 320 to 329 in cbfd473
|
1). Hi, your work on NEORV32 is amazing. I am trying to simulate the examples. Im getting hello world and hello cpp output via UART, but when i run _DEMO_SPI, the simulation is freezed and getting max runtime error.
2). so every example, sw/simple/testbench's output is displayed in the console VIA UART. So, actually where it is defined.
3). In the example files, can we call them as "c test cases" ?
4). So, we have a uart receiver in sim/simple. So, how to send value from the testbench, so that the uart receiver can receive?
The text was updated successfully, but these errors were encountered: