jeffdi
verilog/rtl
directory for your project and include this in your repo (or tar archive for chipgnite) when you submit your project.
https://github.com/efabless/caravel/blob/44a83f90eb5dbfb8fd620c2f61bf0777a231ddcf/verilog/rtl/user_defines.v
Modify the USER_CONFIG_GPIO_X_INIT define statements to the desired mode for each GPIO used.
Examples...
`define USER_CONFIG_GPIO_12_INIT `GPIO_MODE_USER_STD_OUTPUT
`define USER_CONFIG_GPIO_35_INIT `GPIO_MODE_USER_STD_INPUT_NOPULL
`define USER_CONFIG_GPIO_18_INIT `GPIO_MODE_USER_STD_ANALOG
************************************Jordan
06/03/2022, 5:39 PMJordan
06/03/2022, 5:47 PM// Analog pads are only used by the "caravan" module and associated
// modules such as user_analog_project_wrapper and chip_io_alt.
`define ANALOG_PADS_1 5
`define ANALOG_PADS_2 6
`define ANALOG_PADS (`ANALOG_PADS_1 + `ANALOG_PADS_2)
Janani Aravind
06/03/2022, 5:52 PMHadir Khan
06/03/2022, 5:56 PM// The power-on configuration for GPIO 0 to 4 is fixed and cannot be
// modified (allowing the SPI and debug to always be accessible unless
// overridden by a flash program).
Hadir Khan
06/03/2022, 6:03 PMJanani Aravind
06/03/2022, 6:14 PMjeffdi
jeffdi
mehdi
06/09/2022, 1:09 AMAnton Blanchard
06/10/2022, 11:36 PMGPIO_MODE_USER_STD_OUTPUT
h1808
. If I look at I/O 6, bit 0x8 looks wrong:Anton Blanchard
06/10/2022, 11:37 PMgpio_defaults_block_1808.mag
looks correct too. I'm hardwiring the output enable pin, so I guess it wont matter if GPIO_MODE_STD_OUTPUT
is getting converted to GPIO_MODE_STD_OUTPUT_BIDIRECTIONAL
but is this conversion being done on purpose or is it an issue with the script that updates the mag layouts?Tim Edwards
06/11/2022, 2:24 AMMitch Bailey
06/11/2022, 2:39 AMscripts/gen_gpio_defaults.py
may not be up-to-date. This file was updated on May 9th.Anton Blanchard
06/11/2022, 2:41 AMMitch Bailey
06/11/2022, 3:29 AMAnton Blanchard
06/11/2022, 3:45 AMmpw-6c
version of caravel
?Greg Shuarette
06/12/2022, 1:14 PMmpw-5e
caravel
.Anton Blanchard
06/13/2022, 12:14 AMmpw-5e
has the patch, so something else seems to have caused this.Mitch Bailey
06/13/2022, 12:20 AMgen_gpio_default.py
script only generates cells if they don't exist. If there was a version of the cell created with an older version of the script, it may not have been overwritten with the correct version after the script update.Mitch Bailey
06/13/2022, 12:23 AMmag/gpio_defaults_block_1808.mag
? Maybe delete it and rerun to see if the problem still exists?Anton Blanchard
06/13/2022, 3:26 AMAnton Blanchard
06/13/2022, 3:27 AMAnton Blanchard
06/15/2022, 3:55 AMTim Edwards
06/15/2022, 1:32 PMDinesh A
08/28/2022, 3:56 PMMatt Venn
08/28/2022, 3:59 PMDinesh A
08/28/2022, 4:56 PMMatt Venn
08/28/2022, 4:57 PMMatt Venn
08/28/2022, 9:35 PMDinesh A
09/04/2022, 11:37 AMDinesh A
09/04/2022, 11:40 AMMatt Venn
09/04/2022, 11:51 AMDinesh A
09/04/2022, 1:23 PMAnton Blanchard
09/04/2022, 9:18 PMAnton Blanchard
09/04/2022, 9:21 PMmake gpio_defaults