This folder contains several different DLX-related code drops (student work, provided “prof” sources, and simulator outputs). The important part is that there are multiple DLX entity variants and multiple testbenches, so you must pick a consistent set of sources when compiling/simulating.
- Small/standalone modules + their testbenches:
ALU.vhd,ALU_tb.vhdshifter.vhd,shifter_tb.vhd_tb.vhd,prova_tb.vhdl(misc benches)
- Contains a datapath implementation and “phase” subprojects used during incremental development.
- Key files:
datapath/datapath.vhd,datapath/datapath_m.vhddatapath/a.a-CU_HW.vhddatapath/phases/withphase_1/…phase_4/datapath/compile.bash(ModelSim/Questavcomcompile list)
- Also contains simulator-generated artifacts (
work/,transcript,vsim.wlf) and editor backups (*.vhd~).
- A self-contained DLX project drop.
- Contains the “simpler” DLX variant and its testbench:
a-DLX.vhd(entityDLXwith onlyClk/Rstports)test_bench/TB_DLX.vhd(entitytb_dlx), instantiates thatDLX
- Also contains
000-globals.vhdwhich definespackage myTypes.
- Another provided DLX variant meant to be more complete/synthesizable.
- Contains a different
a-DLX.vhd(entityDLX) that exposes IRAM/DRAM interfaces (address/issue/ready/data). - Contains the “full-system” testbench + memory/cache models under:
test_bench_and_memory/
- Instruction decode / register file related blocks (note the folder name is misspelled as
istruction). - Includes a
3.1.3_windowed_RF/area with simulation VHDL.
There are multiple top/testbenches; the two main ones are:
- Top testbench entity:
DLX_TestBench - File:
DLX project/Files/DLX_vhd_fully_synthesizable/test_bench_and_memory/TB_TOP_DLX.vhd - What it instantiates:
ROMEM(instruction memory model)- File:
DLX project/Files/DLX_vhd_fully_synthesizable/test_bench_and_memory/TB_romem/romem.vhd
- File:
RWMEM(read/write memory model)- File:
DLX project/Files/DLX_vhd_fully_synthesizable/test_bench_and_memory/TB_rwmem/rwmem.vhd
- File:
- DUT
DLX(the CPU core)- File:
DLX project/Files/DLX_vhd_fully_synthesizable/a-DLX.vhd
- File:
- Packages used by this TB:
ROCACHE_PKG:DLX project/Files/DLX_vhd_fully_synthesizable/test_bench_and_memory/TB_packages/rocache.vhdRWCACHE_PKG:DLX project/Files/DLX_vhd_fully_synthesizable/test_bench_and_memory/TB_packages/rwcache.vhd
- Top testbench entity:
tb_dlx - File:
DLX project/Files/DLX_vhd/test_bench/TB_DLX.vhd - DUT instantiated:
DLXfromDLX project/Files/DLX_vhd/a-DLX.vhd- This is a different
DLXentity signature than the “fully_synthesizable” version.
- This is a different
There are at least two distinct entity DLX definitions in this repo:
DLX project/Files/DLX_vhd/a-DLX.vhd→DLXwith onlyClk/Rstports.DLX project/Files/DLX_vhd_fully_synthesizable/a-DLX.vhd→DLXwith IRAM/DRAM ports.
So you cannot mix those testbenches/sources without reconciling the port list.
Both of these files exist but are empty, which indicates the datapath source is missing from the provided set:
DLX project/Files/DLX_vhd/a.b-DataPath.vhdDLX project/Files/DLX_vhd_fully_synthesizable/a.b-DataPath.vhd
If the DLX core is expected to instantiate a datapath, you’ll need to add the real datapath implementation here (or update the project to point to the datapath in datapath/).
In datapath/phases/phase_2/:
decode.vhdis missing, butdecode.vhd~exists.register.vhdis missing, butregister.vhd~exists.- There is a
register_1.vhdwhich might be the intended replacement, but scripts/components referencingregister.vhdwill fail.
Also, datapath/compile.bash references:
phase_2/register.vhdphase_2/decode.vhd…which are not present, so the script will error.
datapath/compile.bashuses absolute/home/...paths.TB_TOP_DLX.vhdpasses absolute/home/.../hex*.txtpaths as generics toROMEMandRWMEM.
On this Windows workspace, those files/paths will not resolve until you:
- change generics to workspace-relative paths, and
- ensure the
.txt/hex files exist in the repo.
You will see many generated files/folders such as:
work/(compiled libraries)transcriptandvsim.wlf*.qdb,*.qpg,*.qtlThese are simulator artifacts and not the authoritative source.
- If you want the full system simulation: compile the
DLX_vhd_fully_synthesizablesources +test_bench_and_memoryand runDLX_TestBenchfromTB_TOP_DLX.vhd. - If you just want a basic DLX skeleton clock/reset: use
DLX_vhd+TB_DLX.vhd. - To get
datapath/compile.bashworking: remove absolute paths and fix phase_2 filenames (restore from*.vhd~or update references).