URL
https://opencores.org/ocsvn/mips_16/mips_16/trunk
Subversion Repositories mips_16
[/] [mips_16/] [trunk/] [rtl/] [mips_16_defs.v] - Rev 5
Go to most recent revision | Compare with Previous | Blame | View Log
/*************************************************** * Module: * Project: mips_16 * Author: * Description: * * * Revise history: * ***************************************************/ `ifndef _MIPS_16_DEFS `define _MIPS_16_DEFS //`define CODE_FOR_SYNTHESIS // uncomment this macro will remove all non-systhesis code `define USE_SIMULATION_CODE // uncomment this to use simulation instruction memory `define PC_WIDTH 8 `define INSTR_MEM_ADDR_WIDTH 8 `define DATA_MEM_ADDR_WIDTH 8 /************** Operation Code in instructions ****************/ `define OP_NOP 4'b0000 `define OP_ADD 4'b0001 `define OP_SUB 4'b0010 `define OP_AND 4'b0011 `define OP_OR 4'b0100 `define OP_XOR 4'b0101 `define OP_SL 4'b0110 `define OP_SR 4'b0111 `define OP_SRU 4'b1000 `define OP_ADDI 4'b1001 `define OP_LD 4'b1010 `define OP_ST 4'b1011 `define OP_BZ 4'b1100 /************** ALU operation command ****************/ `define ALU_NC 3'bxxx // not care `define ALU_ADD 3'b000 `define ALU_SUB 3'b001 `define ALU_AND 3'b010 `define ALU_OR 3'b011 `define ALU_XOR 3'b100 `define ALU_SL 3'b101 `define ALU_SR 3'b110 `define ALU_SRU 3'b111 /************** Branch condition code ****************/ `define BRANCH_Z 3'b000 //`define BRANCH_GT 3'b001 //`define BRANCH_LE 3'b010 `endif
Go to most recent revision | Compare with Previous | Blame | View Log