mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 21:17:59 -04:00
Fix PRJ_DIR in DV Makefile
PRJ_DIR is presumably meant to point to the root of the git repository; instead, it was pointing one directory higher up in the hierarchy. This worked as long as the repository was checked out into a directory called "ibex" -- but not otherwise, as in CI.
This commit is contained in:
parent
f53ee9b09f
commit
ab1e6d4dc6
2 changed files with 64 additions and 64 deletions
|
@ -80,7 +80,7 @@ verb = $(if $(filter-out 0,$(VERBOSE)),,@)
|
|||
|
||||
SHELL=/bin/bash
|
||||
|
||||
export PRJ_DIR:= $(realpath ../../../..)
|
||||
export PRJ_DIR:= $(realpath ../../..)
|
||||
|
||||
all: sim
|
||||
|
||||
|
@ -139,7 +139,7 @@ sim-cfg-mk = $(OUT)/.sim-cfg.mk
|
|||
# MAKE_RESTARTS, which is defined on re-runs. Phew!
|
||||
ifndef MAKE_RESTARTS
|
||||
$(sim-cfg-mk): FORCE | $(OUT)
|
||||
@./sim_makefrag_gen.py $(SIMULATOR) $(IBEX_CONFIG) $(PRJ_DIR)/ibex $@
|
||||
@./sim_makefrag_gen.py $(SIMULATOR) $(IBEX_CONFIG) $(PRJ_DIR) $@
|
||||
endif
|
||||
|
||||
include $(sim-cfg-mk)
|
||||
|
|
|
@ -9,73 +9,73 @@
|
|||
+define+RVFI
|
||||
|
||||
// Shared lowRISC code
|
||||
+incdir+${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim/rtl
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim/rtl/prim_assert.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim/rtl/prim_lfsr.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim/rtl/prim_secded_28_22_enc.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim/rtl/prim_secded_28_22_dec.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim/rtl/prim_secded_39_32_enc.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim/rtl/prim_secded_39_32_dec.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim/rtl/prim_secded_72_64_enc.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim/rtl/prim_secded_72_64_dec.sv
|
||||
+incdir+${PRJ_DIR}/vendor/lowrisc_ip/prim/rtl
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/prim/rtl/prim_assert.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/prim/rtl/prim_lfsr.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/prim/rtl/prim_secded_28_22_enc.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/prim/rtl/prim_secded_28_22_dec.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/prim/rtl/prim_secded_39_32_enc.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/prim/rtl/prim_secded_39_32_dec.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/prim/rtl/prim_secded_72_64_enc.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/prim/rtl/prim_secded_72_64_dec.sv
|
||||
|
||||
// Until this list is generated by FuseSoC, we have to use manually generated
|
||||
// wrappers around the prim_* modules to instantiate the prim_generic_* ones,
|
||||
// see https://github.com/lowRISC/ibex/issues/893.
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/common/prim/prim_pkg.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim_generic/rtl/prim_generic_ram_1p.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/common/prim/prim_ram_1p.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/prim_generic/rtl/prim_generic_clock_gating.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/common/prim/prim_clock_gating.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/common/prim/prim_pkg.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/prim_generic/rtl/prim_generic_ram_1p.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/common/prim/prim_ram_1p.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/prim_generic/rtl/prim_generic_clock_gating.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/common/prim/prim_clock_gating.sv
|
||||
|
||||
// ibex CORE RTL files
|
||||
+incdir+${PRJ_DIR}/ibex/rtl
|
||||
${PRJ_DIR}/ibex/rtl/ibex_pkg.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_tracer_pkg.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_tracer.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_alu.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_compressed_decoder.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_controller.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_cs_registers.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_counter.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_decoder.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_dummy_instr.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_ex_block.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_wb_stage.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_id_stage.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_icache.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_if_stage.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_load_store_unit.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_multdiv_slow.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_multdiv_fast.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_prefetch_buffer.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_fetch_fifo.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_register_file_ff.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_pmp.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_core.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_core_tracing.sv
|
||||
+incdir+${PRJ_DIR}/rtl
|
||||
${PRJ_DIR}/rtl/ibex_pkg.sv
|
||||
${PRJ_DIR}/rtl/ibex_tracer_pkg.sv
|
||||
${PRJ_DIR}/rtl/ibex_tracer.sv
|
||||
${PRJ_DIR}/rtl/ibex_alu.sv
|
||||
${PRJ_DIR}/rtl/ibex_compressed_decoder.sv
|
||||
${PRJ_DIR}/rtl/ibex_controller.sv
|
||||
${PRJ_DIR}/rtl/ibex_cs_registers.sv
|
||||
${PRJ_DIR}/rtl/ibex_counter.sv
|
||||
${PRJ_DIR}/rtl/ibex_decoder.sv
|
||||
${PRJ_DIR}/rtl/ibex_dummy_instr.sv
|
||||
${PRJ_DIR}/rtl/ibex_ex_block.sv
|
||||
${PRJ_DIR}/rtl/ibex_wb_stage.sv
|
||||
${PRJ_DIR}/rtl/ibex_id_stage.sv
|
||||
${PRJ_DIR}/rtl/ibex_icache.sv
|
||||
${PRJ_DIR}/rtl/ibex_if_stage.sv
|
||||
${PRJ_DIR}/rtl/ibex_load_store_unit.sv
|
||||
${PRJ_DIR}/rtl/ibex_multdiv_slow.sv
|
||||
${PRJ_DIR}/rtl/ibex_multdiv_fast.sv
|
||||
${PRJ_DIR}/rtl/ibex_prefetch_buffer.sv
|
||||
${PRJ_DIR}/rtl/ibex_fetch_fifo.sv
|
||||
${PRJ_DIR}/rtl/ibex_register_file_ff.sv
|
||||
${PRJ_DIR}/rtl/ibex_pmp.sv
|
||||
${PRJ_DIR}/rtl/ibex_core.sv
|
||||
${PRJ_DIR}/rtl/ibex_core_tracing.sv
|
||||
|
||||
// Core DV files
|
||||
${PRJ_DIR}/ibex/vendor/google_riscv-dv/src/riscv_signature_pkg.sv
|
||||
+incdir+${PRJ_DIR}/ibex/dv/uvm/core_ibex/env
|
||||
+incdir+${PRJ_DIR}/ibex/dv/uvm/core_ibex/tests
|
||||
+incdir+${PRJ_DIR}/ibex/dv/uvm/core_ibex/common/ibex_mem_intf_agent
|
||||
+incdir+${PRJ_DIR}/ibex/dv/uvm/core_ibex/common/irq_agent
|
||||
+incdir+${PRJ_DIR}/ibex/vendor/lowrisc_ip/mem_model
|
||||
+incdir+${PRJ_DIR}/ibex/vendor/lowrisc_ip/dv_utils
|
||||
${PRJ_DIR}/ibex/dv/uvm/bus_params_pkg/bus_params_pkg.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/common_ifs/clk_rst_if.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/common_ifs/pins_if.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/dv_utils/dv_utils_pkg.sv
|
||||
${PRJ_DIR}/ibex/vendor/lowrisc_ip/mem_model/mem_model_pkg.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/common/ibex_mem_intf_agent/ibex_mem_intf.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/common/ibex_mem_intf_agent/ibex_mem_intf_agent_pkg.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/common/irq_agent/irq_if.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/common/irq_agent/irq_agent_pkg.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/env/core_ibex_instr_monitor_if.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/env/core_ibex_dut_probe_if.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/env/core_ibex_rvfi_if.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/env/core_ibex_csr_if.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/env/core_ibex_env_pkg.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/tests/core_ibex_test_pkg.sv
|
||||
${PRJ_DIR}/ibex/dv/uvm/core_ibex/tb/core_ibex_tb_top.sv
|
||||
${PRJ_DIR}/vendor/google_riscv-dv/src/riscv_signature_pkg.sv
|
||||
+incdir+${PRJ_DIR}/dv/uvm/core_ibex/env
|
||||
+incdir+${PRJ_DIR}/dv/uvm/core_ibex/tests
|
||||
+incdir+${PRJ_DIR}/dv/uvm/core_ibex/common/ibex_mem_intf_agent
|
||||
+incdir+${PRJ_DIR}/dv/uvm/core_ibex/common/irq_agent
|
||||
+incdir+${PRJ_DIR}/vendor/lowrisc_ip/mem_model
|
||||
+incdir+${PRJ_DIR}/vendor/lowrisc_ip/dv_utils
|
||||
${PRJ_DIR}/dv/uvm/bus_params_pkg/bus_params_pkg.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/common_ifs/clk_rst_if.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/common_ifs/pins_if.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/dv_utils/dv_utils_pkg.sv
|
||||
${PRJ_DIR}/vendor/lowrisc_ip/mem_model/mem_model_pkg.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/common/ibex_mem_intf_agent/ibex_mem_intf.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/common/ibex_mem_intf_agent/ibex_mem_intf_agent_pkg.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/common/irq_agent/irq_if.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/common/irq_agent/irq_agent_pkg.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/env/core_ibex_instr_monitor_if.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/env/core_ibex_dut_probe_if.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/env/core_ibex_rvfi_if.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/env/core_ibex_csr_if.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/env/core_ibex_env_pkg.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/tests/core_ibex_test_pkg.sv
|
||||
${PRJ_DIR}/dv/uvm/core_ibex/tb/core_ibex_tb_top.sv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue