From c44b4ac2e504c62c24393747b1a32b7995e9dd3c Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sun, 17 Dec 2017 10:30:45 +0100 Subject: having problem with Computer chip - circle in chips --- projects/05/CPU.hdl | 2 ++ projects/05/Computer.hdl | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/projects/05/CPU.hdl b/projects/05/CPU.hdl index 904a521..aeeac04 100644 --- a/projects/05/CPU.hdl +++ b/projects/05/CPU.hdl @@ -76,5 +76,7 @@ CHIP CPU { PC(in=out2, load=isjump, inc=isnotjump, reset=reset, out[0..14]=pc); And(a=instruction[15], b=instruction[3], out=writeM); + //And(a=instruction[15], b=instruction[3], out=out6); + //DFF(in=out6, out=writeM); } diff --git a/projects/05/Computer.hdl b/projects/05/Computer.hdl index 22f9b48..a34dcae 100644 --- a/projects/05/Computer.hdl +++ b/projects/05/Computer.hdl @@ -20,4 +20,8 @@ CHIP Computer { PARTS: // Put your code here: + CPU(reset=reset, instruction=instruction, inM=inM, writeM=writeM, outM=outM, addressM=addressM, pc=pc); + DFF(in=writeM, out=load); + Memory(in=outM, address=addressM, load=load, out=inM); + ROM32K(address=pc, out=instruction); } -- cgit v1.2.3