Hi The Caravel Processor (VexRiscv) is getting ha...
# caravel
h
Hi The Caravel Processor (VexRiscv) is getting hang while trying to execute the following piece of C code (line 266) : I'm trying to run the tiny-AES library to compare against our hardware implementation of AES but the VexRiscv is reaching some unknown state while trying to execute that c code and then the simulation never recovers, Is there anyone here that has had to debug the VexRIscv core in the past?
t
I would have thought you would need to declare the subroutine to be a function of
state_t *state[][]
, not
state_t *state
, in order to then address it as a 2D array inside the subroutine.
h
@Tim Edwards thanks for your answer. I tried your suggestion, but that's not the case. state_t has been already declared as a 2D array. That code is part of an opensource library: https://github.com/kokke/tiny-AES-c I've also run it on my own RISC-V core and it worked. Looks like there is some issue in the caravel core.
t
Okay, sorry, that was my only thought. I have not tried to debug with the VexRISC core.