elevator control source code verilog
#1

Please help me out in lift controller project.
Reply
#2

#include<stdio.h>

int main(void) {
int M, F3, F2, F1;
printf(“Enter bit (either 0 or 1) for M: “);
scanf(“%d”, &M);
printf(“Enter bit (either 0 or 1) for F3: “);
scanf(“%d”, &F3);
printf(“Enter bit (either 0 or 1) for F2: “);
scanf(“%d”, &F2);
printf(“Enter bit (either 0 or 1) for F1: “);
scanf(“%d”, &F1);

if(M == 0 && F3 == 0 && F2 == 0 && F1 == 0) {
printf(“\nOpen: 0”);
}
else if(M == 0 && F3 == 0 && F2 == 0 && F1 == 1) {
printf(“\nOpen: 1”);
}
else if(M == 0 && F3 == 0 && F2 == 1 && F1 == 0) {
printf(“\nOpen: 1”);
}
else if(M == 0 && F3 == 0 && F2 == 1 && F1 == 1) {
printf(“\nOpen: X”);
}
else if(M == 0 && F3 == 1 && F2 == 0 && F1 == 0) {
printf(“\nOpen: 1”);
}
else if(M == 0 && F3 == 1 && F2 == 0 && F1 == 1) {
printf(“\nOpen: X”);
}
else if(M == 0 && F3 == 1 && F2 == 1 && F1 == 0) {
printf(“\nOpen: X”);
}
else if(M == 0 && F3 == 1 && F2 == 1 && F1 == 1) {
printf(“\nOpen: X”);
}
else if(M == 1 && F3 == 0 && F2 == 0 && F1 == 0) {
printf(“\nOpen: 0”);
}
else if(M == 1 && F3 == 0 && F2 == 0 && F1 == 1) {
printf(“\nOpen: 0”);
}
else if(M == 1 && F3 == 0 && F2 == 1 && F1 == 0) {
printf(“\nOpen: 0”);
}
else if(M == 1 && F3 == 0 && F2 == 1 && F1 == 1) {
printf(“\nOpen: X”);
}
else if(M == 1 && F3 == 1 && F2 == 0 && F1 == 0) {
printf(“\nOpen: 0”);
}
else if(M == 1 && F3 == 1 && F2 == 0 && F1 == 1) {
printf(“\nOpen: X”);
}
else if(M == 1 && F3 == 1 && F2 == 1 && F1 == 0) {
printf(“\nOpen: X”);
}
else if(M == 1 && F3 == 1 && F2 == 1 && F1 == 1) {
printf(“\nOpen: X”);
}
else {
printf(“Error: Your input is not correct!”);
}

printf(“\n\n\n”);
return 0;
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: 5 floor elevator verilog code, elevator vhdl code with state machines, opengl source code for elevator, how to design a three level elevator controller using verilog code, elevator control system, elevator control source code verilog, verilog code for electronic elevator,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  simple java rmi chat application source code 2 19,683 20-07-2018, 12:08 PM
Last Post: Guest
  authentication schemes for session passwords using color and images project source code 2 2,251 03-02-2018, 09:35 AM
Last Post: Nischithnash
  free download source code for online movie ticket booking in java 2 19,134 15-08-2017, 03:21 PM
Last Post: Morshed
  source code for rsa encryption and decryption in java 2 8,171 29-05-2017, 04:21 PM
Last Post: Meghna Jadhav
  download liver tumor ct scan image in matlab with source code 4 8,217 21-05-2017, 09:54 PM
Last Post: abdulrahmanmashaal
  online cab booking source code in asp net 3 8,101 11-05-2017, 10:39 AM
Last Post: jaseela123d
Thumbs Up online catering management system on php with report and source code and ppt 4 8,971 29-04-2017, 10:59 AM
Last Post: jaseela123d
  New Techniques Of Erosion Control On Hill Roads Transportation kiranrj 3 3,645 28-04-2017, 10:56 AM
Last Post: jaseela123d
  source code for task scheduling using genetic algorithm using java 2 8,681 11-04-2017, 08:31 PM
Last Post: Guest
  automatic timetable generator source code vb 1 7,760 07-04-2017, 12:31 PM
Last Post: jaseela123d

Forum Jump: