Skip to content

Commit b1f4743

Browse files
committed
bender: update IPs, remove register_interface
1 parent 4e5b99d commit b1f4743

File tree

101 files changed

+2828
-3855
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+2828
-3855
lines changed

Bender.local

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ overrides:
33
tech_cells_generic: { path: "rtl/tech_cells_generic" }
44
common_cells: { path: "rtl/common_cells" }
55
apb: { path: "rtl/apb" }
6-
register_interface: { path: "rtl/register_interface" }
76
obi_peripherals: { path: "rtl/obi_uart" }
87
ibex: { path: "rtl/ibex" }
98
obi: { path: "rtl/obi" }

Bender.lock

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ packages:
4242
dependencies:
4343
- common_cells
4444
- obi
45-
register_interface:
46-
revision: null
47-
version: null
48-
source:
49-
Path: rtl/register_interface
50-
dependencies:
51-
- apb
52-
- common_cells
53-
- common_verification
5445
riscv-dbg:
5546
revision: null
5647
version: null

Bender.yml

Lines changed: 23 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ package:
99

1010
dependencies:
1111
# IMPORTANT: see vendor_package at the bottom
12-
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: 1.37.0 }
13-
common_verification: { git: "https://github.com/pulp-platform/common_verification.git", version: 0.2.5 }
12+
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: 1.39.0 }
13+
common_verification: { git: "https://github.com/pulp-platform/common_verification.git", rev: 5fd30c1 } # 0.2.5+
1414
riscv-dbg: { git: "https://github.com/pulp-platform/riscv-dbg.git", rev: "verilator-phsauter" }
15-
tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: 0.2.13 }
16-
register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: 0.4.1 }
15+
tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", rev: fca524a } # 0.2.13+
1716
apb: { git: "https://github.com/pulp-platform/apb.git", version: 0.2.4 }
18-
obi: { git: "https://github.com/pulp-platform/obi.git", version: 0.1.7 }
17+
obi: { git: "https://github.com/pulp-platform/obi.git", rev: 6a724da } # 0.1.7+
1918
obi_peripherals: { git: "https://github.com/pulp-platform/obi_peripherals.git", rev: 21ee04d } # UART
2019
cve2: { path: "rtl/cve2" } # a vendor package (no Bender.yml), see below
2120

@@ -77,8 +76,8 @@ vendor_package:
7776
#################################
7877
- name: common_cells
7978
target_dir: rtl/common_cells
80-
upstream: { git: "https://github.com/pulp-platform/common_cells.git", rev: "9afda9abb565971649c2aa0985639c096f351171" } # v1.38.0
81-
patch_dir: "rtl/patches/common_cells"
79+
upstream: { git: "https://github.com/pulp-platform/common_cells.git", rev: "9ca8a7655f741e7dd5736669a20a301325194c28" } # v1.39.0
80+
patch_dir: "rtl/.patches/common_cells"
8281
exclude_from_upstream:
8382
- "src/deprecated"
8483
mapping:
@@ -89,16 +88,16 @@ vendor_package:
8988

9089
- name: common_verification
9190
target_dir: rtl/common_verification
92-
upstream: { git: "https://github.com/pulp-platform/common_verification.git", rev: "fb1885f48ea46164a10568aeff51884389f67ae3" } # branch verilator-fix
93-
patch_dir: "rtl/patches/common_verification"
91+
upstream: { git: "https://github.com/pulp-platform/common_verification.git", rev: "5fd30c18a6be6f664d1ef9e44d04956fb4e3364e" } # newest (0.2.5+)
92+
patch_dir: "rtl/.patches/common_verification"
9493
mapping:
9594
- { from: 'src/clk_rst_gen.sv', to: 'clk_rst_gen.sv', patch_dir: 'src/' }
9695
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
9796

