Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

RTL State machine design help

Status
Not open for further replies.

Sistar

Newbie level 2
Joined
Aug 17, 2016
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
21
Here is a interview question and I am not sure about the answer. I hope some one can help me to solve it.

To enter the office people have to pass through the corridor. Once someone gets into the office the light turns on. It goes off when noone is present in the room. There are two registration sensors in the corridor. Build a state machine diagram and design a circuit to control the light

Screen Shot 2016-08-16 at 9.14.01 PM.png
 

ThisIsNotSam

Advanced Member level 5
Joined
Apr 6, 2016
Messages
2,151
Helped
381
Reputation
762
Reaction score
389
Trophy points
83
Activity points
10,945
Here is a interview question and I am not sure about the answer. I hope some one can help me to solve it.

To enter the office people have to pass through the corridor. Once someone gets into the office the light turns on. It goes off when noone is present in the room. There are two registration sensors in the corridor. Build a state machine diagram and design a circuit to control the light

View attachment 131603

This looks trivial. By the sensor order you know if someone entered or left the room. use that with some counters and you know how many are inside at any given time. light goes off is the counter is zero. Am I missing something? Is this the whole problem?
 

dpaul

Advanced Member level 4
Joined
Jan 16, 2008
Messages
1,488
Helped
307
Reputation
614
Reaction score
304
Trophy points
1,373
Location
Germany
Activity points
11,151
In my opinion the OP has not provided all the conditions.

OP: Have you tried to sketch a state diagram? Show us what you have understood and done!
 

ads-ee

Super Moderator
Staff member
Joined
Sep 10, 2013
Messages
7,826
Helped
1,811
Reputation
3,632
Reaction score
1,773
Trophy points
1,393
Location
USA
Activity points
59,095
In my opinion the OP has not provided all the conditions.

OP: Have you tried to sketch a state diagram? Show us what you have understood and done!

IMO they already flunked the interview...if I gave someone a "take home" or set of pre-interview questions I would probably come on here and check if they asked for help on those questions....
 

Sistar

Newbie level 2
Joined
Aug 17, 2016
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
21
Just assume that only one person will pass the sensor at a time
 

dpaul

Advanced Member level 4
Joined
Jan 16, 2008
Messages
1,488
Helped
307
Reputation
614
Reaction score
304
Trophy points
1,373
Location
Germany
Activity points
11,151
check my earlier reply. that is all it takes. very very easy solution.

Perhaps the OP desires to have the entire SM bubble-diagram to be provided to him!
Till now he hasn't replied about his own understanding or his line of thoughts to solve the problem.
 

ads-ee

Super Moderator
Staff member
Joined
Sep 10, 2013
Messages
7,826
Helped
1,811
Reputation
3,632
Reaction score
1,773
Trophy points
1,393
Location
USA
Activity points
59,095
Perhaps the OP desires to have the entire SM bubble-diagram to be provided to him!
Till now he hasn't replied about his own understanding or his line of thoughts to solve the problem.

Hence my statement in post #6
IMO they already flunked the interview
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top