From 2de5750a81aeeba15142cc20670ad5f23755d72d Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Tue, 7 Jul 2026 01:10:52 +0200 Subject: [PATCH] Adding ALU in simulation. --- Simulation/Components/ALU.dig | 61 ++++++++++++++ Simulation/Computer Simulation.dig | 125 +++++++++++++++-------------- 2 files changed, 126 insertions(+), 60 deletions(-) create mode 100644 Simulation/Components/ALU.dig diff --git a/Simulation/Components/ALU.dig b/Simulation/Components/ALU.dig new file mode 100644 index 0000000..62d59ce --- /dev/null +++ b/Simulation/Components/ALU.dig @@ -0,0 +1,61 @@ + + + 2 + + + + In + + + Label + A + + + Bits + 8 + + + + + + In + + + Label + B + + + Bits + 8 + + + + + + Out + + + Label + F + + + Bits + 8 + + + + + + In + + + Label + O + + + + + + + + \ No newline at end of file diff --git a/Simulation/Computer Simulation.dig b/Simulation/Computer Simulation.dig index b54cd55..a05ef97 100644 --- a/Simulation/Computer Simulation.dig +++ b/Simulation/Computer Simulation.dig @@ -11,7 +11,7 @@ WRITE - + In @@ -21,7 +21,7 @@ OUTPUT - + Out @@ -61,7 +61,7 @@ 15 - + Button @@ -81,7 +81,7 @@ MAR/SP - + In @@ -96,7 +96,7 @@ RAM.dig - + Register.dig @@ -121,14 +121,14 @@ Driver - - flipSelPos - true - Bits 8 + + flipSelPos + true + @@ -159,14 +159,14 @@ Rectangle - - Label - Manual Data Input - RectHeight 6 + + Label + Manual Data Input + RectWidth 12 @@ -184,16 +184,21 @@ + + ALU.dig + + + - - - - + + + + @@ -207,13 +212,21 @@ - - + + - + + + + + + + + + @@ -223,17 +236,9 @@ - - - - - + - - - - @@ -250,10 +255,6 @@ - - - - @@ -263,7 +264,11 @@ - + + + + + @@ -274,6 +279,18 @@ + + + + + + + + + + + + @@ -282,29 +299,17 @@ - - - - - - - - - - + + - - - - - - + + @@ -312,7 +317,7 @@ - + @@ -320,23 +325,23 @@ - + - - + + - - + + - + - - + + @@ -356,7 +361,7 @@ - +