Commit e78fc4c3 authored by Martin Pépin's avatar Martin Pépin
Browse files

Fix reg_write flag

parent 2bc3d031
......@@ -69,10 +69,7 @@ control(instruction:[6],
Faux pour les sauts (j, jr, jal), branchements (beq, bne) et
pour multiplication et division (mult, div) *)
reg_write = (not(instruction[0] or instruction[1] or instruction[2])
and ((instruction[3] and not(instruction[4])) (* beq, bne *)
or (not(instruction[3]) and instruction[4])) (* j, jal *)
) or (not(funct[0]) and funct[2]); (* jr, mult, div *)
reg_write = not(jump or branch or (funct[2] and not funct[0]));
(* write_pc à 1 => entrée du banc de registre issue de PC
Uniquement utilisé pour l'instruction jal *)
......
......@@ -19,9 +19,6 @@
00000000000000000001000110011100
00000000000000001001011000001010
0111
00000000000000000001000110011100
00000000000000000000000000000011
1100
00000000000000000001000110011100
00000000000000000000000000000011
1000
00000000000000000000000000000000
11111111111111111111111111111111
1111
......@@ -12,7 +12,5 @@
11111111111111110110100001100001
0
00000000000000001000011110010110
0
00000000000000000000001000110011
0
00000000000000001000110011100000
1
00000000000000000000000000000000
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment