summaryrefslogtreecommitdiff
path: root/params.v
diff options
context:
space:
mode:
authorMichael Abed <michaelabed@gmail.com>2012-12-02 12:06:19 -0500
committerMichael Abed <michaelabed@gmail.com>2012-12-02 12:06:19 -0500
commitd6d76f552c28503784d9ccd26528a4d8dada18ef (patch)
tree96625c709b1a44791c0ddbc161e2753e91cdd0fb /params.v
downloadec413-lab6-d6d76f552c28503784d9ccd26528a4d8dada18ef.tar.gz
ec413-lab6-d6d76f552c28503784d9ccd26528a4d8dada18ef.tar.bz2
ec413-lab6-d6d76f552c28503784d9ccd26528a4d8dada18ef.zip
make a git repo
Diffstat (limited to 'params.v')
-rw-r--r--params.v22
1 files changed, 22 insertions, 0 deletions
diff --git a/params.v b/params.v
new file mode 100644
index 0000000..1ae2339
--- /dev/null
+++ b/params.v
@@ -0,0 +1,22 @@
+
+// These are all the types of instructions we have,
+// each represents a path through the FSM
+parameter RINSTR = 3'd0; // R-type ALU instruction
+parameter IINSTR = 3'd1; // I-type ALU instruction
+parameter MEMRINSTR = 3'd2; // memory read
+parameter MEMWINSTR = 3'd3; // memory write
+parameter BRINSTR = 3'd4; // branch
+parameter JINSTR = 3'd5; //jump
+
+// and these are nice names for the various states
+parameter FETCH = 4'd0;
+parameter DECODE = 4'd1;
+parameter MEMCALC = 4'd2;
+parameter MEMWRITE = 4'd3;
+parameter MEMREAD = 4'd4;
+parameter MEMSTORE = 4'd5;
+parameter ALUOP = 4'd6;
+parameter ALUSTORE = 4'd7;
+parameter BRANCH = 4'd8;
+parameter JUMP = 4'd9;
+