Anton Blanchard
11/24/2022, 9:23 PMmake gpio_defaults
from the caravel_user_project
directory doesn't seem to do the right thing. Ultimately it needs to make modifications to caravel/verilog/gl/caravel.v
but the script is looking for it in the wrong spot:
vpath = user_project_path + '/verilog'
glpath = vpath + '/gl'
Anton Blanchard
11/24/2022, 9:24 PM--- a/scripts/gen_gpio_defaults.py
+++ b/scripts/gen_gpio_defaults.py
@@ -120,16 +120,16 @@ if __name__ == '__main__':
print('Error: Project path "' + user_project_path + '" does not exist or is not readable.')
sys.exit(1)
- magpath = user_project_path + '/mag'
- vpath = user_project_path + '/verilog'
- glpath = vpath + '/gl'
-
try:
caravel_path = os.environ['CARAVEL_ROOT']
except:
print('Warning: CARAVEL_ROOT not set; assuming the cwd.')
caravel_path = os.getcwd()
+ magpath = caravel_path + '/mag'
+ vpath = caravel_path + '/verilog'
+ glpath = vpath + '/gl'
+
# Check paths
if not os.path.isdir(vpath):
print('No directory ' + vpath + ' found (path to verilog).')
@@ -145,7 +145,7 @@ if __name__ == '__main__':
# Parse the user defines verilog file
kvpairs = {}
- user_defines_path = vpath + '/rtl/user_defines.v'
+ user_defines_path = user_project_path + '/verilog/rtl/user_defines.v'
if not os.path.isfile(user_defines_path):
user_defines_path = caravel_path + '/verilog/rtl/user_defines.v'
Mitch Bailey
11/24/2022, 9:47 PMcaravel/verilog/gl/caravel.v
is the master version and is not supposed to change. When make gpio_defaults is run, caravel/verilog/gl/caravel.v
is read and modified with the correct gpio defaults (from the users verilog/rtl/user_defines.v
which is required in precheck as of mpw7) and then written to verilog/gl/caravel.v
Anton Blanchard
11/24/2022, 9:54 PM./mgmt_core_wrapper/verilog/includes/includes.gl.caravel
-v $(CARAVEL_PATH)/gl/caravel.v
Anton Blanchard
11/24/2022, 9:55 PMAnton Blanchard
11/24/2022, 9:57 PMTim Edwards
11/25/2022, 3:19 AM