Comments (2)
Hi @weipo790,
The print character function is implemented in file sim/tests/common/sc_print.c
, and it writes characters by address SC_SIM_OUTPORT
= 0xf0000000 (defined is same file). This address is SCR1_SIM_PRINT_ADDR
, defined in src/includes/scr1_arch_description.svh
. Then you could search for SCR1_SIM_PRINT_ADDR
in files src/tb/scr1_memory_tb_axi.sv
and src/tb/scr1_memory_tb_ahb.sv
to find entries. For example, for AHB:
scr1/src/tb/scr1_memory_tb_ahb.sv
Line 564 in 7432bd0
Here is the snippet:
case (dmem_ahb_addr)
// Printing character in the simulation console
SCR1_SIM_PRINT_ADDR : begin
$write("%c", dmem_hwdata[7:0]);
end
I hope this helps you.
Best regards,
Alexander
from scr1.
Hi @achuykov-sc ,
I got it. Thanks a lot.
B.R.
Wei-Po
from scr1.
Related Issues (20)
- Syntax error HOT 4
- Syntacore custom modification problems HOT 3
- SCR bootloader’s banner does not show up after I RESET the Arty A7-100T board. HOT 5
- The behavior of Stepping through DCSR.step and DMCONTROL.resumereq HOT 2
- Error 'make tests' fails HOT 1
- Verilator timing required? HOT 1
- Error: unrecognized opcode `fence.i' HOT 17
- Error running Coremark benchmark HOT 7
- Coremark testcase still failed after added #9 issue solution HOT 4
- Invalid result of `DIV` operation HOT 3
- AXI Interconnect problems HOT 3
- Error when running Dhrystone HOT 2
- Incorrect linker flags' order into make file HOT 1
- Incorrect linker flags' order into make file
- Unaligned data access exceptions are not reported in simulation HOT 2
- [question][help wanted] always_ff multiple procedure assignment at scr1_memory_tb_ahb.sv
- Segmentation fault HOT 2
- Got an error while performing coremark test
- store instructions may fail when a CSR is written HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scr1.