Textbook Notes (280,000)
US (110,000)
LSU (20,000)
EE (300)
EE 2731 (60)
All (60)
Chapter

2nd Floor Open Elevator


Department
Electrical Engineering
Course Code
EE 2731
Professor
All

This preview shows pages 1-2. to view the full 8 pages of the document.
//2nd floor open
B: if({second_Floor}==1'b1)
begin
if (d_switch==1'b0)
begin
light1 = 0;
light2 = 1;
light3 = 0;
light4 = 0;
doorlight = 1;
count=count+1;
state = F;
end
else if (d_switch==1'b1)
begin
light1 = 0;
light2 = 1;
light3 = 0;
light4 = 0;
doorlight = 1;
end
end
//Door two closed

Only pages 1-2 are available for preview. Some parts have been intentionally blurred.

F: if ({first_Floor}==1'b1)
begin
light1 = 1;
light2 = 0;
light3 = 0;
light4 = 0;
doorlight = 0;
state = E;
end
else if ({second_Floor}==1'b1)
begin
light1 = 0;
light2 = 1;
light3 = 0;
light4 = 0;
doorlight = 1;
state <= B;
end
else if ({third_Floor}==1'b1)
begin
light1 = 0;
light2 = 0;
You're Reading a Preview

Unlock to view full version

Only pages 1-2 are available for preview. Some parts have been intentionally blurred.

light3 = 1;
light4 = 0;
doorlight = 0;
state = G;
end
else if ({second_Floor}==1'd0)
begin
light1 = 0;
light2 = 1;
light3 = 0;
light4 = 0;
doorlight = 0;
state = F;
end
//3rd floor open
C: if({third_Floor}==1'b1)
begin
if (d_switch==1'b0)
begin
light1 = 0;
light2 = 0;
light3 = 1;
light4 = 0;
You're Reading a Preview

Unlock to view full version