Question
Type down the code so I can copy it directly please. Dont write on papers or dont provide it as screenshots, only type it please. I will upvote too. Thanks.
Figure 3 shows the connection between a common anode 7-segment display, three switches and an FPGA. Write the VHDL code that
0 0
Add a comment Improve this question Transcribed image text
Answer #1

library ieee;

use ieee.std_logic_1164.all;

entity oddno is

port(a: in std_logic_vector(2 downto 0);

y: out std_logic_vector(6 downto 0));

end oddno;

architecture beh of oddno is

begin

process(a)

begin

case a is

when "000" =>

y<= "0110000"; -- format for show E in seven segment display

when "001" =>   -- odd no.

y<= "1001111";   -- format for show 1 in seven segment display

when "010" =>

y<= "0110000";    -- format for show E in seven segment display

when "011" =>   -- odd no.

y<= "0000110";   -- format for show 3 in seven segment display

when "100" =>

y<= "0110000";    -- format for show E in seven segment display

when "101" =>

y<= "0100100";   -- format for show 5 in seven segment display

when "110" =>

y<= "0110000";   -- format for show E in seven segment display

when "111" =>

y<= "0001111";    -- format for show 7 in seven segment display

when others=>

y<= "0110000";   -- format for show E in seven segment display

end case;

end process;

end beh;

Add a comment
Know the answer?
Add Answer to:
Type down the code so I can copy it directly please. Dont write on papers or...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please dont write the VHDL code on paper just copy and paste it from the program...

    please dont write the VHDL code on paper just copy and paste it from the program Q1 K101 Fig. 2 (b) Use the structural design style to write the VHDL code (entity and architecture) to describe the circuit in Fig. 2 if the entity of the JK flip-flop is as shown below: entity JKYT is port( Q. NO: out atd logies CLK, CLR, J, K instd_logie); and JKPF; (5 marks)

  • FIRST ACTIVITY: (100/100) . SIMPLE 4-BIT ARITHMETIC LOGIC UNIT (ALU): This circuit selects between arithmetic (absolute...

    FIRST ACTIVITY: (100/100) . SIMPLE 4-BIT ARITHMETIC LOGIC UNIT (ALU): This circuit selects between arithmetic (absolute value, addition) and logical (XOR, AND) operations. Only one result (hexadecimal value) can be shown on the 7-segment display This is selected by the input sel (1..0) B A-BI A+B A xnor B A nand B Input EN: If EN-1result appears on the 7 segment display. If EN=0 → all LEDs in the 7 segment display are off Arithmetic operations: The 4-bit inputs A...

  • PLEASE DO BOTH OF THESE IN PYTHON!!! AND MAKE SURE THAT I CAN COPY THE CODE....

    PLEASE DO BOTH OF THESE IN PYTHON!!! AND MAKE SURE THAT I CAN COPY THE CODE. 1.) Exercise #1: Design and implement a program (name it PrintSum) that prompts the user for an integer values between 1 and 100. The program then uses a while loop to determine and print out the sum of all values between 1 and the entered value. The program rejects invalid input values with proper message such “Invalid Input. Try again.” Document your code and...

  • write out the code so I can cut and paste it into an editor please Modify...

    write out the code so I can cut and paste it into an editor please Modify a JythonMusic program.        Use JEM Help>>JythonMusic docs (online), also on JHU Safari Books Online / ProQuest        Also use the JythonMusic API and references (online)               References               Appendix A: MIDI Constants               Appendix B: Music Library Functions               Appendix C: GUI Library Functions               Appendix D: Other Functions 1.     Change randomCircles.py into randomSquares.py        Modify randomCircles.py               - put comments in your code pointing out your modifications               - name it randomSquares.py...

  • I need a flow chart for this, please do not write in cursive. so i can...

    I need a flow chart for this, please do not write in cursive. so i can read it please Algorithm for the Program: 1.Start reading the character c till the while loop ends. 2.Write the condition if the given is not character,Stops the program. 3.Call the function ischar() to determine if letter is character or not. 4.In the function check smaller case alphabet and return ASCII index of c-'a'+1. 5.If not,check bigger case alphabet and return ASCII index of c-'A'+1....

  • Step by step and explain please! Alsp dont forfet to write the formula so i can...

    Step by step and explain please! Alsp dont forfet to write the formula so i can follow along. Thank u! Manten 16.2 Electric Potentials and Potential Energy Due to Point Charges 11. An electron is at the origin. a) Calculate the electron potential Va at a point A, x = 0.250 cm. b) Calculate the electric potential VB at a point B, X = 0.750 cm. What is the potential difference VB - VA. c) Would a negatively charged particle...

  • Jubail University College Computer Science & Engineering Department Assessmen Assignment Course Code CS120/C5101 t Type: 1...

    Jubail University College Computer Science & Engineering Department Assessmen Assignment Course Code CS120/C5101 t Type: 1 Semester: 403 Course Title Programming Submission 27-06-2020 Total Points 8 Date Submission Instructions: • This is an individual assignment. • Please submit your program (Java fle) in Blackboard. You can create one java project, named as Assignment1_id and add separate java file for each question. You can name your javá files as 01.02.... etc. • Make sure that you include your student ID name...

  • please write down the code Thank you. Write a simple shell that is similar to this: while(1 //repeat forever //display prompt on screen type_prompt )i read_command ( command, parameters); // read inp...

    please write down the code Thank you. Write a simple shell that is similar to this: while(1 //repeat forever //display prompt on screen type_prompt )i read_command ( command, parameters); // read input from terminal if ( fork) 0) // parent //wait for child wait NULL elset execve (commamd, parameters, 0 // execute command but contains enough code that it actually works so you can test it. For simplicity, you may assume that all commands are in the directory /bin Write...

  • PLEASE DO IN C# AND MAKE SURE I CAN COPY CODE INTO VISUAL STUDIO Program 4:...

    PLEASE DO IN C# AND MAKE SURE I CAN COPY CODE INTO VISUAL STUDIO Program 4: A palindromic prime number is a number that is both prime number and a palindrome number. For example, 131, 313, and 757 are palindromic prime numbers. Design (pseudocode) and implement (source code) a program (name it PalindromicPrime) to display the first 50 palindromic prime numbers, 10 per line separated by one space. The program defines the following methods: Method isPalindome() to check if a...

  • Can you please write it down 350 words . I appreciate your help. Type it please...

    Can you please write it down 350 words . I appreciate your help. Type it please I can’t read most of the handwriting. Discussion Time Greg wants to help provide for the human rights and dignity of those left homeless due to Katrina. He has gathered a group of volunteers to go to meet the stream of humanity that is coming out of the worst hit area in search of food and shelter. However, how can he offer so many...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT