Christopher Batten
06/15/2022, 12:53 AMuser_defines.v
file into caravel/verilog/rtl
in our repo here: https://github.com/cornell-ece5745/ece5745-tapeout ... but how does this work? It seems like we are changing some RTL for the Caravel harness but I thought that was a pre-compiled macro or something that gets combined with our user defined logic? We just want to make sure we really understand this so we don't end up messing up the IO configuration ... we would really rather not have to use firmware on the RISCV core just to configure the IO pins ...Christopher Batten
06/15/2022, 5:21 PMuser_defines.v
into our own project's verilog/rtl
not the caravel/verilog/rtl
... not quite sure yet how this plays with simulation though ... also not quite sure how the "hard coded IO" actually works 😉Dinesh A
09/04/2022, 1:26 PMChristopher Batten
09/13/2022, 8:23 PMAidan McNay
09/13/2022, 8:27 PMcaravel/verilog/rtl
, user_defines.v controls the power-up configuration of the GPIO's. To simulate with this, you have to not include the GPIO configuration is the simulation (i.e. cut out all of the code about GPIO_MODE and reg_mprj_xfer in your simulation's .c file). This code overwrites whatever the default configuration is for the GPIO's, so to use the default setup, you can't include it