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], ...@@ -69,10 +69,7 @@ control(instruction:[6],
Faux pour les sauts (j, jr, jal), branchements (beq, bne) et Faux pour les sauts (j, jr, jal), branchements (beq, bne) et
pour multiplication et division (mult, div) *) pour multiplication et division (mult, div) *)
reg_write = (not(instruction[0] or instruction[1] or instruction[2]) reg_write = not(jump or branch or (funct[2] and not funct[0]));
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 *)
(* write_pc à 1 => entrée du banc de registre issue de PC (* write_pc à 1 => entrée du banc de registre issue de PC
Uniquement utilisé pour l'instruction jal *) Uniquement utilisé pour l'instruction jal *)
......
...@@ -19,9 +19,6 @@ ...@@ -19,9 +19,6 @@
00000000000000000001000110011100 00000000000000000001000110011100
00000000000000001001011000001010 00000000000000001001011000001010
0111 0111
00000000000000000001000110011100 00000000000000000000000000000000
00000000000000000000000000000011 11111111111111111111111111111111
1100 1111
00000000000000000001000110011100
00000000000000000000000000000011
1000
...@@ -12,7 +12,5 @@ ...@@ -12,7 +12,5 @@
11111111111111110110100001100001 11111111111111110110100001100001
0 0
00000000000000001000011110010110 00000000000000001000011110010110
0 1
00000000000000000000001000110011 00000000000000000000000000000000
0
00000000000000001000110011100000
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