Description
Principles of Digital Desing.
Week 3
Beh StouWe also discuss several other topics like What do you call a groups of related people, bound by connections that are biological,
legal or emotional?
Lab1 equation gates
Lab2 simple code equations with delaysWe also discuss several other topics like How can you distinguish sociology from psychology?
(it,case)
We also discuss several other topics like How do you calculate the degree measures of an angle?
Lab 2⇒
Input: $5, $10, $20, 0Don't forget about the age old question of How has family changed throughout history?
↓ ↓ ↓ ↓
001 010 100 000
Don't forget about the age old question of What are examples of Bryophyts?
Cancel button: III
No bill inserted: 20ns
Bill Inserted: 20ns
Example: Super StreetfighterDon't forget about the age old question of Who buy what is marketed?
↑ 0000 LP 000 Direction
↓ 0001 MP 001 L 0
← 0010 HP 010← R 1
→ 0011 LK 011
↘0100 MK 100
↙0101 HK 101
↗0110
↖0111
Nothing 1000
Finite State Machine →
VHD FILES
PORTS
clk in
direction in msb lsb
arrow in Bus ☑ 3 0
4 bits
Action in Bus ☑ 2 0
3 bits
Special out
Architecture - -
TYPE StateType is SID_LOGIC_VECTOR (2 down to 0);
SIGNAL Current_state, Next_State:StateType:=Init_State;
begin
comblogic: Process(direction, arrow, action, current_state)
begin
Case Current_State is
When Init_State ⇒
Special <=’0’;
if(arrowButton=”0001”) then
Next_State <= D_State;
else
Next_State <= Init_State;
End if;
When D_State =>
Special <= ‘0’;
if (direction = ‘0’) then
If (arrow Button = “0101”) then
next_State <= LDFState;
elif (arrow button = “0001” ) then
next_State <= D_state;
else
next_State <= Init_state;
end if;
else
For RIght Side F=DF_State;
When L_DF_Sate =>
Do Stuff to check Left, right arrow