Skip to content

Commit

Permalink
fpga: Updating FPGA synth scripts for OpenTitan.
Browse files Browse the repository at this point in the history
fpga: Introcued scripts to generate the "eFuse" and boot roms with given code.

fpga: Updated artifact management to take select only useful envvar
  • Loading branch information
Maicol Ciani authored and CyrilKoe committed Oct 12, 2023
1 parent 3c43574 commit 00efc3d
Show file tree
Hide file tree
Showing 13 changed files with 9,315 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Bender.lock
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ packages:
- common_cells
- common_verification
opentitan:
revision: 4946c1ab9dd0f3191a9dea91edd58aa3647a0e80
revision: 74ed88bf04dacc159fe03128677d0cd90518e21c
version: null
source:
Git: https://github.com/pulp-platform/opentitan.git
Expand Down Expand Up @@ -514,7 +514,7 @@ packages:
- register_interface
- tech_cells_generic
tech_cells_generic:
revision: 7968dd6e6180df2c644636bc6d2908a49f2190cf
revision: 7e92d7aae3af501b7f0d96bf902ee84b50e1b5c6
version: 0.2.13
source:
Git: https://github.com/pulp-platform/tech_cells_generic.git
Expand Down
2 changes: 1 addition & 1 deletion Bender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
car_l2: { git: [email protected]:carfield/carfield_l2_mem.git, rev: 0143fb296e3614adf8894ff7335cc3f9b92783bd } # branch: main
safety_island: { git: [email protected]:carfield/safety-island.git, rev: cc541a6cf5995eea29dd255db68fbe7d2cd10af6 } # branch: michaero/carfield
pulp_cluster: { git: https://github.com/pulp-platform/pulp_cluster.git, rev: 8356888056441d6cf5b94e348a0817264b9b1b8c } # branch: yt/rapidrecovery
opentitan: { git: https://github.com/pulp-platform/opentitan.git, rev: 4946c1ab9dd0f3191a9dea91edd58aa3647a0e80 } # branch: carfield_soc
opentitan: { git: https://github.com/pulp-platform/opentitan.git, rev: 74ed88bf04dacc159fe03128677d0cd90518e21c } # branch: ck/fpga_ultraram
mailbox_unit: { git: [email protected]:pulp-platform/mailbox_unit.git, version: 1.1.0 }
apb: { git: https://github.com/pulp-platform/apb.git, version: 0.2.3 }
timer_unit: { git: https://github.com/pulp-platform/timer_unit.git, version: 1.0.2 }
Expand Down
5 changes: 4 additions & 1 deletion target/xilinx/xilinx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ PROJECT ?= carfield
BOARD ?= vcu128
ip-dir := $(CAR_XIL_DIR)/xilinx
USE_ARTIFACTS ?= 0
ELABORATION_ONLY ?= 0


xilinx_defs ?= TARGET_XILINX

# Select board specific variables
ifeq ($(BOARD),vcu128)
XILINX_PART ?= xcvu37p-fsvh2892-2L-e
XILINX_BOARD ?= xilinx.com:vcu128:part0:1.0
XILINX_PORT ?= 3232
FPGA_PATH ?= xilinx_tcf/Xilinx/091847100638A
XILINX_HOST ?= bordcomputer
ips-names := xlnx_mig_ddr4 xlnx_clk_wiz xlnx_vio
ips-names := xlnx_mig_ddr4 xlnx_clk_wiz xlnx_vio xilinx_rom_bank_1024x22 xilinx_rom_bank_8192x40
endif

# Location of ip outputs
Expand Down
3 changes: 2 additions & 1 deletion target/xilinx/xilinx/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ $(PROJECT).xpr:

# Generate a sha based on env variables and artifacts_in
generate_sha256:
@echo $(VIVADOENV) $(VIVADO) $(PROJECT) $(ARTIFACTS_IN) > .generated_env
@echo $(VIVADO) $(PROJECT) > .generated_env
@echo $(VIVADOENV) | tr " " "\n" | grep $(foreach var,$(ARTIFACTS_VARS), $(addprefix -e ,$(var))) >> .generated_env
@sha256sum $(ARTIFACTS_IN) >> .generated_env
@sha256sum .generated_env | awk '{print $$1}' > .generated_sha256

Expand Down
10 changes: 10 additions & 0 deletions target/xilinx/xilinx/xilinx_rom_bank_1024x22/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2022 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

PROJECT:=xilinx_rom_bank_1024x22
# The files and variables on which the IP configuration depends
ARTIFACTS_IN:=Makefile tcl/run.tcl otp.coe
ARTIFACTS_VARS:=XILINX_PART XILINX_BOARD BOARD

include ../common.mk
Loading

0 comments on commit 00efc3d

Please sign in to comment.