Continue to Site

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.

Help me with VHDL elevator switch coding

Status
Not open for further replies.

Demise

Newbie level 1
Joined
Nov 30, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
Im trying to code a simple elevator for one of my classes and I am quite stuck any help would be appreciated. I am to display the target floor and present floor on two different seven segments, with a clock and switch. The present floor must count up or down to the target floor when the switch is pressed. I dont understand how I would implement the switch into the coding.

Thanks
 

Re: VHDL Elevator Coding

Hi Demise,

You are displaying the target floor in a seven segment display na... so maximum value will be 9 (0 to 9) so you can make an input port of size (10, like std_logic_vector(9 downto 0)) to act as a switch, for example so if you need to select the target floor as 6, then you need to press the 6th pin as active high,...

Means there are 10 switches (the input port with size(10)) corresponds to your 10 Floor...

I think you got it..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top