-
Notifications
You must be signed in to change notification settings - Fork 2
/
Bender.yml
178 lines (157 loc) · 8.43 KB
/
Bender.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Copyright 2024 ETH Zurich and University of Bologna
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
# SPDX-License-Identifier: SHL-0.51
package:
name: croc_soc
authors:
- "Philippe Sauter <[email protected]>"
dependencies:
# IMPORTANT: see vendor_package at the bottom
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: 1.37.0 }
common_verification: { git: "https://github.com/pulp-platform/common_verification.git", rev: "verilator-fix" }
riscv-dbg: { git: "https://github.com/pulp-platform/riscv-dbg.git", rev: "verilator-phsauter" }
tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: 0.2.13 }
register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: 0.4.1 }
ibex: { git: "https://github.com/pulp-platform/ibex.git", rev: "pulpissimo-v6.1.2" }
apb: { git: "https://github.com/pulp-platform/apb.git", version: 0.2.4 }
timer_unit: { git: "https://github.com/pulp-platform/timer_unit.git", version: 1.0.3 }
obi: { git: "https://github.com/pulp-platform/obi.git", version: 0.1.3 }
apb_uart: { git: "https://github.com/pulp-platform/apb_uart.git", version: 0.2.1 }
sources:
# Level 0
- target: ihp13
files:
- ihp13/tc_clk.sv
- ihp13/tc_sram.sv
- rtl/croc_pkg.sv
- rtl/soc_ctrl/soc_ctrl_reg_pkg.sv
# RTL
- target: not(netlist_yosys)
files:
# Level 1
- rtl/core_wrap.sv
- rtl/soc_ctrl/soc_ctrl_reg_top.sv
# Level 2
- rtl/croc_domain.sv
- rtl/user_domain.sv
# Level 3
- rtl/croc_soc.sv
# Level 4
- rtl/croc_chip.sv
# netlist for simulation
- target: netlist_yosys
files:
- yosys/out/croc_yosys_debug.v
- target: any(simulation, verilator)
files:
- rtl/tb_croc_soc.sv
vendor_package:
#################################
# commonly used building blocks #
#################################
- name: common_cells
target_dir: rtl/common_cells
upstream: { git: "https://github.com/pulp-platform/common_cells.git", rev: "c27bce39ebb2e6bae52f60960814a2afca7bd4cb" } # v1.37.0
patch_dir: "rtl/patches/common_cells"
exclude_from_upstream:
- "src/deprecated"
mapping:
- { from: 'src/', to: '', patch_dir: 'src/' }
- { from: 'include/common_cells/', to: 'include/common_cells/', patch_dir: 'include/' }
- { from: 'README.md', to: 'README.md', patch_dir: '' }
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
- name: common_verification
target_dir: rtl/common_verification
upstream: { git: "https://github.com/pulp-platform/common_verification.git", rev: "e1180111e2bb9def1eb790d96a3a65993b84536f" } # branch verilator-fix
patch_dir: "rtl/patches/common_verification"
mapping:
- { from: 'src/clk_rst_gen.sv', to: 'clk_rst_gen.sv', patch_dir: 'src/' }
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
- name: tech_cells_generic
target_dir: rtl/tech_cells_generic
upstream: { git: "https://github.com/pulp-platform/tech_cells_generic.git", rev: "7968dd6e6180df2c644636bc6d2908a49f2190cf" } # v0.2.13
patch_dir: "rtl/patches/tech_cells_generic"
mapping:
- { from: 'src/rtl/', to: '', patch_dir: 'rtl/' }
- { from: 'src/fpga/', to: 'fpga/', patch_dir: 'fpga/' }
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
- { from: 'README.md', to: 'README.md', patch_dir: '' }
#############################
# interconnects / protocols #
#############################
- name: obi
target_dir: rtl/obi
upstream: { git: "https://github.com/pulp-platform/obi.git", rev: "c2141a653c755461ff44f61d12aeb5d99fc8e760" } # v0.1.3
patch_dir: "rtl/patches/obi"
exclude_from_upstream:
- "src/test"
mapping:
- { from: 'src/', to: '', patch_dir: 'src/' }
- { from: 'include/obi', to: 'include/obi', patch_dir: 'include/' }
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
- { from: 'Readme.md', to: 'Readme.md', patch_dir: '' }
- name: register_interface
target_dir: rtl/register_interface
upstream: { git: "https://github.com/pulp-platform/register_interface.git", rev: "3b2bf592100b769977c76e51812c55cd742882f6" } # v0.4.1
patch_dir: "rtl/patches/register_interface"
mapping:
- { from: 'src/periph_to_reg.sv', to: 'periph_to_reg.sv', patch_dir: 'src/' }
- { from: 'src/reg_intf.sv', to: 'reg_intf.sv', patch_dir: 'src/' }
- { from: 'src/reg_to_apb.sv', to: 'reg_to_apb.sv', patch_dir: 'src/' }
- { from: 'include/register_interface/', to: 'include/register_interface/', patch_dir: 'include/' }
- { from: 'vendor/lowrisc_opentitan/src', to: 'lowrisc_opentitan', patch_dir: 'vendor/' }
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
- { from: 'README.md', to: 'README.md', patch_dir: '' }
- name: apb
target_dir: rtl/apb
upstream: { git: "https://github.com/pulp-platform/apb.git", rev: "77ddf073f194d44b9119949d2421be59789e69ae" } # v0.2.4
patch_dir: "rtl/patches/apb"
mapping:
- { from: 'src/apb_pkg.sv', to: 'apb_pkg.sv', patch_dir: 'src/' }
- { from: 'include/apb/', to: 'include/apb/', patch_dir: 'include/' }
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
- { from: 'README.md', to: 'README.md', patch_dir: '' }
###############
# peripherals #
###############
- name: riscv-dbg
target_dir: rtl/riscv-dbg
upstream: { git: "https://github.com/pulp-platform/riscv-dbg.git", rev: "8ef87abf81cab39ad7b52435aa2a3357678fa1d6" } # branch verilator-phsauter
patch_dir: "rtl/patches/riscv-dbg"
mapping:
- { from: 'src/', to: '', patch_dir: 'src/' }
- { from: 'debug_rom/debug_rom.sv', to: 'debug_rom/debug_rom.sv', patch_dir: 'debug_rom/' }
- { from: 'debug_rom/debug_rom_one_scratch.sv', to: 'debug_rom/debug_rom_one_scratch.sv', patch_dir: 'debug_rom/' }
- { from: 'tb/jtag_dmi/jtag_test_simple.sv', to: 'tb/jtag_test_simple.sv', patch_dir: 'tb/' }
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
- { from: 'README.md', to: 'README.md', patch_dir: '' }
- name: timer_unit
target_dir: rtl/timer_unit
upstream: { git: "https://github.com/pulp-platform/timer_unit.git", rev: 4c69615c89db9397a9747d6f6d6a36727854f0bc } # v1.0.3
patch_dir: "rtl/patches/timer_unit"
mapping:
- { from: 'rtl/', to: '', patch_dir: 'rtl/' }
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
- { from: 'doc/timer_unit.pdf', to: 'timer_unit.pdf', patch_dir: 'doc/' }
- name: apb_uart
target_dir: rtl/apb_uart
upstream: { git: "https://github.com/pulp-platform/apb_uart.git", rev: "6c7dde3d749ac8274377745c105da8c8b8cd27c6" } # v0.2.1
patch_dir: "rtl/patches/apb_uart"
exclude_from_upstream:
- "src/vhdl_orig"
mapping:
- { from: 'src/', to: '', patch_dir: 'src/' }
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
#########
# core #
#########
- name: ibex
target_dir: rtl/ibex
upstream: { git: "https://github.com/pulp-platform/ibex.git", rev: "b18f7ef178ed07f5085051f96042c670a919fd5c" } # pulpissimo-v6.1.2
patch_dir: "rtl/patches/ibex"
mapping:
- { from: 'rtl/', to: '', patch_dir: 'rtl/' }
- { from: 'README.md', to: 'README.md', patch_dir: '' }
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
- { from: 'doc/03_reference/images/blockdiagram.svg', to: 'blockdiagram.svg', patch_dir: '' }
- { from: 'vendor/lowrisc_ip/ip/prim/rtl/', to: 'lowrisc_prim/', patch_dir: 'lowrisc_prim/' }