all repos — nand2tetris @ eb1b3a54a8fb4747a28b23ffcd10d872a7521aef

my nand2tetris progress

Re-do Bit.hdl, PC.hdl, and Register.hdl
x1phosura x1phosura@x1phosura.zone
Sat, 04 Dec 2021 15:34:50 -0800
commit

eb1b3a54a8fb4747a28b23ffcd10d872a7521aef

parent

5a944706b7e855b6059d583b18e93b5433c96851

M .gitignore.gitignore

@@ -1,5 +1,5 @@

# ignore nand2tetris testing files -projects/*/*.cmp -projects/*/*.tst -projects/*/*.out +*.cmp +*.tst +*.out
M projects/03/a/Bit.hdlprojects/03/a/Bit.hdl

@@ -14,5 +14,6 @@ IN in, load;

OUT out; PARTS: - // Put your code here: + Mux(a=out2, b=in, sel=load, out=mux-out); + DFF(in=mux-out, out=out2, out=out); }
M projects/03/a/PC.hdlprojects/03/a/PC.hdl

@@ -16,5 +16,11 @@ IN in[16],load,inc,reset;

OUT out[16]; PARTS: - // Put your code here: + Mux16(a=out2, b=inc-out, sel=inc, out=mux-inc); + Mux16(a=mux-inc, b=in, sel=load, out=mux-load); + Mux16(a=mux-load, b=false, sel=reset, out=mux-reset); + + Register(in=mux-reset, load=true, out=out2, out=out); + + Inc16(in=out2, out=inc-out); }
A projects/03/a/PROGRESS.md

@@ -0,0 +1,12 @@

+ +# Progress + +## TODO +RAM64 +RAM8 + +## DONE +Bit +PC +Register +
M projects/03/a/Register.hdlprojects/03/a/Register.hdl

@@ -14,5 +14,20 @@ IN in[16], load;

OUT out[16]; PARTS: - // Put your code here: + Bit(in=in[0], load=load, out=out[0]); + Bit(in=in[1], load=load, out=out[1]); + Bit(in=in[2], load=load, out=out[2]); + Bit(in=in[3], load=load, out=out[3]); + Bit(in=in[4], load=load, out=out[4]); + Bit(in=in[5], load=load, out=out[5]); + Bit(in=in[6], load=load, out=out[6]); + Bit(in=in[7], load=load, out=out[7]); + Bit(in=in[8], load=load, out=out[8]); + Bit(in=in[9], load=load, out=out[9]); + Bit(in=in[10], load=load, out=out[10]); + Bit(in=in[11], load=load, out=out[11]); + Bit(in=in[12], load=load, out=out[12]); + Bit(in=in[13], load=load, out=out[13]); + Bit(in=in[14], load=load, out=out[14]); + Bit(in=in[15], load=load, out=out[15]); }
A projects/03/b/PROGRESS.md

@@ -0,0 +1,10 @@

+ +# Progress + +## TODO +RAM16K +RAM4K +RAM512 + +## DONE +