Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer question 3. Question 3 Not yet answered Marked out of 1.00 p Flag question Consider the four-bit prime (or one) number function you

Please answer question 3. image text in transcribed
image text in transcribed
Question 3 Not yet answered Marked out of 1.00 p Flag question Consider the four-bit prime (or one) number function you have synthesized in the previous section. You are now asked to develop a test bench for the function. Here, you need to answer the question, "What do you want to test to your code as input? What will you expect at the output?" Use a for loop and the report function to print the output in simulation. You are reminded that the concatenation symbol is the ampersand (&). Question 2 Answer saved Marked out of 1.00 P Flag question You are asked to implement a four-bit prime (or one) number function in VHDL. The following entity has been declared. - prime input-4bit binary number ieprime true sf input 1e a prime number 3, 2. 3. 5. 7. 21. or 13 library Lee une dece.std_logic_1164.all entity prime is portt input in atd_logic_vector) downto); ieprime out atd logic; and prime State the main functionality of this function. What are you expecting at the input and output? a) Write the architecture description using case statements. b) Optimise the logical statements in the previous part to implement it with logic gates. Discuss the use of case statements in comparison to using logic gates. Is one better than the other? Why or why not

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions