I was wondering if anyone had a reference for the ...
# caravel-board
e
I was wondering if anyone had a reference for the proper configuration sequence for I/Os on the caravel board. I'm trying to get pin 34 to be an input, and pin 35 to be an output - what else do I need to do besides these lines of code to make that happen? https://github.com/eldrickm/caravel_board/blob/138f1dcc174ebd99064fca5bf6338598437e2de6/firmware/wakey/wakey.c#L326
m
Hey Eldrick - the #caravel channel, this one is about the pcb design
for outputs from the user project area, you also need the oeb line to be set low, to enable the output driver
e
Oops, will post in the future to there. Thanks Matt!
1
@Matt Venn Quick q since it's already here - which oeb line do you mean exactly? I don't see an
oeb
register which corresponds to the
mprj_io
's in
firmware/*defs_mpw-two-mfix.h*
I see
reg_la*_oenb
but you're talking about setting the I/Os, not the LA's right?
m
it's a line in the HDL
e
Ahh right - I think I did that here. https://github.com/eldrickm/wakey_wakey/blob/0d09570e1aa42dc209a428727e09a46fd411aa3b/rtl/wrapper/wrapper/user_proj_example.v#L135 Unfortunately this seems like it's not working. Will debug further, thanks for the second opinion
m
maybe this can help?

https://www.youtube.com/watch?v=pmgeKmqoxTs