Circuit Fellow Programming Reference circ
Provides I/O functions for circuit simulators.
n-bits handled by Circuit Fellow needs to take one of the following forms1.
Reads n-bits from either simulated I/O window or real I/O, and unifies them with X.
Specify X in n-bit form above. This primitive reads the specified n-bit value.
Guard
Writes n-bits X to either simulated I/O window or real I/O.
This primitive waits until X is instantiated and contains no variables.
Guard
Writes n-bits X to the tester window named Name.
This primitive waits until X is instantiated and contains no variables.
Guard
Writes the elements of n-bit stream Xs from its top to either simulated I/O window or real I/O.
Body
Writes the elements of n-bit stream Xs from its top to the tester window named Name.
Body
| 1 | In many cases, an arbitrary number of bits can be handled in the similar form. |