Question: 3 : Inside your Q 2 folder, you are going to use a different approach to describe the 2 - digit BCD adder. No longer

3: Inside your Q2 folder, you are going to use a different approach to describe the 2-digit BCD adder. No longer using hierarchical design by instantiating the 1-digit BCD adder as you did in Q1, here you are expected to translate an algorithm like the one represented by the following pseudo-code, into SystemVerilog code.Before your translation, take a moment to think about what circuit could be used to implement this pseudo-code? It is reasonably straightforward to see that lines 1,9,10, and 18 represent adders, lines 28 and 11-17 correspond to multiplexers, and testing for the conditions T_(0)>9 and T_(1)>9 requires comparators.
Now perform the following steps to describe the 2-digit BCD adder by translating the given pseudo-code:
Create a SystemVerilog module TwoDigit_BCD_Adder2.sv that implements the algorithm shown above. Include the testbench you used in Q1 to test this module using ModelSim. You need to create correct runlab. do and wave. do files to run the simulation.
Create a new Quartus project called Q2. Copy your top-level module from Q1 here and rename it to
Q2.sv. Use the same switches, lights, and displays as in Q1. Compile your circuit.
Use the Quartus RTL Viewer tool to examine the circuit produced by compiling your SystemVerilog code. Take screen shots of RTL view at hierarchical levels, named as Q2rtlview1.png, Q2rtlview2.png, and so on. Compare the circuit to the one you designed in Q1, and comment on the comparison results at the initial comments block of TwoDigit_BCD_Adder2.sv .
Download your circuit onto the DE2 board and test it by trying different values for numbers A1A0 and B1B0.
4: Check and zip both Q1 and Q2 folders, you will get a zip file named HW4.zip. Submit HW4.zip to Canvas by 11:59 pm, Sunday 0428.
3 : Inside your Q 2 folder, you are going to use

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!