9897
- name: tech_cells_generic
9998
target_dir: rtl/tech_cells_generic
100-
upstream: { git: "https://github.com/pulp-platform/tech_cells_generic.git", rev: "7968dd6e6180df2c644636bc6d2908a49f2190cf" } # v0.2.13
101-
patch_dir: "rtl/patches/tech_cells_generic"
99+
upstream: { git: "https://github.com/pulp-platform/tech_cells_generic.git", rev: "fca524a1174f6363ba0e778f37b9f398257d4b8f" } # newest (v0.2.13+)
100+
patch_dir: "rtl/.patches/tech_cells_generic"
102101
mapping:
103102
- { from: 'src/rtl/', to: '', patch_dir: 'rtl/' }
104103
- { from: 'src/fpga/', to: 'fpga/', patch_dir: 'fpga/' }
@@ -111,8 +110,8 @@ vendor_package:
111110
#############################
112111
- name: obi
113112
target_dir: rtl/obi
114-
upstream: { git: "https://github.com/pulp-platform/obi.git", rev: "ad1d48f025be540344960ea83b4bff39876f9b36" } # newest as of writing (0.1.6+)
115-
patch_dir: "rtl/patches/obi"
113+
upstream: { git: "https://github.com/pulp-platform/obi.git", rev: "6a724da5c8d6412b88b6948746e04c1adf39d017" } # newest (0.1.7+)
114+
patch_dir: "rtl/.patches/obi"
116115
exclude_from_upstream:
117116
- "src/test"
118117
mapping:
@@ -121,23 +120,10 @@ vendor_package:
121120
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
122121
- { from: 'Readme.md', to: 'Readme.md', patch_dir: '' }
123122

124-
- name: register_interface
125-
target_dir: rtl/register_interface
126-
upstream: { git: "https://github.com/pulp-platform/register_interface.git", rev: "3b2bf592100b769977c76e51812c55cd742882f6" } # v0.4.1
127-
patch_dir: "rtl/patches/register_interface"
128-
mapping:
129-
- { from: 'src/periph_to_reg.sv', to: 'periph_to_reg.sv', patch_dir: 'src/' }
130-
- { from: 'src/reg_intf.sv', to: 'reg_intf.sv', patch_dir: 'src/' }
131-
- { from: 'src/reg_to_apb.sv', to: 'reg_to_apb.sv', patch_dir: 'src/' }
132-
- { from: 'include/register_interface/', to: 'include/register_interface/', patch_dir: 'include/' }
133-
- { from: 'vendor/lowrisc_opentitan/src', to: 'lowrisc_opentitan', patch_dir: 'vendor/' }
134-
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
135-
- { from: 'README.md', to: 'README.md', patch_dir: '' }
136-
137123
- name: apb
138124
target_dir: rtl/apb
139125
upstream: { git: "https://github.com/pulp-platform/apb.git", rev: "77ddf073f194d44b9119949d2421be59789e69ae" } # v0.2.4
140-
patch_dir: "rtl/patches/apb"
126+
patch_dir: "rtl/.patches/apb"
141127
mapping:
142128
- { from: 'src/apb_pkg.sv', to: 'apb_pkg.sv', patch_dir: 'src/' }
143129
- { from: 'include/apb/', to: 'include/apb/', patch_dir: 'include/' }
@@ -150,8 +136,8 @@ vendor_package:
150136
###############
151137
- name: riscv-dbg
152138
target_dir: rtl/riscv-dbg
153-
upstream: { git: "https://github.com/pulp-platform/riscv-dbg.git", rev: "a21b39ad11833d9afc7ab366944b811d5a641901" } # branch verilator-phsauter
154-
patch_dir: "rtl/patches/riscv-dbg"
139+
upstream: { git: "https://github.com/pulp-platform/riscv-dbg.git", rev: "13835b1d45f013a0760ecebd744fee6cf2e3b96a" } # branch verilator-phsauter
140+
patch_dir: "rtl/.patches/riscv-dbg"
155141
mapping:
156142
- { from: 'src/', to: '', patch_dir: 'src/' }
157143
- { from: 'debug_rom/debug_rom.sv', to: 'debug_rom/debug_rom.sv', patch_dir: 'debug_rom/' }
@@ -164,7 +150,7 @@ vendor_package:
164150
- name: obi_peripherals
165151
target_dir: rtl/obi_uart
166152
upstream: { git: "https://github.com/pulp-platform/obi_peripherals.git", rev: "21ee04d267025f6ea3d2faa462272287ddcb9bbb" } # newest
167-
patch_dir: "rtl/patches/obi_uart"
153+
patch_dir: "rtl/.patches/obi_uart"
168154
mapping:
169155
- { from: 'hw/obi_uart/', to: '', patch_dir: 'hw/' }
170156
- { from: 'Bender.yml', to: 'Bender.yml', patch_dir: '' }
@@ -173,13 +159,13 @@ vendor_package:
173159
#########
174160
# core #
175161
#########
176-
# CVE2/Ibex
162+
# CVE2
177163
- name: cve2
178164
target_dir: rtl/cve2
179-
upstream: { git: "https://github.com/openhwgroup/cve2.git", rev: "370793f52488d1022d0554d194ad24f125156acc" }
180-
patch_dir: "rtl/patches/cve2"
165+
upstream: { git: "https://github.com/openhwgroup/cve2.git", rev: "53076d64c97685b1d2f5d07cd7f5cc439cf1f351" } # newest
166+
patch_dir: "rtl/.patches/cve2"
181167
mapping:
182-
- { from: 'rtl/', to: '', patch_dir: 'rtl/' }
183-
- { from: 'README.md', to: 'README.md', patch_dir: '' }
184-
- { from: 'doc/03_reference/images/blockdiagram.svg', to: 'blockdiagram.svg', patch_dir: '' }
185-
- { from: 'vendor/lowrisc_ip/ip/prim/rtl/', to: 'include/lowrisc_prim/', patch_dir: 'lowrisc_prim/' }
168+
- { from: 'rtl/', to: '', patch_dir: 'rtl/' }
169+
- { from: 'README.md', to: 'README.md', patch_dir: '' }
170+
- { from: 'doc/03_reference/images/blockdiagram.drawio.svg', to: 'blockdiagram.svg', patch_dir: '' }
171+
- { from: 'vendor/lowrisc_ip/ip/prim/rtl/', to: 'include/lowrisc_prim/', patch_dir: 'lowrisc_prim/' }

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ YOSYS ?= yosys
1313
OPENROAD ?= openroad
1414
KLAYOUT ?= klayout
1515
VSIM ?= vsim
16-
REGGEN ?= $(PYTHON3) $(shell $(BENDER) path register_interface)/vendor/lowrisc_opentitan/util/regtool.py
1716

1817
# Directories
1918
# directory of the path to the last called Makefile (this one)

