I’m finally getting around to adding tests to my s...
# sky130
t
I’m finally getting around to adding tests to my submission, but I am immediately encountering issues just reading the outputs from my design. I opened the results of the latest run in GTKWave here. Top is the clock, middle is what my design is generating on io_out, bottom is what appears on the mprj_io output I can check in the testbench Verilog file. Output enables are set correctly. SPI flash firmware is correct. Nothing should be stopping this from working, yet it does not. I spent all day trying everything I could think of, and nothing I do changes the result ever, so any help appreciated, thanks.
m
Can you provide a link to your repo?
I found a temporary workaround to allow me to access io_out on my wrapped design from the testbench, but I’d still like to know that the outputs I want will appear on the actual I/O pins.
m
What are your gpio settings in
verilog/rtl/user_defines.v
?
t
All of them except io’s 9:5 (which are inputs) are outputs. The defines in the repo are up to date.
m
@mshalan who’s responsible for the verilog testbenches?
m
user_defines.v doesn't make any difference at simulation stage
you probably want user output not mgmt output
if you want your design to control the ios
GPIO_MODE_USER_STD_OUTPUT
is what you want
plus your io_oeb driven low for all pins you want to be outputs
t
Oh, that's such a silly mistake. I see now. Thank you.
I did not know there is a difference