Jeff22 wrote
Okay, so I understand the multibit part now, thanks for that, but I'm still not quite getting the syntax. This stuff may just be too high level for me, I'm 14, but if you could reword what you've said to be a bit more detailed and comprehensive, that would be awesome... sorry if this message sounded rude in any way, that isn't my intention, I'm just a bit thick skulled :P
I think it's great that your tackling this (on your own?) at 14. You should become a registered forum user so you can exchange private mail with other forum members. We can give you more direct help than we might want to post in the forums.
Think about having two physical Integrated Circuits (ICs), one is a NOT chip and the other is an AND chip. We want to solder wires to these chips to make a NAND circuit. There are also 3 special wires that connect to other parts of the machine that we're building: two of them, 'a' and 'b', supply the signals we're supposed to NAND together, and the other one, 'out', is where we're supposed to deliver the answer.
The NOT IC has four pins: pin1 is the input to the gate, pin2 is the output, pin3 and pin4 are the power supply pins. (In HDL we don't need to worry about power.)
The AND IC has 5 pins: pin1 and pin2 are its inputs, pin3 is its output, pin4 and pin5 are its power supply pins.
Let's start soldering wires to the parts. We need to connect the 'a' and 'b' wires to the AND IC's inputs and a red wire to its output.
AND(pin1=a, pin2=b, pin3=red);
The parameters to AND() are simply a list of which pins of the AND IC are connected to which wires. Now we need to connect the NOT IC to the red and 'out' wires and the circuit is done.
NOT(pin1=red, pin2=out);
For TECS the chips use descriptive names for their I/O connections instead of pin numbers, and it is better to uses descriptive names for the connecting wires rather than colors. This can get confusing when the chips you're using as parts have the same I/O names as the part you are designing:
Swapper(a=b, b=c, out=out);
The Swapper chip's I/O pin 'a' is connected to wire 'b'. Swapper I/O pin'b' is connected to wire 'c'. I/O pin 'out' is connected to the 'out' wire. The trick is to remember that the name on the left of the '=' refers to the pin you're connecting to and the name on the right refers to the wire.
Keep asking questions. I'm an ex-teacher; you'll get tired of me before I get tired of you 8^)
--Mark