Subdesign Section (AHDL)

The Subdesign Section declares the input, output, and bidirectional ports of the Text Design File (.tdf).

The following example shows a Subdesign Section:

SUBDESIGN top
(
        foo, bar, clk1, clk2    : INPUT = VCC;
        a0, a1, a2, a3, a4      : OUTPUT;
        b[7..0]                                 : BIDIR; 
)

The Subdesign Section has the following characteristics:

In a top-level design file, INPUT, OUTPUT, and BIDIR port types represent actual device pins. In a lower-level design file, all port types are the inputs and outputs of the file, but not of the project itself.