Presentation is loading. Please wait.

Presentation is loading. Please wait.

Blocks Resolved Signals Signal GUARDs Tri-State Buses.

Similar presentations


Presentation on theme: "Blocks Resolved Signals Signal GUARDs Tri-State Buses."— Presentation transcript:

1 Blocks Resolved Signals Signal GUARDs Tri-State Buses

2 Sequential versus Concurrent Statement in Simulation Cycle

3 Blocks Blocks are used for hierarchical partitioning

4 Blocks

5 Nested Blocks

6 Blocks

7 Guarded Blocks

8 Guard

9 Signal GUARD A block statement may have a guard expression. bloc k Latch: bloc k(CK'EVENT and CK='1') begin Q <= guarded D after 10ns; end block latch;

10 Latch: bloc k(CK'EVENT and CK='1') begin Q <= guarded D after 10ns; end block latch; A block statement with guard expression implicitly declares a signal named GUARD. The value of GUARD is always updated to the current value of the guard expression. Guarded signal assignments implicitly reference to the signal GUARD. Signal GUARD may also be explicitly referenced like other signals.

11 Signal GUARD (cont’d) The equivalent description to the above is the following: Latch: bloc k(CK'EVENT and CK='1') begin Q <= guarded D after 10ns; end block latch;

12 Guard Expression

13 Guarded Signal Assignments

14 Guarded Signal Kinds

15 Disconnects

16 Drivers

17 Resolved Signals

18 A signal which has more than one source is called a resolved signal (outputs can be tied together). Such signals are used to model wired-logic or tri-state busses. A resolved signal must have a resolution function associated with it.

19 Resolution Function A resolution function takes a one-dimensional, unconstrained array of values of the resolved type and returns a value of the resolved type. You can associate the resolution function with a signal in: – the type declaration –or the signal declaration.

20 An example of resolved signals We add resolution function wand to the package wired_logic See explanation We define the wired and logic here

21 Resolved signal Now that my signal wand is resolved, I am using S1 without conflict because the system knows how to interpret several assignments on one signal use work.wired_logic.all; Resolution function wand is declared

22 Tri-State Bus Example Another example of resolution function and resolved signals

23 Tri-State Function Definition Resolution function Resolved variable This slide shows how to define resolution function tri_state in package four_valued_logic

24 Definition and use of resolution function in Tri-State Bus Example (cont’d) Now that it is defined, we can use it Because we know system_bus is tri_state fvl we can have many assignments on it

25 Resolution Function

26

27 Using Resolution Function for Three State Bus

28 Driver Resolution

29 Driver Resolution Conflict

30 Example of Bus Resolution Function

31 Example of Bus Resolution Function Continued

32

33 Resolution Function for Subtype

34 Summary on Resolution Functions

35 Sources Krzysztof Kuchcinski California State University Northridge


Download ppt "Blocks Resolved Signals Signal GUARDs Tri-State Buses."

Similar presentations


Ads by Google