Presentation is loading. Please wait.

Presentation is loading. Please wait.

N Structural Modeling: n Entities n Ports n Architectures n Packages.

Similar presentations


Presentation on theme: "N Structural Modeling: n Entities n Ports n Architectures n Packages."— Presentation transcript:

1 n Structural Modeling: n Entities n Ports n Architectures n Packages

2 Ports and configurations, structures

3 VHDL Structure Description n describes basic hardware components and their interconnections via ports n the basic features which should be defined: –component instantiation (includes regular structures), –ports interconnection and unconnected ports, –configuration (which entities and architectures are used to define components). Our goal is in next slides to explain the Component instantiation

4 Ports n ports in entity declarations – only signals are allowed of mode in, out, inout, buffer, n an example ports in component declarations - only signals are allowed of mode i n, ou t, inou t, buffe r, an example

5 Component Instantiation Statement label-identifier : component-mark generic map association-list port map association-list ; an example Child : And2 port map (S1, S2, S3); component instantiation statement performs association between local and actual port and checks the following rules: - the actual must be an object of class signal; »it can be defined as a signal declaration or may be a formal port declared in entity declaration, - the type of actual must be the same as the type of the local; if types are not the same a type conversion must be used. - signal modes must follow given requirements. examples of a simple ALU, a decoder and a data bus.

6 Default Component Binding n And-or structure build from standard NANDs

7 Structural Architecture for and_or: an example n The correct code is this n In next slide we will see the circuit

8 Let us compare the block diagram with the VHDL description In your homeworks, draw a diagram with all your names and explain the role of your gates and components

9 Structural Architecture for and_or: an example: ARCHITECTURE STRUCTURE 2 n Architecture structure2 n Circuit in next slide

10 Fast component for all

11 Non-Default Component Binding

12 Structural Architecture for and_or: an example n Architecture structure3 n Circuit in next slide

13 Fast only for G3

14 Default and Non- Default Port Binding

15 Structural Architecture for and_or: an example n Architecture structure4

16 Use of component inside an architecture structure4

17 Configuration Specification: New Example A new example: configuration For U0

18 Configuration Specification n allows the designer to specify the selection of entity declaration and architecture body for each component in-stance, n the general form of the configuration specification

19 Non-Default Component Binding

20 Default Values n if the signal is of a scalar subtype, –then the implicit default value of each driver is defined to be T'LEFT, where –T denotes the scalar subtype of the signal. –type ThreeValue is ('X', '0', '1'); n if the signal is of a composite subtype, –then each scalar subelement of the composite is a signal, –and each driver of each of these scalar subelements is defined to have an implicit default value by the previous rule. n default value can be specified explicitly in the declaration of the signal or port

21 Default Values

22 Unconnected Ports any port of mode ou t, inou t, or buffer may be unconnected provided its type is not an unconstrained array type; a port of mode in may be unconnected only if its declaration includes an explicit default expression. the reserved word open indicates that a port is unconnected. n an example.

23

24 Configuration Declaration n allows the designer to collect all of the binding information for the model into a single place- configuration specification.

25 Structural Architecture for and_or: an example configuration Architecture structure5 has fast nand only for G3 and standard nand for G1 and G2

26 Configuration Declaration n an example You can test behavior of various ready commercial chips working together

27 Regular Structures n useful for describing hardware which is build of multiple instances of the same subcomponent connected in some regular pattern –it is done by the use of a generate statement label-identifier : generation-scheme generate concurrent-statements end generate identifier ; –generation schemes: for identifier in discrete-range if boolean-expression n rules –the generate parameter (in for statement) acts as a constant, however, the generic parameter can be used, –there are no concurrent statements analogous to the sequential exit-statement and next- statement.

28 Regular Structures- An Example

29 Generated Counter

30

31 n Configurations n Packages Do not be lost

32 Sources n Prof. K. J. Hintz, Department of Electrical and Computer Engineering, George Mason University n Prof. John Wakerly, CISCO Systems and Stanford University. n Dr. Jose Nelson Amaral, University of Alberta n Krzysztof Kuchcinski n More information on ECE 271 class of Marek Perkowski.


Download ppt "N Structural Modeling: n Entities n Ports n Architectures n Packages."

Similar presentations


Ads by Google