This website uses cookies. By using this site, you consent to the use of cookies. For more information, please take a look at our Privacy Policy.
Home > FPGA Technical Tutorials > Introduction to VHDL programming > Basic Structure of a Source File in VHDL > Structural description

Structural description

FONT SIZE : AAA

This description is used to create an architecture that instantiates other entities that have already been defined elsewhere. This makes possible to build hierarchical descriptions of circuits, which improves their reusability and scalability. 

to do this, such an architecture must declare the entities that will be instantiated as components, and add as many instances of these components as needed in the body of the architecture, as the following code illustrates. Structural descriptions are very useful in bottom-up hierarchical designs. 

17.png

The architecture may add as many instances of the same component as needed. The only restriction that VHDL imposes is that each one of the component instances must be given a different name in the body of the architecture.

Example of a structural description of an entity.png

Figure 3.9: Example of a structural description of an entity

The code below is an example of a structural description of the circuit depicted in Figure 3.9. Note that, in order to make the interconnections needed between the output of a component and the input of another one, intermediate signals are needed.



IMPORTANT: In this example, note that the Y intermediate signals are needed, whereas no intermediate signal is needed in order to connect the inputs of the entity F (A and B) and the inputs of components mod_G and mod_H.

Structural descriptions of circuits can also be made by means of generate statements. These state- ments are used to automatically create an array of instances of the same component and/or other con- current statements. The syntax of the generate statement is as follows: 

19.png

The two following examples show how generate instances are instantiated and used in a VHDL code:

20.png

Component instantiatons in generate statements can also include conditions, as long as they are referred to the index of the for in the generate statement. The following code shows an example of this:

21.png

This example assigns the values of the vector b to the vector a, by left-shifting them 1 position. However, it does not assign any value to a(0), since in that case, the condition in the generate statement is not met. 

However, the following code (which is NOT correct), the generated hardware depends on the value of b(i), which is not known at design time. Since the actual value of the bvector depends on the execution of the circuit at any point of time, it is not possible to generate any hardware with this generate statement. 

22.png

  • XC3S50-5CPG132C

    Manufacturer:Xilinx

  • FPGA Spartan-3 Family 50K Gates 1728 Cells 725MHz 90nm Technology 1.2V 132-Pin CSBGA
  • Product Categories: FPGAs

    Lifecycle:Obsolete -

    RoHS: -

  • XC3S50-5VQG100C

    Manufacturer:Xilinx

  • FPGA Spartan-3 Family 50K Gates 1728 Cells 725MHz 90nm Technology 1.2V 100-Pin VTQFP
  • Product Categories: FPGAs (Field Programmable Gate Array)

    Lifecycle:Active Active

    RoHS:

  • XC3S50A-4TQ144C

    Manufacturer:Xilinx

  • FPGA Spartan-3A Family 50K Gates 1584 Cells 667MHz 90nm Technology 1.2V 144-Pin TQFP
  • Product Categories: FPGAs (Field Programmable Gate Array)

    Lifecycle:Active Active

    RoHS: No RoHS

  • XC3S50A-5FTG256C

    Manufacturer:Xilinx

  • FPGA Spartan-3A Family 50K Gates 1584 Cells 770MHz 90nm Technology 1.2V 256-Pin FTBGA
  • Product Categories: FPGAs

    Lifecycle:Active Active

    RoHS:

  • XC3S50A-5VQG100C

    Manufacturer:Xilinx

  • FPGA Spartan-3A Family 50K Gates 1584 Cells 770MHz 90nm Technology 1.2V 100-Pin VTQFP
  • Product Categories: FPGAs

    Lifecycle:Active Active

    RoHS:

Need Help?

Support

If you have any questions about the product and related issues, Please contact us.