Interaction between SW and testbench

M

Michael

Guest
Hello,

I'm running simulation of SoC. There are 3 major parts: HW,
testbench and SW.
I want to use some kind of "printf" function from my SW to print out
on the simulation screen. Function "printf" should be exactly the same
as standard but all parameters should be transfered to the testbench.
In testbench I have access to all memories and want to print what SW
wants to print.

The questions are:
1. How to pass parameters to the testbench
2. How to deal with undefined number of parameters?

P.S. I don't want to use printing from SW - it takes too much time.
Thank you.
 

Welcome to EDABoard.com

Sponsor

Back
Top