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
Tim Edwards
06/03/2022, 4:37 AM
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
Hanssel Enrique Morales Norato
06/03/2022, 5:12 AM
@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
Tim Edwards
06/03/2022, 5:39 AM
Okay, sorry, that was my only thought. I have not tried to debug with the VexRISC core.
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.