Академический Документы
Профессиональный Документы
Культура Документы
Inputs / Outputs
NAME activate (A) Up_limit (UPL) Dn_limit (DNL) Motor_up (MU) Motor_dn (MD) TYPE input input input output output FUNCTION starts the door to go up or down or stops the motion indicates maximum upward travel indicates maximum downward travel Causes motor to run in direction to raise the door Causes motor to run in direction to lower door
Inputs / Outputs
NAME activate (A) Up_limit (UPL) Dn_limit (DNL) Motor_up (MU) Motor_dn (MD) reset TYPE input input input output output input FUNCTION starts the door to go up or down or stops the motion indicates maximum upward travel indicates maximum downward travel Causes motor to run in direction to raise the door Causes motor to run in direction to lower door Force the controller to enter into the initial state
State Diagram
initial
UPL A
up next
UPL
dn next
A A DNL
moving up
A
moving down
A DNL
A DNL UPL
MU
MD
initial
UPL A
up next
UP L
dn next
A A DNL
A A DNL
moving up
A A DNL UPL
moving down
MU
MD
initial
UPL A
up next
UP L
dn next
A A DNL
A A DNL
moving up
A A DNL UPL
moving down
MU
MD
Behavior Continued
Simulation Results
In the test bench code, first initialize the circuit under test. Select the sim instance tab in the source window to bring up internal signals to be placed in the simulator waveform.
Timers
Timer
time events divide clock frequency provide delay
Timer Simulation
Verilog Description
Test Fixture
Similation Results