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...

  • 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...

  • In assembly code, and if you're writing it out please write neatly so I can be...

    In assembly code, and if you're writing it out please write neatly so I can be able to read it. Thank you. 5. Assume double-word references to memory and that count is in ECX. Give a fragment of assembly code that implements the design structures shown. The code should flow the same as the design: a. Ifcoun> value then end if fa+b- count 0; b. Assume the character check is in AL Then Else end if f(ch 2 'a) and...

  • Your task for this project is to write a parser for a customer form. You need to develop a Java a...

       Your task for this project is to write a parser for a customer form. You need to develop a Java application using Parboiled library. Your program should include a grammar for the parser and display the parse tree with no errors. Remember that your fifth and sixth assignments are very similar to this project and you can benefit from them. The customer form should include the following structure: First name, middle name (optional), last name Street address, city, state (or...

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
ADVERTISEMENT