From 6a351e1f0f23a8c0fc305488eeb5c0b20ec0087b Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Thu, 19 May 2016 18:16:12 -0700 Subject: [PATCH] note --- beautiful-racket/br/demo/hdl/Dmux4Way.hdl.rkt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/beautiful-racket/br/demo/hdl/Dmux4Way.hdl.rkt b/beautiful-racket/br/demo/hdl/Dmux4Way.hdl.rkt index 3d5ccfd..d49265e 100644 --- a/beautiful-racket/br/demo/hdl/Dmux4Way.hdl.rkt +++ b/beautiful-racket/br/demo/hdl/Dmux4Way.hdl.rkt @@ -20,5 +20,13 @@ CHIP DMux4Way { PARTS: DMux(in=in, sel[0]=sel, a=a, b=b); - DMux(in=in, sel[1]=sel, a=c, b=d); + DMux(in=in, sel[1]=sel, a=c, b=d); + /* + // the right answer: note that subscripting on right always means "read this bit"; + // subscripting on left means "write this bit" + // build out assignment operator + DMux(in=in, sel=sel[0], a=s0a, b=s0b); + DMux(in=s0b, sel=sel[1], a=b, b=d); + DMux(in=s0a, sel=sel[1], a=a, b=c); + */ } \ No newline at end of file