croc.flist

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
+incdir+rtl/common_cells/include
33
+incdir+rtl/cve2/include
44
+incdir+rtl/obi/include
5-
+incdir+rtl/register_interface/include
65
+define+TARGET_ASIC
76
+define+TARGET_FLIST
87
+define+TARGET_IHP13
@@ -24,6 +23,7 @@ rtl/common_cells/edge_propagator_tx.sv
2423
rtl/common_cells/exp_backoff.sv
2524
rtl/common_cells/fifo_v3.sv
2625
rtl/common_cells/gray_to_binary.sv
26+
rtl/common_cells/heaviside.sv
2727
rtl/common_cells/isochronous_4phase_handshake.sv
2828
rtl/common_cells/isochronous_spill_register.sv
2929
rtl/common_cells/lfsr.sv
@@ -35,6 +35,7 @@ rtl/common_cells/onehot_to_bin.sv
3535
rtl/common_cells/plru_tree.sv
3636
rtl/common_cells/passthrough_stream_fifo.sv
3737
rtl/common_cells/popcount.sv
38+
rtl/common_cells/ring_buffer.sv
3839
rtl/common_cells/rr_arb_tree.sv
3940
rtl/common_cells/rstgen_bypass.sv
4041
rtl/common_cells/serial_deglitch.sv
@@ -54,9 +55,11 @@ rtl/common_cells/sync_wedge.sv
5455
rtl/common_cells/unread.sv
5556
rtl/common_cells/read.sv
5657
rtl/common_cells/addr_decode_dync.sv
58+
rtl/common_cells/boxcar.sv
5759
rtl/common_cells/cdc_2phase.sv
5860
rtl/common_cells/cdc_4phase.sv
5961
rtl/common_cells/clk_int_div_static.sv
62+
rtl/common_cells/trip_counter.sv
6063
rtl/common_cells/addr_decode.sv
6164
rtl/common_cells/addr_decode_napot.sv
6265
rtl/common_cells/multiaddr_decode.sv
@@ -90,19 +93,22 @@ rtl/common_cells/mem_to_banks_detailed.sv
9093
rtl/common_cells/stream_arbiter.sv
9194
rtl/common_cells/stream_omega_net.sv
9295
rtl/common_cells/mem_to_banks.sv
93-
rtl/apb/apb_pkg.sv
9496
rtl/obi/obi_pkg.sv
9597
rtl/obi/obi_intf.sv
9698
rtl/obi/obi_rready_converter.sv
99+
rtl/obi/apb_to_obi.sv
100+
rtl/obi/obi_to_apb.sv
97101
rtl/obi/obi_atop_resolver.sv
98102
rtl/obi/obi_cut.sv
99103
rtl/obi/obi_demux.sv
100104
rtl/obi/obi_err_sbr.sv
101105
rtl/obi/obi_mux.sv
102106
rtl/obi/obi_sram_shim.sv
103107
rtl/obi/obi_xbar.sv
108+
rtl/apb/apb_pkg.sv
104109
rtl/cve2/cve2_pkg.sv
105110
rtl/cve2/cve2_alu.sv
111+
rtl/cve2/cve2_branch_predict.sv
106112
rtl/cve2/cve2_compressed_decoder.sv
107113
rtl/cve2/cve2_controller.sv
108114
rtl/cve2/cve2_counter.sv
@@ -129,15 +135,6 @@ rtl/obi_uart/obi_uart_rx.sv
129135
rtl/obi_uart/obi_uart_tx.sv
130136
rtl/obi_uart/obi_uart_register.sv
131137
rtl/obi_uart/obi_uart.sv
132-
rtl/obi_timer/obi_timer_reg_pkg.sv
133-
rtl/obi_timer/obi_timer.sv
134-
rtl/register_interface/reg_intf.sv
135-
rtl/register_interface/lowrisc_opentitan/prim_subreg_arb.sv
136-
rtl/register_interface/lowrisc_opentitan/prim_subreg_ext.sv
137-
rtl/register_interface/periph_to_reg.sv
138-
rtl/register_interface/reg_to_apb.sv
139-
rtl/register_interface/lowrisc_opentitan/prim_subreg_shadow.sv
140-
rtl/register_interface/lowrisc_opentitan/prim_subreg.sv
141138
rtl/riscv-dbg/dm_pkg.sv
142139
rtl/riscv-dbg/debug_rom/debug_rom.sv
143140
rtl/riscv-dbg/debug_rom/debug_rom_one_scratch.sv
@@ -149,20 +146,21 @@ rtl/riscv-dbg/dm_sba.sv
149146
rtl/riscv-dbg/dm_top.sv
150147
rtl/riscv-dbg/dmi_jtag.sv
151148
rtl/riscv-dbg/dm_obi_top.sv
152-
rtl/clint/clint_reg_pkg.sv
153-
rtl/clint/clint.sv
154149
ihp13/tc_clk.sv
155150
ihp13/tc_sram_impl.sv
156151
rtl/croc_pkg.sv
157152
rtl/user_pkg.sv
158153
rtl/soc_ctrl/soc_ctrl_regs_pkg.sv
159154
rtl/gpio/gpio_reg_pkg.sv
155+
rtl/clint/clint_reg_pkg.sv
156+
rtl/obi_timer/obi_timer_reg_pkg.sv
160157
rtl/core_wrap.sv
161158
rtl/soc_ctrl/soc_ctrl_regs.sv
162159
rtl/gpio/gpio_reg_top.sv
163160
rtl/gpio/gpio.sv
161+
rtl/clint/clint.sv
162+
rtl/obi_timer/obi_timer.sv
164163
rtl/croc_domain.sv
165164
rtl/user_domain.sv
166165
rtl/croc_soc.sv
167166
rtl/croc_chip.sv
168-

