Menu

Wiring

StackSmith

[Table Of Contents] [Module] [Instance] Wiring

Wiring

Wiring instructions occur inside module definitions. Wires connect pins of the module and pins of the containing instances.

wire <instname>['s] <instpin> [to] <instname>['s] <instpin> [,to <instname> <instpin>...] ;

wire is the mandatory declaration of a wire.

instname identifies the instance of the wire endpoint. It must be one of the following:
-name of an instance in this module;
-my, indicating that the wire endpoint is in this module's input or output list.
-his or her, indicating that the wire endpoint is in the most-recently declared instance.

instpin must match the name of a pin in instname's input or output list. If the instname is my, it may also be one of:
-vcc for power wires
-gnd for ground wires

to is an optional separator.

A wire may connect an outgoing endpoint to any number of incoming endpoints. The syntax is designed for readability. Here are some examples of wiring:

wire my vcc to lut's IN0, lut's IN1, lut's IN2;
wire his OUT to my IN;

[Table Of Contents] [Module] [Instance] Wiring


Related

Wiki: Instance
Wiki: Module
Wiki: Table Of Contents

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.