~ruther/verilog-riscv-semestral-project

ref: 2867e24626f7c4643ffa93cb6ea28f24d3eb2dae verilog-riscv-semestral-project/src/cpu_types.sv -rwxr-xr-x 291 bytes
2867e246 — Rutherther fix: do not set subtract for non-R instructions 2 years ago
                                                                                
1
2
3
4
5
6
package cpu_types;
  typedef enum bit[0:0] { PC_PLUS, PC_ALU } pc_source_t;
  typedef enum bit[0:0] { REG_FILE_RS1, PC } alu_1_source_t;
  typedef enum bit[0:0] { REG_FILE_RS2, IMMEDIATE } alu_2_source_t;
  typedef enum bit[1:0] { RD_ALU, RD_PC_PLUS, RD_MEMORY } reg_rd_source_t;
endpackage