Skip to content
Permalink
6dbb60457a
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
43 lines (38 sloc) 910 Bytes
/**
* University of Connecticut
* CSE 4302 / CSE 5302 / ECE 5402: Computer Architecture
* Fall 2021
*
* Programming Assignment 3: Pipelined Simulator with Multi-cycle Operations and Data Cache
*
* riscy-uconn: instruction_map.h
*
* DO NOT MODIFY THIS FILE
*
*/
#pragma once
extern char* opcode_map[];
extern char* func_map[];
/* R-Type Instructions */
#define RTYPEOP 0x0
#define ADD 0x20
#define SUB 0x21
#define AND 0x24
#define OR 0x25
#define SLL 0x0
#define SLT 0x2A
#define SRL 0x2
#define JR 0x8
/* I-Type Instructions */
#define LW 0x23
#define SW 0x2B
#define ANDI 0xC
#define ORI 0xD
#define LUI 0xF
#define BEQ 0x4
#define BNE 0x5
#define SLTI 0xA
#define ADDI 0x8
/* J-Type Instructions */
#define J 0x2
#define JAL 0x3