Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Pepin
sysdig
Commits
080e5378
Commit
080e5378
authored
Jan 14, 2017
by
Daru13
Browse files
Fixed typos in the ALU control block
parent
4202c8ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
cpu/src/control.mj
View file @
080e5378
...
...
@@ -112,10 +112,10 @@ ALU_control(funct:[6], op:[3]) = (alu_op:[4], use_shamt) where
ori (op = 010), xori (op = 011),
slti (op = 101), beq et bne (op = 101) *)
alu_op_4 = (funct[0] and funct[4] and (not funct[5])) (* sub, xor, slt *)
or ((not funct[0]) and funct[4 and funct[5]
]
) (* srav, sra *)
or ((not funct[0]) and funct[4
]
and funct[5]) (* srav, sra *)
or (funct[1] and (not funct[2] or funct[4])) (* mfhi *)
or equal_n<6>(
instruction
, 0.1.1.0.1.0) (* div *)
or equal_n<6>(
instruction
, 1.0.0.1.0.1) (* or *)
or equal_n<6>(
funct
, 0.1.1.0.1.0) (* div *)
or equal_n<6>(
funct
, 1.0.0.1.0.1) (* or *)
or (op[0] and op[2]) (* op forcée : slti, beq, bne (101) *)
or (not(op[0]) and op[1]); (* op forcée : ori, xori (01x) *)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment