Advanced Vlsi 2
-
Upload
nima-afraz -
Category
Documents
-
view
66 -
download
1
Transcript of Advanced Vlsi 2
![Page 1: Advanced Vlsi 2](https://reader034.fdocuments.in/reader034/viewer/2022050722/548004d2b4af9fb9158b5c0f/html5/thumbnails/1.jpg)
Advanced VLSI Design
Homework No.2
Implementing an 8-bit Adder/Subtractor.
Nima Afraz
900767858
Kazem Farjami nejhad
900767726
![Page 2: Advanced Vlsi 2](https://reader034.fdocuments.in/reader034/viewer/2022050722/548004d2b4af9fb9158b5c0f/html5/thumbnails/2.jpg)
a. Write RTL description in Verilog or VHDL.
First of all we must findout a suitable schematic for the 8-bit
Adder/Subtractor.
This one seems good:
Now a Vhdl code is required:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity addsub is
port(A,B : in std_logic_vector(7 downto 0);
OPER: in std_logic;
RES : out std_logic_vector(7 downto 0));
end addsub;
architecture archi of addsub is
begin
RES <= A + B when OPER='0'
else A - B;
end archi;
![Page 3: Advanced Vlsi 2](https://reader034.fdocuments.in/reader034/viewer/2022050722/548004d2b4af9fb9158b5c0f/html5/thumbnails/3.jpg)
It’s time to compile the Vhdl code:
Now testing the code with inputs :
![Page 4: Advanced Vlsi 2](https://reader034.fdocuments.in/reader034/viewer/2022050722/548004d2b4af9fb9158b5c0f/html5/thumbnails/4.jpg)
a=0000011b=00000001opr=0 (add)
![Page 5: Advanced Vlsi 2](https://reader034.fdocuments.in/reader034/viewer/2022050722/548004d2b4af9fb9158b5c0f/html5/thumbnails/5.jpg)
a=0000011 b=00000001 opr=1 (sub)
It work’s
b.Synthesize it using Leonardo Spectrum
In this section after producing the Vhdl file we opened Leonardo and loading
the ams600 library file we choose that in technology tab.
![Page 6: Advanced Vlsi 2](https://reader034.fdocuments.in/reader034/viewer/2022050722/548004d2b4af9fb9158b5c0f/html5/thumbnails/6.jpg)
Read vhdl code from the source:
Now write it in an edf file:
Successful:
![Page 7: Advanced Vlsi 2](https://reader034.fdocuments.in/reader034/viewer/2022050722/548004d2b4af9fb9158b5c0f/html5/thumbnails/7.jpg)
A report from the required gates :
Now the edf file is ready to be used in L-Edit.
![Page 8: Advanced Vlsi 2](https://reader034.fdocuments.in/reader034/viewer/2022050722/548004d2b4af9fb9158b5c0f/html5/thumbnails/8.jpg)
c. Generate std-cell layout of it using L-Edit 8.5.
For getting started for designing in L-Edit first of all from this path
Tools>SPR>Place & Route open setup and in the first field address the
ams600.tdb and in the second field address the edf file exported from Leonardo.
The Now clicks on run and wait for the layout to show up.
![Page 9: Advanced Vlsi 2](https://reader034.fdocuments.in/reader034/viewer/2022050722/548004d2b4af9fb9158b5c0f/html5/thumbnails/9.jpg)
Layout is ready:
![Page 10: Advanced Vlsi 2](https://reader034.fdocuments.in/reader034/viewer/2022050722/548004d2b4af9fb9158b5c0f/html5/thumbnails/10.jpg)