<@U017X0NM2E7> could you help me with this error? ...
# shuttle-precheck
s
@Mitch Bailey could you help me with this error? GPIO-Defines .I got this in precheck failure
m
Is there a message in the log file about where to look for errors? It should be named
cvc.oeb.report
. If you can find that, but the messages are not clear, let me know.
m
@samarth jain Did you change your user defines? It is located in this file
verilog/rtl/user_defines.v
s
Hi, @Marwan Abbas, I am not sure what we should change in user_define.v file.Do you know any tutorial where I can get more info on it?
m
@samarth jain tutorial can be found here

https://www.youtube.com/watch?v=Rd_6foMzdMY&amp;list=PLZuGFJzpFksCG7p1yURxVo5lWHzeOoR9_&amp;index=12

s
Yes but they dont talk about how to set GPIO as analog inputs?I need to feed input voltage to my chip from outside sources for analog signals.Also as my all GPIO are analog, I can keep `io_oeb`floating? I am using caravel and not caravan.Below are my settings.Aditionally I am confused as I think analog is only from
analog_io[28:0]
but how come the user_defines have GPIO 5 TO 37 as analog?is it because gpio 5,6 are uart and how about GPIO 36,37?Kindly help to verify if my settings r ok @Marwan Abbas
image.png
m
@samarth jain In
user_project_wrapper
,
analog_io[28:0]
correspond to gpio 35:7. From
caravel_user_project/verilog/rtl/user_project_wrapper.v
Copy code
// Analog (direct connection to GPIO pad---use with caution)
    // Note that analog I/O is not available on the 7 lowest-numbered
    // GPIO pads, and so the analog_io indexing is offset from the
    // GPIO indexing by 7 (also upper 2 GPIOs do not have analog_io).
    inout [`MPRJ_IO_PADS-10:0] analog_io,
If you use
GPIO_MODE_USER_STD_ANALOG
, set
io_oeb
to low. (high is also ok since the output driver is disabled). Leaving
io_oeb
open may result in an internal leak in the USER modes. You can also choose
GPIO_MODE_MGMT_STD_ANALOG
. In this case
io_oeb
can be open.
s
What are GPIO 36,37? @Mitch Bailey and I thought GPIO Mode MGMT STD ANALOG is for management area?but my design is in user area
m
GPIO 36 and 37 only have digital connections to user_project_wrapper. Here’s the settings for the gpio configurations. As you can see, the only difference between
GPIO_MODE_MGMT_STD_ANALOG
and
GPIO_MODE_USER_STD_ANALOG
is
MGMT_ENABLE
. However as you can see from the schematic,
MGMT_ENABLE
does not affect
PAD_A_ESD_0_H
which is what the
analog_io
connects to. You can look at the schematics and the gpio_control_block rtl.