diff options
Diffstat (limited to 'projects/03/a/PC.hdl')
-rw-r--r-- | projects/03/a/PC.hdl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/projects/03/a/PC.hdl b/projects/03/a/PC.hdl index a326e43..817ff67 100644 --- a/projects/03/a/PC.hdl +++ b/projects/03/a/PC.hdl @@ -17,4 +17,8 @@ CHIP PC { PARTS:
// Put your code here:
+ Register (in=in, load=load, out=regout);
+ Inc16 (in=regout, out=incout);
+ Mux16 (a=incout, b=regout, sel=load, out=regincout);
+ Mux16 (a=regout, b=false, sel=reset, out=out);
}
|