Updated the Bit chip to less parts and finsihed the Register chip.
This commit is contained in:
@@ -15,7 +15,6 @@ CHIP Bit {
|
||||
|
||||
PARTS:
|
||||
// Put your code here:
|
||||
Mux(a=FromDFF, b=in, sel=load, out=selected);
|
||||
DFF(in=selected, out=FromDFF);
|
||||
And(a=FromDFF, b=FromDFF, out=out);
|
||||
Mux(a=a, b=in, sel=load, out=selected);
|
||||
DFF(in=selected, out=a, out=out);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user