Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Experiment 1 Part 1 : The following VHDL code for 1 - bit adder ( from lecture 1 ) . 1 - Create a new
Experiment Part :
The following VHDL code for bit adder from lecture
Create a new project fulladder
Add VHD file to the project then copy or print the above code
Compile your project
Add a waveform file to simulate the full adder.
Part : The following VHDL code for bit adder built from bit adder.
VHDL for a bit adder built from bit adders.
library ieee;
use ieee.stdlogicall;
entity fulladder is
port xy : in stdlogicvector downto ;
cin : in stdlogic;
sum : out stdlogicvector downto ;
cout : out stdlogic;
end fulladder;
architecture prototype of fulladder is
component fulladder
port abc : in stdlogic;
sz : out stdlogic;
end component;
signal c c c : stdlogic; temporary signals needed in the
architecture.
begin
bit: fulladder
port map axbyc cin,s sumz c;
bit: fulladder
port map axbyc cs sumz c;
bit: fulladder
port map axbyc cs sumz c;
bit: fulladder
port map axbyc cs sumz cout;
end prototype;
library ieee;
use ieee.stdlogicall;
entity FullAdder is
port abc : in stdlogic;
sz : out stdlogic;
end FullAdder;
architecture prototype of FullAdder is
begin
s a xor b xor c; equation for s
z a and b or a and c or b and c; equation for z
end prototype;
Create a new folder to save the new project in it Lets name it fulladder
Copy FullAddervhd fle i prrt pid psrte rt i rthe iew folder
Open Quartus software and create a new project fulladder
add FullAddervhd file to the project
Add VHD file to the project then copy or print the code of fulladder
Add an output to the entity to detect the overflow.
Compile your project
a Determine the propagation delay from computational report Timing
analyzer
Add waveform file to simulate the bit full adder.
a Simulation Simulate the fulladdre for different values of x and y
b Timing Simulate the fulladdre for fixed value of x and y
Check RTLview of your design
Part
Copy the folder of fulladder project
Modify the new copy of the project to design bit full adder
Compile your project
a Determine the propagation delay from computational report Timing
analyzer
Add waveform file to simulate the bit full adder.
b Simulation Simulate the fulladdre for different values of x and y
c Timing Simulate the fulladdre for fixed value of x and y
Check RTLview of your design
Part
Add the necessary changes to the code to design bit adder subtractor
create a new project lets call it addersub
Add the vhd files fulladder and fulladder to the project
Change the entity name in fulladdervhd file to addersub then add the necessary
changes in the code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started