error when using sha3 rocc.h MACROs

46 views
Skip to first unread message

ghassan shaheen

unread,
Jun 7, 2023, 9:46:37 AM6/7/23
to Chipyard
Hi, I am working on a project, in which I want to test my own accelerator implantation with a Rocket core. my accelerator implementation is in verilog, and I did the bindings needed with the CPU (I saw that the rocket core and my accelerator are connected in a right manner).

when I try to run my own test - which is a simple test that aims to read and write from the rocket core via a custom command. my test gets stuck. (If I remove those MACROs the test passes, so the problem is within those MACROs).

the MACROs being used are ROCC_INSTRUCTION_SS and ROCC_INSTRUCTION_S from sha3 rocc.h file (https://github.com/ucb-bar/sha3/blob/master/software/tests/src/rocc.h)

when I run the command: (with my config and my test's binary file)
make run-binary-debug BINARY=../../generators/template_accelerator_proj/software/tests/src/templateAccTest CONFIG=templateAccConfig
I get the error:
WhatsApp Image 2023-05-29 at 16.43.03.jpeg

also when I open the waves via gtkwave, I get that the signals just stop after a few cycles after reset:
WhatsApp Image 2023-05-31 at 17.10.42.jpeg

we narrowed down the problem to three assembly lines (the assembly files that were generated once with the MACROs and without the MACROs):
   101ea: 7d018793           addi a5,gp,2000 # 1fef0 <input.1>
   101ee: fd040713           addi a4,s0,-48
   101f2: 00e7b05b           .4byte 0xe7b05b

can anyone help us? what might be the problem?
Reply all
Reply to author
Forward
0 new messages