Changed to a Unix file structure

This commit is contained in:
2023-03-08 08:39:43 +02:00
parent bf424a2436
commit ec70594b6d
35 changed files with 33430 additions and 33430 deletions
+11 -11
View File
@@ -1,12 +1,12 @@
from Source.Logic_Gates.Mux import Mux
from Source.Pre_Built_Gates.Power import Power
class Mux16:
def __init__(self,a,b,sel) -> None:
self.a=a
self.b=b
self.sel=sel
self.out=[Power(False) for _ in range(16)]
self()
def __call__(self) -> None:
for i in range(16):
from Source.Logic_Gates.Mux import Mux
from Source.Pre_Built_Gates.Power import Power
class Mux16:
def __init__(self,a,b,sel) -> None:
self.a=a
self.b=b
self.sel=sel
self.out=[Power(False) for _ in range(16)]
self()
def __call__(self) -> None:
for i in range(16):
self.out[i].out=Mux(self.a.out[i],self.b.out[i],self.sel).out