Re: pass through?

Posted by milythael on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/pass-through-tp2549046p3417611.html

Before happening on alternate solutions, I came very close to adding an Identity(in=a, out=b) chip.

A possible syntax for adding this to HDL would be:

PARTS:
a:b;


or
PARTS:
(a=b);

I admit, my desire for this as a circuit or feature of HDL comes from a software development / literate programming bias.  I like semantic names for things that help the human reading the code understand it.  I find ZeroNot(in=x, z=zerox, n=notx) to be preferable to ZeroNegate(in=x, z=zx, n=nx).  Writing code is an art as much as poetry and our audience is as much human as computer.