question about hdl syntax

Posted by drobbins on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/question-about-hdl-syntax-tp4025376.html

Hey Folks,

Just getting going here, this looks like a great course.
Got a question though.
If you look at slide 14 on the pdf for chapter 1 they show the implementation and hdl code for an And gate.
the last parameter of the Nand gate:

out = x

seems backwards to me.
If the "action" in the implementation is progressing from left to right shouldn't x = out?
I'm trying to think of x as the value of a wire instead of a variable.
It just seems to me the value of the wire "x" should equal the value of the output pin "out"
Of course if I write the code the way that makes sense to me it doesn't work and if I write it like the pdf it works perfect.
Any ideas to help me get my head wrapped around this?

TIA
Dave