rtl/patches/apb/0001-adjust-Bender-source-paths.patch renamed to rtl/.patches/apb/0001-adjust-Bender-source-paths.patch

File renamed without changes.

rtl/patches/common_cells/0001-adjust-Bender-source-paths.patch renamed to rtl/.patches/common_cells/0001-adjust-Bender-source-paths.patch

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
From 75a75826ae9701bc5bcfce7399a80f435786c7c8 Mon Sep 17 00:00:00 2001
1+
From 7775101e0ab8668f8abe1d7b0854ae13a153b6da Mon Sep 17 00:00:00 2001
22
From: Philippe Sauter <phsauter@iis.ee.ethz.ch>
3-
Date: Tue, 6 May 2025 17:16:23 +0200
3+
Date: Fri, 19 Dec 2025 15:40:35 +0100
44
Subject: [PATCH] adjust Bender source paths
55

66
---
7-
Bender.yml | 223 +++++++++++++++++++----------------------------------
8-
1 file changed, 79 insertions(+), 144 deletions(-)
7+
Bender.yml | 231 +++++++++++++++++++----------------------------------
8+
1 file changed, 83 insertions(+), 148 deletions(-)
99

1010
diff --git a/Bender.yml b/Bender.yml
11-
index df66670..208fc3b 100644
11+
index cf837d6..14c2e46 100644
1212
--- a/Bender.yml
1313
+++ b/Bender.yml
14-
@@ -23,157 +23,92 @@ sources:
14+
@@ -23,161 +23,96 @@ sources:
1515
# etc. Files within a level are ordered alphabetically.
1616

1717
# Level 0
@@ -32,6 +32,7 @@ index df66670..208fc3b 100644
3232
- - src/exp_backoff.sv
3333
- - src/fifo_v3.sv
3434
- - src/gray_to_binary.sv
35+
- - src/heaviside.sv
3536
- - src/isochronous_4phase_handshake.sv
3637
- - src/isochronous_spill_register.sv
3738
- - src/lfsr.sv
@@ -43,6 +44,7 @@ index df66670..208fc3b 100644
4344
- - src/plru_tree.sv
4445
- - src/passthrough_stream_fifo.sv
4546
- - src/popcount.sv
47+
- - src/ring_buffer.sv
4648
- - src/rr_arb_tree.sv
4749
- - src/rstgen_bypass.sv
4850
- - src/serial_deglitch.sv
@@ -73,6 +75,7 @@ index df66670..208fc3b 100644
7375
+ - exp_backoff.sv
7476
+ - fifo_v3.sv
7577
+ - gray_to_binary.sv
78+
+ - heaviside.sv
7679
+ - isochronous_4phase_handshake.sv
7780
+ - isochronous_spill_register.sv
7881
+ - lfsr.sv
@@ -84,6 +87,7 @@ index df66670..208fc3b 100644
8487
+ - plru_tree.sv
8588
+ - passthrough_stream_fifo.sv
8689
+ - popcount.sv
90+
+ - ring_buffer.sv
8791
+ - rr_arb_tree.sv
8892
+ - rstgen_bypass.sv
8993
+ - serial_deglitch.sv
@@ -104,13 +108,17 @@ index df66670..208fc3b 100644
104108
+ - read.sv
105109
# Level 1
106110
- - src/addr_decode_dync.sv
111+
- - src/boxcar.sv
107112
- - src/cdc_2phase.sv
108113
- - src/cdc_4phase.sv
109114
- - src/clk_int_div_static.sv
115+
- - src/trip_counter.sv
110116
+ - addr_decode_dync.sv
117+
+ - boxcar.sv
111118
+ - cdc_2phase.sv
112119
+ - cdc_4phase.sv
113120
+ - clk_int_div_static.sv
121+
+ - trip_counter.sv
114122
# Level 2
115123
- - src/addr_decode.sv
116124
- - src/addr_decode_napot.sv
@@ -249,5 +257,5 @@ index df66670..208fc3b 100644
249257
- - src/edge_propagator_rx.sv
250258
+ - mem_to_banks.sv
251259
--
252-
2.39.3
260+
2.43.5
253261

rtl/patches/common_verification/0001-adjust-Bender-source-paths.patch renamed to rtl/.patches/common_verification/0001-adjust-Bender-source-paths.patch

File renamed without changes.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
From b29bab50d89f40c5523d99012396d8c0e7433896 Mon Sep 17 00:00:00 2001
1+
From e0024cc29343389ac8f96dee80babcf2a14d1e77 Mon Sep 17 00:00:00 2001
22
From: Philippe Sauter <phsauter@iis.ee.ethz.ch>
3-
Date: Tue, 19 Nov 2024 14:43:00 +0100
4-
Subject: [PATCH] adjust-blockdiagram-path
3+
Date: Fri, 19 Dec 2025 17:21:19 +0100
4+
Subject: [PATCH] tmp
55

66
---
77
README.md | 2 +-
88
1 file changed, 1 insertion(+), 1 deletion(-)
99

1010
diff --git a/README.md b/README.md
11-
index 23d220fa..d750c868 100644
11+
index e23270ea..3415de97 100644
1212
--- a/README.md
1313
+++ b/README.md
1414
@@ -16,7 +16,7 @@ Integer Multiplication and Division (M), and Compressed (C) extensions.
1515
The block diagram below shows the *small* parametrization with a 2-stage
1616
pipeline.
1717

18-
-<p align="center"><img src="doc/03_reference/images/blockdiagram.svg" width="650"></p>
18+
-<p align="center"><img src="doc/03_reference/images/blockdiagram.drawio.svg" width="650"></p>
1919
+<p align="center"><img src="blockdiagram.svg" width="650"></p>
2020

2121
CV32E20 was initially developed as part of the [PULP platform](https://www.pulp-platform.org)
2222
under the name [&#34;Zero-riscy&#34;](https://doi.org/10.1109/PATMOS.2017.8106976), and has been
2323
--
24-
2.34.1
24+
2.43.5
2525

rtl/patches/cve2/lowrisc_prim/0001-remove-unused-files.patch renamed to rtl/.patches/cve2/lowrisc_prim/0001-remove-unused-files.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 32df3d3c21d4b96aec4fff64ae11fb539be445dd Mon Sep 17 00:00:00 2001
1+
From 155dc29c1933aafbe67b589571436062b8b4b4c3 Mon Sep 17 00:00:00 2001
22
From: Philippe Sauter <phsauter@iis.ee.ethz.ch>
3-
Date: Tue, 19 Nov 2024 16:15:45 +0100
3+
Date: Fri, 19 Dec 2025 16:20:07 +0100
44
Subject: [PATCH] remove unused files
55

66
---
@@ -17851,5 +17851,5 @@ index 39307e5a..00000000
1785117851
-
1785217852
-endmodule
1785317853
--
17854-
2.34.1
17854+
2.43.5
1785517855

0 commit comments

Comments
 (0)