CSCE 2214 Lecture Notes - Lecture 7: Vhdl

158 views3 pages

Document Summary

Lec 7 9-9-16 vhdl review / data objects / data types. A constant can have a single value of a certain type and can"t be changed. When they are declared at the beginning of an architecture they can be used anywhere within the architecture. When they are declared within a process they can only be used inside that specific process. Variables can be updated using a variable assignment statement. The variables will be local to the process. Must be declared inside the architecture and outside the process. Will be updated when the signal assignment statement is executed signal_name <= expression; They can also be declared as such: signal list_of_signal_names: type [ := initial value] ; Lecture notes page 1 signal list_of_signal_names: type [ := initial value] ; signal sum, carry: std_logic; signal clock: bit; signal trigger: integer :=0; signal data_bus: bit_vector (0 to 7); signal value: integer range 0 to 100; Initializing the signals that represent wires is not necessary.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents