Question: You should be writting a VHDL code you may add diagrams but I am looking for a VHDL CODE that runs . Comments are necessary
Do HW 3 assignment on zybooks. Then write the HDL for 3 of the following specifications: Choices: 1. Prime number circuit: Design a circuit that determines if a 4-bit input is a prime number. 2. More 1's circuit: Design a circuit that determines if a 3 bit input has more 1 's than 0 's. 3. More 0's circuit: Design a circuit that dermines if a 4bit input has more 0 's than 1 's. 4. Adder circuit: Design a circuit that accepts two 2-bit numbers and outputs the sum (you cannot use the ' + ' operator). You must implement each problem TWICE, using two of the following coding styles: 1. Dataflow implementation (and/orot gates) 2. Using if-then-else statements 3. Using case statements 4. Using when-else statements Between the three problems, you must have used each style at least once to receive full credit. Feel free to use any two styles for the problems, regardless of what the problem says. In addition, for each implementation, you must perform several simulations in QuestaSim or EDA playground. You must include comments explaining in detail what the code is doing. Comments are created by placing two dashes, "-"at the beginning of the line. Treat the grader as a non
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
