Commit 8eaa7596 authored by Quentin Aristote's avatar Quentin Aristote
Browse files

almost completely corrected addressing. todo : correct add

parent 841f4296
......@@ -270,8 +270,8 @@ end where
ops_done() = ops:[ops_nbr_length] where
(ops, c) = add<ops_nbr_length>(ram<1, ops_nbr_length>(0, 1, 0, ops),
0b000000000,
1)
0b000000001,
0)
end where
(* -------------------------- PROGRAMME PRINCIPAL -------------------------- *)
......@@ -353,8 +353,10 @@ main() = (t0:[16],
t6:[16],
t7:[16],
PC:[32],
command:[32]) where
reset = lz<ops_nbr_length>(sub<ops_nbr_length>(ops_to_do(), ops_done())) ;
command:[32],
ops:[ops_nbr_length]) where
ops = ops_done () ;
reset = lz<ops_nbr_length>(sub<ops_nbr_length>(ops_to_do(), ops)) ;
PC = PC_access(multi_mux<32>(reset,
0b00000000000000000000000000000000,
new_PC)) ;
......
This diff is collapsed.
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