hi , while running the precheck for caravel_user_p...
# caravel
l
hi , while running the precheck for caravel_user_project got an error with the gpio defines, sharing the screenshots of the same. could any one explain what has gone wrong.
m
There should be a
verilog/rtl/user_defines.v
file. If you open that, the default has all gpio defaults as invalid. The designer must change each one to reflect the usage of the gpio for their design. There’s a more detailed explanation in the file.
l
before running precheck I had edited the user_defines.v according to the usage.
m
/home/kudsit/caravel_user_project/verilog/rtl/user_defines.v
? Can you post the file?
l
user_defines (1).v
m
I think they do
the 2 lines you linked to are different defines with different values
@LEEJA J I don't see anything wrong with your user_defines.v
are you sure it's the one in use? I see the file you uploaded is user_defines(1).v so maybe the real user_defines.v is not updated and still the default?
Ideally you would have this in a repository with everything commited and pushed and give us the link
f
@Matt Venn you are correct . I was my local version that lacks https://github.com/efabless/caravel/commit/7276623d3cd2b909e83a79f24968b5b547fcef86 . Sorry about the confusion.
m
they did used to be out of sync
m
@LEEJA J I think it’s a syntax problem. `define`s in verilog are precede by a
Copy code
.
Defined variables are also preceded by a
when referenced.
Copy code
`define USER_CONFIG_GPIO_5_INIT `GPIO_MODE_USER_STD_INPUT_NOPULL
`define USER_CONFIG_GPIO_6_INIT `GPIO_MODE_USER_STD_INPUT_NOPULL
`define USER_CONFIG_GPIO_7_INIT `GPIO_MODE_USER_STD_INPUT_NOPULL
`define USER_CONFIG_GPIO_8_INIT `GPIO_MODE_USER_STD_INPUT_NOPULL
`define USER_CONFIG_GPIO_9_INIT `GPIO_MODE_USER_STD_INPUT_NOPULL
`define USER_CONFIG_GPIO_10_INIT `GPIO_MODE_USER_STD_OUTPUT
`define USER_CONFIG_GPIO_11_INIT `GPIO_MODE_USER_STD_OUTPUT
1
👍 1
m
you got it Mitch