├── .gitmodules ├── License ├── Readme.md ├── doc └── hazard5.adoc ├── hdl ├── Makefile ├── arith │ ├── hazard5_alu.v │ ├── hazard5_mul_fast.v │ ├── hazard5_muldiv_seq.v │ ├── hazard5_priority_encode.v │ ├── hazard5_shift_1bit_seq.v │ ├── hazard5_shift_barrel.v │ ├── hazard5_shift_log_seq.v │ └── muldiv_model.py ├── hazard5.f ├── hazard5_config.vh ├── hazard5_core.v ├── hazard5_cpu_1port.v ├── hazard5_cpu_2port.v ├── hazard5_csr.v ├── hazard5_decode.v ├── hazard5_frontend.v ├── hazard5_instr_decompress.v ├── hazard5_ops.vh ├── hazard5_regfile_1w2r.v ├── hazard5_rvfi_monitor.vh ├── hazard5_rvfi_wrapper.v └── rv_opcodes.vh └── test ├── .gitignore ├── common ├── init.S ├── memmap.ld ├── src_only_app.mk └── tb_cxxrtl_io.h ├── coremark ├── Makefile └── dist │ ├── .gitignore │ ├── LICENSE.md │ ├── Makefile │ ├── barebones │ ├── core_portme.c │ ├── core_portme.h │ ├── core_portme.mak │ ├── cvt.c │ ├── ee_printf.c │ ├── init.S │ └── tb_cxxrtl_io.h │ ├── core_list_join.c │ ├── core_main.c │ ├── core_matrix.c │ ├── core_state.c │ ├── core_util.c │ └── coremark.h ├── dhrystone ├── Makefile └── src │ ├── LICENSE │ ├── dhrystone.c │ ├── dhrystone.h │ ├── dhrystone_main.c │ ├── util.c │ └── util.h ├── hellow ├── Makefile └── main.c ├── riscv-compliance ├── .gitignore ├── Makefile ├── compare_testvec ├── include │ ├── compliance_io.h │ ├── compliance_test.h │ └── riscv_test_macros.h └── memmap.ld ├── rvcpp ├── .gitignore ├── Makefile ├── mem.h ├── rv.cpp └── rv_types.h ├── rvpy └── rvpy └── tb_cxxrtl ├── .gitignore ├── Makefile └── tb.cpp /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/.gitmodules -------------------------------------------------------------------------------- /License: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/License -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/Readme.md -------------------------------------------------------------------------------- /doc/hazard5.adoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/doc/hazard5.adoc -------------------------------------------------------------------------------- /hdl/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/Makefile -------------------------------------------------------------------------------- /hdl/arith/hazard5_alu.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/arith/hazard5_alu.v -------------------------------------------------------------------------------- /hdl/arith/hazard5_mul_fast.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/arith/hazard5_mul_fast.v -------------------------------------------------------------------------------- /hdl/arith/hazard5_muldiv_seq.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/arith/hazard5_muldiv_seq.v -------------------------------------------------------------------------------- /hdl/arith/hazard5_priority_encode.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/arith/hazard5_priority_encode.v -------------------------------------------------------------------------------- /hdl/arith/hazard5_shift_1bit_seq.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/arith/hazard5_shift_1bit_seq.v -------------------------------------------------------------------------------- /hdl/arith/hazard5_shift_barrel.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/arith/hazard5_shift_barrel.v -------------------------------------------------------------------------------- /hdl/arith/hazard5_shift_log_seq.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/arith/hazard5_shift_log_seq.v -------------------------------------------------------------------------------- /hdl/arith/muldiv_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/arith/muldiv_model.py -------------------------------------------------------------------------------- /hdl/hazard5.f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5.f -------------------------------------------------------------------------------- /hdl/hazard5_config.vh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_config.vh -------------------------------------------------------------------------------- /hdl/hazard5_core.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_core.v -------------------------------------------------------------------------------- /hdl/hazard5_cpu_1port.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_cpu_1port.v -------------------------------------------------------------------------------- /hdl/hazard5_cpu_2port.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_cpu_2port.v -------------------------------------------------------------------------------- /hdl/hazard5_csr.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_csr.v -------------------------------------------------------------------------------- /hdl/hazard5_decode.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_decode.v -------------------------------------------------------------------------------- /hdl/hazard5_frontend.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_frontend.v -------------------------------------------------------------------------------- /hdl/hazard5_instr_decompress.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_instr_decompress.v -------------------------------------------------------------------------------- /hdl/hazard5_ops.vh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_ops.vh -------------------------------------------------------------------------------- /hdl/hazard5_regfile_1w2r.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_regfile_1w2r.v -------------------------------------------------------------------------------- /hdl/hazard5_rvfi_monitor.vh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_rvfi_monitor.vh -------------------------------------------------------------------------------- /hdl/hazard5_rvfi_wrapper.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/hazard5_rvfi_wrapper.v -------------------------------------------------------------------------------- /hdl/rv_opcodes.vh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/hdl/rv_opcodes.vh -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/.gitignore -------------------------------------------------------------------------------- /test/common/init.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/common/init.S -------------------------------------------------------------------------------- /test/common/memmap.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/common/memmap.ld -------------------------------------------------------------------------------- /test/common/src_only_app.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/common/src_only_app.mk -------------------------------------------------------------------------------- /test/common/tb_cxxrtl_io.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/common/tb_cxxrtl_io.h -------------------------------------------------------------------------------- /test/coremark/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/Makefile -------------------------------------------------------------------------------- /test/coremark/dist/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /test/coremark/dist/LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/LICENSE.md -------------------------------------------------------------------------------- /test/coremark/dist/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/Makefile -------------------------------------------------------------------------------- /test/coremark/dist/barebones/core_portme.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/barebones/core_portme.c -------------------------------------------------------------------------------- /test/coremark/dist/barebones/core_portme.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/barebones/core_portme.h -------------------------------------------------------------------------------- /test/coremark/dist/barebones/core_portme.mak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/barebones/core_portme.mak -------------------------------------------------------------------------------- /test/coremark/dist/barebones/cvt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/barebones/cvt.c -------------------------------------------------------------------------------- /test/coremark/dist/barebones/ee_printf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/barebones/ee_printf.c -------------------------------------------------------------------------------- /test/coremark/dist/barebones/init.S: -------------------------------------------------------------------------------- 1 | ../../../common/init.S -------------------------------------------------------------------------------- /test/coremark/dist/barebones/tb_cxxrtl_io.h: -------------------------------------------------------------------------------- 1 | ../../../common/tb_cxxrtl_io.h -------------------------------------------------------------------------------- /test/coremark/dist/core_list_join.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/core_list_join.c -------------------------------------------------------------------------------- /test/coremark/dist/core_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/core_main.c -------------------------------------------------------------------------------- /test/coremark/dist/core_matrix.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/core_matrix.c -------------------------------------------------------------------------------- /test/coremark/dist/core_state.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/core_state.c -------------------------------------------------------------------------------- /test/coremark/dist/core_util.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/core_util.c -------------------------------------------------------------------------------- /test/coremark/dist/coremark.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/coremark/dist/coremark.h -------------------------------------------------------------------------------- /test/dhrystone/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/dhrystone/Makefile -------------------------------------------------------------------------------- /test/dhrystone/src/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/dhrystone/src/LICENSE -------------------------------------------------------------------------------- /test/dhrystone/src/dhrystone.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/dhrystone/src/dhrystone.c -------------------------------------------------------------------------------- /test/dhrystone/src/dhrystone.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/dhrystone/src/dhrystone.h -------------------------------------------------------------------------------- /test/dhrystone/src/dhrystone_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/dhrystone/src/dhrystone_main.c -------------------------------------------------------------------------------- /test/dhrystone/src/util.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/dhrystone/src/util.c -------------------------------------------------------------------------------- /test/dhrystone/src/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/dhrystone/src/util.h -------------------------------------------------------------------------------- /test/hellow/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/hellow/Makefile -------------------------------------------------------------------------------- /test/hellow/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/hellow/main.c -------------------------------------------------------------------------------- /test/riscv-compliance/.gitignore: -------------------------------------------------------------------------------- 1 | tmp 2 | -------------------------------------------------------------------------------- /test/riscv-compliance/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/riscv-compliance/Makefile -------------------------------------------------------------------------------- /test/riscv-compliance/compare_testvec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/riscv-compliance/compare_testvec -------------------------------------------------------------------------------- /test/riscv-compliance/include/compliance_io.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/riscv-compliance/include/compliance_io.h -------------------------------------------------------------------------------- /test/riscv-compliance/include/compliance_test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/riscv-compliance/include/compliance_test.h -------------------------------------------------------------------------------- /test/riscv-compliance/include/riscv_test_macros.h: -------------------------------------------------------------------------------- 1 | ../riscv-compliance/riscv-test-env/riscv_test_macros.h -------------------------------------------------------------------------------- /test/riscv-compliance/memmap.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/riscv-compliance/memmap.ld -------------------------------------------------------------------------------- /test/rvcpp/.gitignore: -------------------------------------------------------------------------------- 1 | rvcpp 2 | -------------------------------------------------------------------------------- /test/rvcpp/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/rvcpp/Makefile -------------------------------------------------------------------------------- /test/rvcpp/mem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/rvcpp/mem.h -------------------------------------------------------------------------------- /test/rvcpp/rv.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/rvcpp/rv.cpp -------------------------------------------------------------------------------- /test/rvcpp/rv_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/rvcpp/rv_types.h -------------------------------------------------------------------------------- /test/rvpy/rvpy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/rvpy/rvpy -------------------------------------------------------------------------------- /test/tb_cxxrtl/.gitignore: -------------------------------------------------------------------------------- 1 | tb 2 | dut.cpp 3 | -------------------------------------------------------------------------------- /test/tb_cxxrtl/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/tb_cxxrtl/Makefile -------------------------------------------------------------------------------- /test/tb_cxxrtl/tb.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wren6991/Hazard5/HEAD/test/tb_cxxrtl/tb.cpp --------------------------------------------------------------------------------