├── LICENSE ├── README.md ├── Vivado Files ├── Cmod-S7-25-Master.xdc ├── run_vivado.tcl └── rv32i_soc.mcs ├── rtl ├── fwb_master.v ├── rv32i_alu.v ├── rv32i_basereg.v ├── rv32i_core.v ├── rv32i_csr.v ├── rv32i_decoder.v ├── rv32i_fetch.v ├── rv32i_forwarding.v ├── rv32i_header.vh ├── rv32i_memoryaccess.v └── rv32i_writeback.v └── test ├── entry.s ├── extra ├── add.s ├── addi.s ├── and.s ├── andi.s ├── auipc.s ├── beq.s ├── bge.s ├── bgeu.s ├── blt.s ├── bltu.s ├── bne.s ├── branch_hazard.s ├── csr_op.s ├── data_hazard.s ├── demo1.c ├── exceptions.s ├── helloworld.s ├── instret.s ├── interrupts.s ├── jal.s ├── jalr.s ├── lb.s ├── lbu.s ├── lh.s ├── lhu.s ├── lui.s ├── lw.s ├── no_hazard.s ├── or.s ├── ori.s ├── sb.s ├── sh.s ├── sll.s ├── slli.s ├── slt.s ├── slti.s ├── sltiu.s ├── sltu.s ├── sra.s ├── srai.s ├── srl.s ├── srli.s ├── sub.s ├── sw.s ├── test_gpio.c ├── test_hygro.c ├── test_hygro.c_backup ├── test_i2c.c ├── test_lcd.c ├── test_rtc.c_fpga ├── test_timer.c ├── test_uart.c ├── test_ultrasonic.c_fpga ├── ultrasonic_sensor.c ├── xor.s └── xori.s ├── freertos ├── FreeRTOSConfig.h ├── freertos.c ├── freertos_old.c ├── freertos_risc_v_chip_specific_extensions.h ├── main_blinky.c ├── mobile_app.aia └── mobile_app.apk ├── lib ├── clint.c ├── gpio.c ├── hygro_pmod.c ├── i2c.c ├── lcd.c ├── printf.c ├── rv32i.h ├── uart.c └── ultrasonic_sensor.c ├── rv32i_core.sby ├── rv32i_linkerscript.ld ├── rv32i_soc.v ├── rv32i_soc_TB.v ├── test.sh ├── wave.do └── wave.gtkw /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/README.md -------------------------------------------------------------------------------- /Vivado Files/Cmod-S7-25-Master.xdc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/Vivado Files/Cmod-S7-25-Master.xdc -------------------------------------------------------------------------------- /Vivado Files/run_vivado.tcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/Vivado Files/run_vivado.tcl -------------------------------------------------------------------------------- /Vivado Files/rv32i_soc.mcs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/Vivado Files/rv32i_soc.mcs -------------------------------------------------------------------------------- /rtl/fwb_master.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/fwb_master.v -------------------------------------------------------------------------------- /rtl/rv32i_alu.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/rv32i_alu.v -------------------------------------------------------------------------------- /rtl/rv32i_basereg.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/rv32i_basereg.v -------------------------------------------------------------------------------- /rtl/rv32i_core.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/rv32i_core.v -------------------------------------------------------------------------------- /rtl/rv32i_csr.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/rv32i_csr.v -------------------------------------------------------------------------------- /rtl/rv32i_decoder.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/rv32i_decoder.v -------------------------------------------------------------------------------- /rtl/rv32i_fetch.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/rv32i_fetch.v -------------------------------------------------------------------------------- /rtl/rv32i_forwarding.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/rv32i_forwarding.v -------------------------------------------------------------------------------- /rtl/rv32i_header.vh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/rv32i_header.vh -------------------------------------------------------------------------------- /rtl/rv32i_memoryaccess.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/rv32i_memoryaccess.v -------------------------------------------------------------------------------- /rtl/rv32i_writeback.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/rtl/rv32i_writeback.v -------------------------------------------------------------------------------- /test/entry.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/entry.s -------------------------------------------------------------------------------- /test/extra/add.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/add.s -------------------------------------------------------------------------------- /test/extra/addi.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/addi.s -------------------------------------------------------------------------------- /test/extra/and.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/and.s -------------------------------------------------------------------------------- /test/extra/andi.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/andi.s -------------------------------------------------------------------------------- /test/extra/auipc.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/auipc.s -------------------------------------------------------------------------------- /test/extra/beq.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/beq.s -------------------------------------------------------------------------------- /test/extra/bge.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/bge.s -------------------------------------------------------------------------------- /test/extra/bgeu.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/bgeu.s -------------------------------------------------------------------------------- /test/extra/blt.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/blt.s -------------------------------------------------------------------------------- /test/extra/bltu.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/bltu.s -------------------------------------------------------------------------------- /test/extra/bne.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/bne.s -------------------------------------------------------------------------------- /test/extra/branch_hazard.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/branch_hazard.s -------------------------------------------------------------------------------- /test/extra/csr_op.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/csr_op.s -------------------------------------------------------------------------------- /test/extra/data_hazard.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/data_hazard.s -------------------------------------------------------------------------------- /test/extra/demo1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/demo1.c -------------------------------------------------------------------------------- /test/extra/exceptions.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/exceptions.s -------------------------------------------------------------------------------- /test/extra/helloworld.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/helloworld.s -------------------------------------------------------------------------------- /test/extra/instret.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/instret.s -------------------------------------------------------------------------------- /test/extra/interrupts.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/interrupts.s -------------------------------------------------------------------------------- /test/extra/jal.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/jal.s -------------------------------------------------------------------------------- /test/extra/jalr.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/jalr.s -------------------------------------------------------------------------------- /test/extra/lb.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/lb.s -------------------------------------------------------------------------------- /test/extra/lbu.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/lbu.s -------------------------------------------------------------------------------- /test/extra/lh.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/lh.s -------------------------------------------------------------------------------- /test/extra/lhu.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/lhu.s -------------------------------------------------------------------------------- /test/extra/lui.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/lui.s -------------------------------------------------------------------------------- /test/extra/lw.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/lw.s -------------------------------------------------------------------------------- /test/extra/no_hazard.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/no_hazard.s -------------------------------------------------------------------------------- /test/extra/or.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/or.s -------------------------------------------------------------------------------- /test/extra/ori.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/ori.s -------------------------------------------------------------------------------- /test/extra/sb.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/sb.s -------------------------------------------------------------------------------- /test/extra/sh.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/sh.s -------------------------------------------------------------------------------- /test/extra/sll.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/sll.s -------------------------------------------------------------------------------- /test/extra/slli.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/slli.s -------------------------------------------------------------------------------- /test/extra/slt.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/slt.s -------------------------------------------------------------------------------- /test/extra/slti.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/slti.s -------------------------------------------------------------------------------- /test/extra/sltiu.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/sltiu.s -------------------------------------------------------------------------------- /test/extra/sltu.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/sltu.s -------------------------------------------------------------------------------- /test/extra/sra.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/sra.s -------------------------------------------------------------------------------- /test/extra/srai.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/srai.s -------------------------------------------------------------------------------- /test/extra/srl.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/srl.s -------------------------------------------------------------------------------- /test/extra/srli.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/srli.s -------------------------------------------------------------------------------- /test/extra/sub.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/sub.s -------------------------------------------------------------------------------- /test/extra/sw.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/sw.s -------------------------------------------------------------------------------- /test/extra/test_gpio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/test_gpio.c -------------------------------------------------------------------------------- /test/extra/test_hygro.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/test_hygro.c -------------------------------------------------------------------------------- /test/extra/test_hygro.c_backup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/test_hygro.c_backup -------------------------------------------------------------------------------- /test/extra/test_i2c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/test_i2c.c -------------------------------------------------------------------------------- /test/extra/test_lcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/test_lcd.c -------------------------------------------------------------------------------- /test/extra/test_rtc.c_fpga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/test_rtc.c_fpga -------------------------------------------------------------------------------- /test/extra/test_timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/test_timer.c -------------------------------------------------------------------------------- /test/extra/test_uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/test_uart.c -------------------------------------------------------------------------------- /test/extra/test_ultrasonic.c_fpga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/test_ultrasonic.c_fpga -------------------------------------------------------------------------------- /test/extra/ultrasonic_sensor.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/ultrasonic_sensor.c -------------------------------------------------------------------------------- /test/extra/xor.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/xor.s -------------------------------------------------------------------------------- /test/extra/xori.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/extra/xori.s -------------------------------------------------------------------------------- /test/freertos/FreeRTOSConfig.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/freertos/FreeRTOSConfig.h -------------------------------------------------------------------------------- /test/freertos/freertos.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/freertos/freertos.c -------------------------------------------------------------------------------- /test/freertos/freertos_old.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/freertos/freertos_old.c -------------------------------------------------------------------------------- /test/freertos/freertos_risc_v_chip_specific_extensions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/freertos/freertos_risc_v_chip_specific_extensions.h -------------------------------------------------------------------------------- /test/freertos/main_blinky.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/freertos/main_blinky.c -------------------------------------------------------------------------------- /test/freertos/mobile_app.aia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/freertos/mobile_app.aia -------------------------------------------------------------------------------- /test/freertos/mobile_app.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/freertos/mobile_app.apk -------------------------------------------------------------------------------- /test/lib/clint.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/lib/clint.c -------------------------------------------------------------------------------- /test/lib/gpio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/lib/gpio.c -------------------------------------------------------------------------------- /test/lib/hygro_pmod.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/lib/hygro_pmod.c -------------------------------------------------------------------------------- /test/lib/i2c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/lib/i2c.c -------------------------------------------------------------------------------- /test/lib/lcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/lib/lcd.c -------------------------------------------------------------------------------- /test/lib/printf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/lib/printf.c -------------------------------------------------------------------------------- /test/lib/rv32i.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/lib/rv32i.h -------------------------------------------------------------------------------- /test/lib/uart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/lib/uart.c -------------------------------------------------------------------------------- /test/lib/ultrasonic_sensor.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/lib/ultrasonic_sensor.c -------------------------------------------------------------------------------- /test/rv32i_core.sby: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/rv32i_core.sby -------------------------------------------------------------------------------- /test/rv32i_linkerscript.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/rv32i_linkerscript.ld -------------------------------------------------------------------------------- /test/rv32i_soc.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/rv32i_soc.v -------------------------------------------------------------------------------- /test/rv32i_soc_TB.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/rv32i_soc_TB.v -------------------------------------------------------------------------------- /test/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/test.sh -------------------------------------------------------------------------------- /test/wave.do: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/wave.do -------------------------------------------------------------------------------- /test/wave.gtkw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AngeloJacobo/RISC-V/HEAD/test/wave.gtkw --------------------------------------------------------------------------------