The /input and /output commands map the internal input/output variables to the calling entity's instance node list (ussually the netlist nodes). These commands must appear prior to any other commands in the logic description.

The /input command specifies the first set of variable-node pairs and the /output command specifies the remaining set of variable-node pairs. In the example below, ~G is mapped to 4, B is mapped to 6, A is mapped to 7, D0 is mapped to 8, Y is mapped to Y, and ~W is mapped to notY.

aU1 [4 6 7 8] [Y notY] MUX_4TO1


.model myCounter d_chip(behaviour= "
+;We have here the beginning of some counter
+/inputs  ~G B A D0
+/outputs Y ~W