|
It took me some time to get the syntax, because it feels upside down.
I would have expected something ilke:
nandoutputvariable = Nand(input1, input2)
but the corresponding hdl-syntax is:
Nand(a = input1, b = input2, out = nandoutputvariable)
So you have to keep the proper interface in mind (i.e. the arguments on the left hand side of the "=")
Considering the Chips to be subroutines rather than functions helps, too.
It reminded me of ancient COBOL where you express
a = b
by
move (b, a)
|