Components & Ports
Defining Components
Section titled “Defining Components”Components are the building blocks of vctx designs. They are defined with inputs and outputs in a port list.
component Blinky(output led: u1) { // Body...}Port Direction
Section titled “Port Direction”in: Input signal. out: Output signal. output: Alias for out.
Instantiation
Section titled “Instantiation”You can instantiate other components within a component.
// Syntax: ComponentName(connection_list)Blinky(led: my_wire)
// Named instantiation// Syntax: InstanceName : ComponentName(connection_list)led_driver : Blinky(led: my_wire)The first identifier is the optional instance name (e.g., led_driver). The second identifier is the component name (e.g., Blinky).
Need an offline copy? Download Full Manual (.md)