Chapter 3: Signal and Data Type Flashcards
What is the function and purpose of local signals?
Connect components within an architecture
In order to form a larger system.
What is the function of port signals?
Provide a system’s interface to its environment.
What are the object Class?
4
- Signal.
- Constant.
- Variable.
- File.
What is signal?
- An object with a current value and future values.
- The future values can be changed, as many times as desired, using signal assignment statements.
What is constant?
An object whose value cannot be changed after it is initially specified.
What is variable?
- An object with only a current value.
- A variable’s value can be changed, as many times as desired, using variable assignment statements.
What is file?
An object that consists of a sequence of values of a specified type.
What are synthesizable among the object class?
- Signals.
- Constants.
- Variables.
And they are used in design description.
What is not synthesizable among the object class?
- Files.
And it is mostly used in testbenches.
What are the objects types?
- Scalar type.
- Composite type.
- Access type.
- File type.
- Protected type.
What is scalar type?
Has a single indivisible value, which can be either numeric or enumerated.
What is composite type?
- Consists of a collection of elements each with a value.
- There are two kinds of composite types:
(a) arrays and
(b) records. - All elements in an array are of the same type.
- Elements in a record can be of different types.
What is access type?
Provides access to objects of a given type, similar to a pointer in conventional programming languages.
What is file type?
- Provides access to objects containing a sequence of values of a given type (such as disk files).
- The value of a file type is the sequence of values contained in the host system file.
What is protected type?
Provides atomic and exclusive access to variables accessible to multiple processes (global variables).
Which object types are synthesizable?
- Scalar type.
2. Composite type.
How many types are there in scalar types? List them.
Four:
- Enumeration types. (discrete)
- Integer types. (discrete and numeric)
- Physical types. (numeric)
- Floating types. (numeric)
What are the enumeration types?
- bit.
- boolean.
- character.
- severity_level.
- file_open_kind.
- file_open_status.
All of them are predefined.
What is the integer type?
- integer.
What is the physical type?
- time.
What are the floating type?
- real.
Scalar Types Tree:
Refer to files with the name final.
How an enumeration type is declared?
- By simply listing all possible values for the type.
- Must be at least one value in the list.
What are the bit values?
0, 1
What are boolean values?
True, Flase