-
Notifications
You must be signed in to change notification settings - Fork 2
/
Parameters.vh
77 lines (60 loc) · 1.54 KB
/
Parameters.vh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 21:12:27 09/05/2015
// Design Name:
// Module Name: parameters
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
// TEST CHANGE FROM DAN
// TEST CHANGE FROM NICK
`ifndef _parameters_vh
`define _parameters_vh
//Frequency of DCM output
`define FREQ 75
// All the available operations
`define NOOP 16'b0
`define RTYPE 4'b0000
`define EXT_AND 4'b0001
`define EXT_OR 4'b0010
`define EXT_XOR 4'b0011
`define EXT_ADD 4'b0101
`define EXT_SUB 4'b1001
`define EXT_CMP 4'b1011
`define ADDI 4'b0101
`define SHIFTS 4'b1000
`define EXT_LSHI_LEFT 4'b0000
`define EXT_LSHI_RIGHT 4'b0001
`define EXT_ASHUI_LEFT 4'b0010
`define EXT_ASHUI_RIGHT 4'b0011
`define EXT_LSH 4'b0100
`define EXT_ASHU 4'b0110
`define SUBI 4'b1001
`define CMPI 4'b1011
`define SETI 4'b1010
`define JTYPE 4'b0100
`define LOAD 4'b0001
`define STORE 4'b0010
`define WAIT 4'b0011
`define TCHBRCH 4'b0110
`define WLS 4'b1010
// Easy access to the flags
`define CARRY_FLAG 0
`define LOW_FLAG 1
`define FLAG_FLAG 2
`define ZERO_FLAG 3
`define NEG_FLAG 4
`define INVALID_OP_FLAG 5
`endif