Description

•Design a code to be implemented on the FPGA that solves the following problem:

Imagine a parking garage with a gate. The gate allows cars to enter; however, the driver must pay or have a permit for the gate to open. To eliminate car congestion in the garage, the driver can also know which floor to park in. Assuming there are two floors: first floor has 8 spots and second floor has 8 parking spots, write a code that will open the gate and display the spot and floor number from weight sensors in the garage parking spots. If the garage is full the gate will not open. Conditions:
1 attachmentsSlide 1 of 1

  • attachment_1attachment_1

UNFORMATTED ATTACHMENT PREVIEW

ㅏ 7 8 F 5 6 TTTT T E 3 4 E 1 2 F F Gate
Once you get your VM back from reboot, let’s take a couple minutes to install packages used later by your instructor for grading purposes: csh (via tcsh), GNU binutils, and net-tools. $ sudo apt install tcsh binutils net-tools 14. It’s time for network time! $ sudo apt install ntp ntpdate Enable NTP so that it will start up when you next boot your Ubuntu VM … $ sudo systemctl enable ntp.service … fire it up immediately … $ sudo systemctl start ntp.service 9 … and verify it’s running. $ ps auxww | grep ntpd | grep -v grep The -v switch with grep excludes, instead of matches lines, so we’re making sure we only see a line if there’s an ntpd process, not a line for our grep process trying to find ntpd. 15. Mail and mail forwarding next … Ubuntu 20.04 appears to come with no built-in mail subsystem. $ which mail This command returned no output. $ which sendmail This command returned no output … and most mail servers offer a sendmail command, for historical reasons. $ apt list –installed | grep -i mail This command also returned no useful output, just a warning about how apt’s command line interface (CLI) is in flux, and to be careful using it in scripts. So, let’s install postfix; it’s way easier to configure than sendmail. $ sudo apt install postfix After confirming you want to install postfix, you’ll be greeted with this FreeBSD-looking dialog. We’re going to choose “no configuration,” and then set it up manually, because none of the options match our use case for mail on our Ubuntu VM. We want mail to be sent via SMTP, but not to be received, and we want to exercise our DNS and network configuration to get mail to its destination. 10 In the middle of the output that follows, you should see something like this … Preparing to unpack …/postfix_3.4.13-0ubuntu1_amd64.deb … Unpacking postfix (3.4.13-0ubuntu1) … Setting up ssl-cert (1.0.39) … Setting up postfix (3.4.13-0ubuntu1) … Adding group `postfix’ (GID 119) … Done. Adding system user `postfix’ (UID 116) … Adding new user `postfix’ (UID 116) with group `postfix’ … Not creating home directory `/var/spool/postfix’. Creating /etc/postfix/dynamicmaps.cf Adding group `postdrop’ (GID 120) … Done. /etc/aliases does not exist, creating it. Postfix (main.cf) was not set up. Start with cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf . If you need to make changes, edit /etc/postfix/main.cf (and others) as needed. To view Postfix configuration values, see postconf(1). After modifying main.cf, be sure to run ‘systemctl reload postfix’. Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /lib/systemd/system/postfix.service. Processing triggers for ufw (0.36-6) … Processing triggers for systemd (245.4-4ubuntu3.11) … The package installation script, as you see, makes a new separate user, called postfix, to run the postfix mail server as As it tells us, let’s create the postfix configuration file … $ sudo cp -p /etc/postfix/main.cf.proto /etc/postfix/main.cf … we’re not using the main.cf sample under /usr/share/postfix because it’s really thin (take a look at it). As with our Rocky VM, let’s edit the configuration file … $ sudo vi /etc/postfix/main.cf … and set the following values under the areas for each variable’s sample. As you’ll note going through main.cf it helpfully provides its own documentation. In files like this, it just saves you time if you put the value right there next to the explanation for each configuration item. Your fingers and eyeballs need move nowhere to know what you’re doing. myhostname = ubuntu.cs470.local mydomain = cs470.local 11 myorigin = $myhostname sendmail_path = /usr/sbin/sendmail newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq setgid_group = postdrop manpage_directory = /usr/share/man sample_directory = /usr/share/postfix inet_protocols = ipv4 … this last one was already set in the file I got from the package, and recommended that you copy earlier in this step. A lot of these settings were things I felt the postfix package should have filled out for us, since they’re just aiming at other pieces of postfix … but this is probably explained by our choice of “no configuration” at that menu of choices apt threw us. The options sample_directory, readme_directory, and html_directory should be commented out (add a # at the start of these lines to turn them into comments). Once you’re done, save out the file, and tell postfix to start up. $ sudo postfix start You might get a warning about a symbolic link leaving /etc/postfix … you may safely ignore it. Now we need to edit /etc/aliases. Add the following line to forward root’s mail … root: peter@cs470.local … and of course, replace my username with yours, and run newaliases to tell the mail subsystem to re-process the aliases database. $ sudo newaliases Now let’s test our mail configuration. To do that, we need a command-line mailer, but … $ which mail … returns no output. So let’s install apt-file to search the apt database for specific commands … $ sudo apt install apt-file … have apt-file built its database … $ sudo apt-file update 12 … and finally, search for mail or mailx … $ apt-file search mail Wow, this command returns a lot of output. Let’s have it refine its output a bit by piping it through grep … $ apt-file search mail | grep -…

Do you similar assignment and would want someone to complete it for you? Click on the ORDER NOW option to get instant services at essayloop.com

Do you have a similar assignment and would want someone to complete it for you? Click on the ORDER NOW option to get instant services at essayloop.com. We assure you of a well written and plagiarism free papers delivered within your specified deadline.