Skip to content

Question about riscv-tests and asm-test #3357

Discussion options

You must be logged in to vote

How rocket-chip testbench(Testdriver) monitor the test result through these two macro?

This is done via an interface called Host-Target Interface (HTIF). It is implemented in rocket-chip, spike, pk, riscv-tests and many others so it is the de facto standard.

ucb-bar/riscv-sodor#13 (comment) said it should disappear soon. But AFAIK the only equivalent thing is semihosting and I think the semihosting spec is far from mature.

Besides these spec stuffs, the summary of the HTIF is that, with a .tohost section inside the elf, the loader (riscv-fesrv) of the elf (e.g. inside the vcs emulator) will know where to monitor, and once the software write something to .tohost, fesrv will know it and d…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ZhaoHaowenn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants