Help me plz. 1. The Architecture: In this project, you will design and implement
ID: 3702919 • Letter: H
Question
Help me plz. 1. The Architecture: In this project, you will design and implement a logic unit using Quartus design tools. This unit will implement several operations. You will need to perform the design and simulation using the tools, and download the design on Altera board. This project is done using groups of two or three depends on the number of students at the labs. Your lab engineers must approve your group members. The unit will have an 8 bits input from the switches on the Altera board, while the output will be displayed on the Seven Segment Display and the LEDs. The 8 bits input consists of 2 bits as control bits and 6 bits as data bits that represent unsigned numbers as follows: Control bits ( 2 bits) A data bits (3 bits) B data bits (3 bits) C1 Co a2 a1 ao b2 b, bo As for the different combinations of the control bits, every combination represents a specific operation as described in Table 1 LED 7 Segm Result Control Bits Operation A 2i Where i has to be even numbers only including Result B +2i 01 Where i has to be odd numbers only Prime /Not Prime for A & B Display Group Name 10 ResultP/nP name
Explanation / Answer
Answer:
Let me explain you in a step-by-step manner:-
Step-1:first step is to activate the user enters the value from 10 for the different control bits, c1,c2. The value of the system must be displayed in a binary format at LED.
program main;
integer A,B;
initial
begin
B = 1;
A = 2;
$display("The Value of A + B is %0d ",A+B);
end
endprogram
-------------------------------------------------------------------Step-2:
Nnext step is to implement the substraction for the two operands using full adder and the system to find the result positive or negative which has 7 segments to be displayed.
program main;
integer A,B;
initial
begin
B = 1;
A = 2;
$display("The Value of A - B is %0d ",A-B);
end
end program
---------------------------------------------------------------------Step-3:
Next step is to calculate the Verilog code for the different user codes of the control units as binary format which needs to be displayed as result value,
program main;
integer A,B;
initial
begin
A = 2;
$display("The Value of A * is %0d ",A*A);
end
end program
---------------------------------------------------------------------------------Step-4:
Nnext step is to activate the user entering the different values of the control units by using the verilog code for multiplication of the result set.
program main;
integer A,B;
initial
begin
B = 1;
A = 2;
$display("The Value of A * B is %0d ",A*B);
end
endprogram
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.