Skip to content

Commit 932db14

Browse files
Rename all modules to cve2 (openhwgroup#25)
* rename files and modules to cve2 Signed-off-by: Szymon Bieganski <[email protected]> * updated tb files Signed-off-by: Szymon Bieganski <[email protected]> * remaining references to ibex: gitignore, examples, etc. Signed-off-by: Szymon Bieganski <[email protected]> Signed-off-by: Szymon Bieganski <[email protected]> Co-authored-by: Szymon Bieganski <[email protected]>
1 parent bbe47ea commit 932db14

File tree

118 files changed

+722
-722
lines changed

Some content is hidden

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

118 files changed

+722
-722
lines changed

.gitignore

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ ibex_simple_system_pcount.csv
1919
__pycache__
2020

2121
# This is generated by VCS when running DV simulations with WAVE=1.
22-
/dv/uvm/core_ibex/ucli.key
22+
/dv/uvm/core_cve2/ucli.key
2323

2424
# This is generated by UVM when running simulations and doesn't seem
2525
# to be something you can disable.
26-
/dv/uvm/core_ibex/tr_db.log
26+
/dv/uvm/core_cve2/tr_db.log
2727

28-
# This is the default output directory in dv/uvm/core_ibex and
28+
# This is the default output directory in dv/uvm/core_cve2 and
2929
# contains auto-generated files from building and running tests.
30-
/dv/uvm/core_ibex/out
30+
/dv/uvm/core_cve2/out
3131

3232
# This is generated by Questa tool when running DV simulations
3333
modelsim.ini
3434

3535
# This is generated by Xcelium when running DV simulations, even with WAVE=0
36-
/dv/uvm/core_ibex/waves.shm
36+
/dv/uvm/core_cve2/waves.shm

Makefile

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
IBEX_CONFIG ?= small
1+
CVE2_CONFIG ?= small
22

3-
FUSESOC_CONFIG_OPTS = $(shell ./util/ibex_config.py $(IBEX_CONFIG) fusesoc_opts)
3+
FUSESOC_CONFIG_OPTS = $(shell ./util/cve2_config.py $(CVE2_CONFIG) fusesoc_opts)
44

55
all: help
66

@@ -19,7 +19,7 @@ build-all: build-riscv-compliance build-simple-system build-arty-100 \
1919
.PHONY: build-riscv-compliance
2020
build-riscv-compliance:
2121
fusesoc --cores-root=. run --target=sim --setup --build \
22-
lowrisc:ibex:ibex_riscv_compliance \
22+
lowrisc:cve2:cve2_riscv_compliance \
2323
$(FUSESOC_CONFIG_OPTS)
2424

2525

@@ -30,7 +30,7 @@ build-riscv-compliance:
3030
.PHONY: build-simple-system
3131
build-simple-system:
3232
fusesoc --cores-root=. run --target=sim --setup --build \
33-
lowrisc:ibex:ibex_simple_system \
33+
lowrisc:cve2:cve2_simple_system \
3434
$(FUSESOC_CONFIG_OPTS)
3535

3636
simple-system-program = examples/sw/simple_system/hello_test/hello_test.vmem
@@ -40,15 +40,15 @@ sw-simple-hello: $(simple-system-program)
4040
$(simple-system-program):
4141
cd examples/sw/simple_system/hello_test && $(MAKE)
4242

43-
Vibex_simple_system = \
44-
build/lowrisc_ibex_ibex_simple_system_0/sim-verilator/Vibex_simple_system
45-
$(Vibex_simple_system):
43+
Vcve2_simple_system = \
44+
build/lowrisc_cve2_cve2_simple_system_0/sim-verilator/Vcve2_simple_system
45+
$(Vcve2_simple_system):
4646
@echo "$@ not found"
4747
@echo "Run \"make build-simple-system\" to create the dependency"
4848
@false
4949

50-
run-simple-system: sw-simple-hello | $(Vibex_simple_system)
51-
build/lowrisc_ibex_ibex_simple_system_0/sim-verilator/Vibex_simple_system \
50+
run-simple-system: sw-simple-hello | $(Vcve2_simple_system)
51+
build/lowrisc_cve2_cve2_simple_system_0/sim-verilator/Vcve2_simple_system \
5252
--raminit=$(simple-system-program)
5353

5454

@@ -67,23 +67,23 @@ $(arty-sw-program):
6767
.PHONY: build-arty-35
6868
build-arty-35: sw-led
6969
fusesoc --cores-root=. run --target=synth --setup --build \
70-
lowrisc:ibex:top_artya7 --part xc7a35ticsg324-1L
70+
lowrisc:cve2:top_artya7 --part xc7a35ticsg324-1L
7171

7272
.PHONY: build-arty-100
7373
build-arty-100: sw-led
7474
fusesoc --cores-root=. run --target=synth --setup --build \
75-
lowrisc:ibex:top_artya7 --part xc7a100tcsg324-1
75+
lowrisc:cve2:top_artya7 --part xc7a100tcsg324-1
7676

7777
.PHONY: program-arty
7878
program-arty:
7979
fusesoc --cores-root=. run --target=synth --run \
80-
lowrisc:ibex:top_artya7
80+
lowrisc:cve2:top_artya7
8181

8282

8383
# Lint check
8484
.PHONY: lint-core-tracing
8585
lint-core-tracing:
86-
fusesoc --cores-root . run --target=lint lowrisc:ibex:ibex_core_tracing \
86+
fusesoc --cores-root . run --target=lint lowrisc:cve2:cve2_core_tracing \
8787
$(FUSESOC_CONFIG_OPTS)
8888

8989

@@ -94,9 +94,9 @@ lint-core-tracing:
9494
.PHONY: build-csr-test
9595
build-csr-test:
9696
fusesoc --cores-root=. run --target=sim --setup --build \
97-
--tool=verilator lowrisc:ibex:tb_cs_registers
97+
--tool=verilator lowrisc:cve2:tb_cs_registers
9898
Vtb_cs_registers = \
99-
build/lowrisc_ibex_tb_cs_registers_0/sim-verilator/Vtb_cs_registers
99+
build/lowrisc_cve2_tb_cs_registers_0/sim-verilator/Vtb_cs_registers
100100
$(Vtb_cs_registers):
101101
@echo "$@ not found"
102102
@echo "Run \"make build-csr-test\" to create the dependency"
@@ -105,9 +105,9 @@ $(Vtb_cs_registers):
105105
.PHONY: run-csr-test
106106
run-csr-test: | $(Vtb_cs_registers)
107107
fusesoc --cores-root=. run --target=sim --run \
108-
--tool=verilator lowrisc:ibex:tb_cs_registers
108+
--tool=verilator lowrisc:cve2:tb_cs_registers
109109

110-
# Echo the parameters passed to fusesoc for the chosen IBEX_CONFIG
110+
# Echo the parameters passed to fusesoc for the chosen CVE2_CONFIG
111111
.PHONY: test-cfg
112112
test-cfg:
113113
@echo $(FUSESOC_CONFIG_OPTS)

azure-pipelines.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ jobs:
4949
# Verible format is experimental so only run on default config for now,
5050
# will eventually become part of the per-config CI
5151
- bash: |
52-
fusesoc --cores-root . run --no-export --target=format --tool=veribleformat lowrisc:ibex:ibex_top_tracing
52+
fusesoc --cores-root . run --no-export --target=format --tool=veribleformat lowrisc:cve2:cve2_top_tracing
5353
if [ $? != 0 ]; then
5454
echo -n "##vso[task.logissue type=error]"
55-
echo "Verilog format with Verible failed. Run 'fusesoc --cores-root . run --no-export --target=format --tool=veribleformat lowrisc:ibex:ibex_top_tracing' to check and fix all errors."
55+
echo "Verilog format with Verible failed. Run 'fusesoc --cores-root . run --no-export --target=format --tool=veribleformat lowrisc:cve2:cve2_top_tracing' to check and fix all errors."
5656
echo "This flow is currently experimental and failures can be ignored."
5757
fi
5858
# Show diff of what verilog_format would have changed, and then revert.
@@ -78,7 +78,7 @@ jobs:
7878
- bash: |
7979
# Build and run CSR testbench, chosen Ibex configuration does not effect
8080
# this so doesn't need to be part of per-config CI
81-
fusesoc --cores-root=. run --target=sim --tool=verilator lowrisc:ibex:tb_cs_registers
81+
fusesoc --cores-root=. run --target=sim --tool=verilator lowrisc:cve2:tb_cs_registers
8282
displayName: Build and run CSR testbench with Verilator
8383
8484
- bash: |
@@ -96,7 +96,7 @@ jobs:
9696
# Run Ibex RTL CI per supported configuration
9797
- template : ci/ibex-rtl-ci-steps.yml
9898
parameters:
99-
ibex_configs:
99+
cve2_configs:
100100
# Note: Try to keep the list of configurations in sync with the one used
101101
# in Private CI.
102102
- small
@@ -107,19 +107,19 @@ jobs:
107107

108108
# Run lint on simple system
109109
- bash: |
110-
fusesoc --cores-root . run --target=lint --tool=verilator lowrisc:ibex:ibex_simple_system
110+
fusesoc --cores-root . run --target=lint --tool=verilator lowrisc:cve2:cve2_simple_system
111111
if [ $? != 0 ]; then
112112
echo -n "##vso[task.logissue type=error]"
113-
echo "Verilog lint with Verilator failed. Run 'fusesoc --cores-root . run --target=lint --tool=verilator lowrisc:ibex:ibex_simple_system' to check and fix all errors."
113+
echo "Verilog lint with Verilator failed. Run 'fusesoc --cores-root . run --target=lint --tool=verilator lowrisc:cve2:cve2_simple_system' to check and fix all errors."
114114
exit 1
115115
fi
116116
displayName: Run Verilator lint on simple system
117117
118118
- bash: |
119-
fusesoc --cores-root . run --target=lint --tool=veriblelint lowrisc:ibex:ibex_simple_system
119+
fusesoc --cores-root . run --target=lint --tool=veriblelint lowrisc:cve2:cve2_simple_system
120120
if [ $? != 0 ]; then
121121
echo -n "##vso[task.logissue type=error]"
122-
echo "Verilog lint with Verible failed. Run 'fusesoc --cores-root . run --target=lint --tool=veriblelint lowrisc:ibex:ibex_simple_system' to check and fix all errors."
122+
echo "Verilog lint with Verible failed. Run 'fusesoc --cores-root . run --target=lint --tool=veriblelint lowrisc:cve2:cve2_simple_system' to check and fix all errors."
123123
exit 1
124124
fi
125125
displayName: Run Verible lint on simple system

ci/ibex-rtl-ci-steps.yml ci/cve2-rtl-ci-steps.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
parameters:
2-
ibex_configs: []
2+
cve2_configs: []
33

44
steps:
5-
- ${{ each config in parameters.ibex_configs }}:
6-
# ibex_config.py will exit with error code 1 on any error which will cause
5+
- ${{ each config in parameters.cve2_configs }}:
6+
# cve2_config.py will exit with error code 1 on any error which will cause
77
# the CI to fail if there's an issue with the configuration file or an
88
# incorrect configuration name being used
99
- bash: |
1010
set -e
11-
IBEX_CONFIG_OPTS=`./util/ibex_config.py ${{ config }} fusesoc_opts`
12-
echo $IBEX_CONFIG_OPTS
13-
echo "##vso[task.setvariable variable=ibex_config_opts]" $IBEX_CONFIG_OPTS
11+
CVE2_CONFIG_OPTS=`./util/cve2_config.py ${{ config }} fusesoc_opts`
12+
echo $CVE2_CONFIG_OPTS
13+
echo "##vso[task.setvariable variable=cve2_config_opts]" $CVE2_CONFIG_OPTS
1414
displayName: Test and display fusesoc config for ${{ config }}
1515
1616
- bash: |
17-
fusesoc --cores-root . run --target=lint --tool=verilator lowrisc:ibex:ibex_top_tracing $IBEX_CONFIG_OPTS
17+
fusesoc --cores-root . run --target=lint --tool=verilator lowrisc:cve2:cve2_top_tracing $CVE2_CONFIG_OPTS
1818
if [ $? != 0 ]; then
1919
echo -n "##vso[task.logissue type=error]"
20-
echo "Verilog lint failed. Run 'fusesoc --cores-root . run --target=lint --tool=verilator lowrisc:ibex:ibex_top_tracing $IBEX_CONFIG_OPTS' to check and fix all errors."
20+
echo "Verilog lint failed. Run 'fusesoc --cores-root . run --target=lint --tool=verilator lowrisc:cve2:cve2_top_tracing $CVE2_CONFIG_OPTS' to check and fix all errors."
2121
exit 1
2222
fi
2323
displayName: Lint Verilog source files with Verilator for ${{ config }}
2424
2525
- bash: |
26-
fusesoc --cores-root . run --target=lint --tool=veriblelint lowrisc:ibex:ibex_top_tracing $IBEX_CONFIG_OPTS
26+
fusesoc --cores-root . run --target=lint --tool=veriblelint lowrisc:cve2:cve2_top_tracing $CVE2_CONFIG_OPTS
2727
if [ $? != 0 ]; then
2828
echo -n "##vso[task.logissue type=error]"
29-
echo "Verilog lint failed. Run 'fusesoc --cores-root . run --target=lint --tool=veriblelint lowrisc:ibex:ibex_top_tracing $IBEX_CONFIG_OPTS' to check and fix all errors."
29+
echo "Verilog lint failed. Run 'fusesoc --cores-root . run --target=lint --tool=veriblelint lowrisc:cve2:cve2_top_tracing $CVE2_CONFIG_OPTS' to check and fix all errors."
3030
exit 1
3131
fi
3232
displayName: Lint Verilog source files with Verible Verilog Lint for ${{ config }}
3333
3434
- bash: |
3535
# Build simulation model of Ibex
36-
fusesoc --cores-root=. run --target=sim --setup --build lowrisc:ibex:ibex_riscv_compliance $IBEX_CONFIG_OPTS
36+
fusesoc --cores-root=. run --target=sim --setup --build lowrisc:cve2:cve2_riscv_compliance $CVE2_CONFIG_OPTS
3737
if [ $? != 0 ]; then
3838
echo -n "##vso[task.logissue type=error]"
3939
echo "Unable to build Verilator model of Ibex for compliance testing."
4040
exit 1
4141
fi
4242
4343
# Run compliance test suite
44-
export TARGET_SIM=$PWD/build/lowrisc_ibex_ibex_riscv_compliance_0.1/sim-verilator/Vibex_riscv_compliance
44+
export TARGET_SIM=$PWD/build/lowrisc_cve2_cve2_riscv_compliance_0.1/sim-verilator/Vcve2_riscv_compliance
4545
export RISCV_PREFIX=riscv32-unknown-elf-
4646
export RISCV_TARGET=ibex
4747
export RISCV_DEVICE=rv32imc
@@ -68,18 +68,18 @@ steps:
6868
6969
- bash: |
7070
# Setup environment to use cosim with Simple System
71-
export IBEX_COSIM_ISS_ROOT=/opt/spike-cosim
71+
export CVE2_COSIM_ISS_ROOT=/opt/spike-cosim
7272
export LD_LIBRARY_PATH=/opt/spike-cosim/lib:$LD_LIBRARY_PATH
7373
7474
# Build simple system with co-simulation
75-
fusesoc --cores-root=. run --target=sim --setup --build lowrisc:ibex:ibex_simple_system_cosim $IBEX_CONFIG_OPTS
75+
fusesoc --cores-root=. run --target=sim --setup --build lowrisc:cve2:cve2_simple_system_cosim $CVE2_CONFIG_OPTS
7676
7777
if [ $? != 0 ]; then
7878
echo -n "##vso[task.logissue type=error]"
79-
echo "Build Simple System with co-simulation failed. Run fusesoc --cores-root=. run --target=sim --setup --build lowrisc:ibex:ibex_simple_system_cosim $IBEX_CONFIG_OPTS to check and fix all errors."
79+
echo "Build Simple System with co-simulation failed. Run fusesoc --cores-root=. run --target=sim --setup --build lowrisc:cve2:cve2_simple_system_cosim $CVE2_CONFIG_OPTS to check and fix all errors."
8080
fi
8181
82-
build/lowrisc_ibex_ibex_simple_system_cosim_0/sim-verilator/Vibex_simple_system --meminit=ram,examples/sw/benchmarks/coremark/coremark.elf
82+
build/lowrisc_cve2_cve2_simple_system_cosim_0/sim-verilator/Vcve2_simple_system --meminit=ram,examples/sw/benchmarks/coremark/coremark.elf
8383
if [ $? != 0 ]; then
8484
echo -n "##vso[task.logissue type=error]"
8585
echo "Running CoreMark failed co-simulation testing"

cv32e20_manifest.flist

+29-29
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,37 @@
3333
+incdir+${DESIGN_RTL_DIR}/../vendor/lowrisc_ip/ip/prim/rtl
3434
+incdir+${DESIGN_RTL_DIR}/../vendor/lowrisc_ip/dv/sv/dv_utils
3535

36-
${DESIGN_RTL_DIR}/ibex_pkg.sv
37-
${DESIGN_RTL_DIR}/ibex_tracer_pkg.sv
36+
${DESIGN_RTL_DIR}/cve2_pkg.sv
37+
${DESIGN_RTL_DIR}/cve2_tracer_pkg.sv
3838
${DESIGN_RTL_DIR}/../vendor/lowrisc_ip/ip/prim/rtl/prim_secded_pkg.sv
3939
${DESIGN_RTL_DIR}/../vendor/lowrisc_ip/ip/prim/rtl/prim_ram_1p_pkg.sv
40-
${DESIGN_RTL_DIR}/ibex_alu.sv
41-
${DESIGN_RTL_DIR}/ibex_branch_predict.sv
42-
${DESIGN_RTL_DIR}/ibex_compressed_decoder.sv
43-
${DESIGN_RTL_DIR}/ibex_controller.sv
44-
${DESIGN_RTL_DIR}/ibex_cs_registers.sv
45-
${DESIGN_RTL_DIR}/ibex_csr.sv
46-
${DESIGN_RTL_DIR}/ibex_counter.sv
47-
${DESIGN_RTL_DIR}/ibex_decoder.sv
48-
${DESIGN_RTL_DIR}/ibex_ex_block.sv
49-
${DESIGN_RTL_DIR}/ibex_fetch_fifo.sv
50-
${DESIGN_RTL_DIR}/ibex_id_stage.sv
51-
${DESIGN_RTL_DIR}/ibex_if_stage.sv
52-
${DESIGN_RTL_DIR}/ibex_load_store_unit.sv
53-
${DESIGN_RTL_DIR}/ibex_multdiv_fast.sv
54-
${DESIGN_RTL_DIR}/ibex_multdiv_slow.sv
55-
${DESIGN_RTL_DIR}/ibex_prefetch_buffer.sv
56-
${DESIGN_RTL_DIR}/ibex_pmp.sv
57-
${DESIGN_RTL_DIR}/ibex_register_file_ff.sv
58-
${DESIGN_RTL_DIR}/ibex_wb_stage.sv
59-
${DESIGN_RTL_DIR}/ibex_dummy_instr.sv
60-
${DESIGN_RTL_DIR}/ibex_core.sv
61-
${DESIGN_RTL_DIR}/ibex_top.sv
62-
${DESIGN_RTL_DIR}/ibex_top_tracing.sv
63-
${DESIGN_RTL_DIR}/ibex_tracer.sv
40+
${DESIGN_RTL_DIR}/cve2_alu.sv
41+
${DESIGN_RTL_DIR}/cve2_branch_predict.sv
42+
${DESIGN_RTL_DIR}/cve2_compressed_decoder.sv
43+
${DESIGN_RTL_DIR}/cve2_controller.sv
44+
${DESIGN_RTL_DIR}/cve2_cs_registers.sv
45+
${DESIGN_RTL_DIR}/cve2_csr.sv
46+
${DESIGN_RTL_DIR}/cve2_counter.sv
47+
${DESIGN_RTL_DIR}/cve2_decoder.sv
48+
${DESIGN_RTL_DIR}/cve2_ex_block.sv
49+
${DESIGN_RTL_DIR}/cve2_fetch_fifo.sv
50+
${DESIGN_RTL_DIR}/cve2_id_stage.sv
51+
${DESIGN_RTL_DIR}/cve2_if_stage.sv
52+
${DESIGN_RTL_DIR}/cve2_load_store_unit.sv
53+
${DESIGN_RTL_DIR}/cve2_multdiv_fast.sv
54+
${DESIGN_RTL_DIR}/cve2_multdiv_slow.sv
55+
${DESIGN_RTL_DIR}/cve2_prefetch_buffer.sv
56+
${DESIGN_RTL_DIR}/cve2_pmp.sv
57+
${DESIGN_RTL_DIR}/cve2_register_file_ff.sv
58+
${DESIGN_RTL_DIR}/cve2_wb_stage.sv
59+
${DESIGN_RTL_DIR}/cve2_dummy_instr.sv
60+
${DESIGN_RTL_DIR}/cve2_core.sv
61+
${DESIGN_RTL_DIR}/cve2_top.sv
62+
${DESIGN_RTL_DIR}/cve2_top_tracing.sv
63+
${DESIGN_RTL_DIR}/cve2_tracer.sv
6464

6565
${DESIGN_RTL_DIR}/../vendor/lowrisc_ip/ip/prim_generic/rtl/prim_generic_buf.sv
6666
${DESIGN_RTL_DIR}/../vendor/lowrisc_ip/ip/prim_generic/rtl/prim_generic_clock_gating.sv
67-
${DESIGN_RTL_DIR}/../dv/uvm/core_ibex/common/prim/prim_pkg.sv
68-
${DESIGN_RTL_DIR}/../dv/uvm/core_ibex/common/prim/prim_clock_gating.sv
69-
${DESIGN_RTL_DIR}/../dv/uvm/core_ibex/common/prim/prim_buf.sv
67+
${DESIGN_RTL_DIR}/../dv/uvm/core_cve2/common/prim/prim_pkg.sv
68+
${DESIGN_RTL_DIR}/../dv/uvm/core_cve2/common/prim/prim_clock_gating.sv
69+
${DESIGN_RTL_DIR}/../dv/uvm/core_cve2/common/prim/prim_buf.sv

0 commit comments

Comments
 (0)