HDL built-in variables
Posted by vanjazeric on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/HDL-built-in-variables-tp4034579.html
Hello,
I am working on NandToTetris projects these days, and I found something interesting, that I would like to know. In some projects, I needed to use '1' or '0' as input at some gates (or 16-bit '11..111' or '00..000') and I used to make it using some logic gates such as NOT and OR gates to get the behavior. I know we should use as least as possible gates, so I am wondering if there are variables, such as bool in C/C++ (true/false) to represent '1' or '0' in order to reduce the number of gates.
Best regards,
Vanja.