Beruflich Dokumente
Kultur Dokumente
Expt. No. : 05(a) Date HALF ADDER AIM: To design the Half Adder using VHDL programming in MODEL SIM. COMPONENTS REQUIRED: Xilinx IDE, MODEL SIM. ALGORITHM: Step 1: Start the program by including the required Header Files. Step 2: Write the Architecture for processing a,b and assign S & Ca according to Half Adder expression. Step 3: Simulate it using Modelsim. Step 4: Check and verify the signals in the waveform. :
OUTPUT:
RESULT: Thus the Half Adder using VHDL programming in MODEL SIM was designed and verified successfully.
Expt. No. : 05(b) Date FULL ADDER AIM: To design the Full Adder using VHDL programming in MODEL SIM. COMPONENTS REQUIRED: Xilinx IDE, MODEL SIM. ALGORITHM: Step 1: Start the program by including the required Header Files. Step 2: Write the Architecture for processing a,b,c and assign S & Ca according to Full Adder expression. Step 3: Simulate it using Modelsim. Step 4: Check and verify the signals in the waveform. :
OUTPUT:
RESULT: Thus the full Adder using VHDL programming in MODEL SIM was designed and verified successfully.
Expt. No. : 06(a) Date HALF SUBTRACTOR AIM: To design the Half Subtractor using VHDL programming in MODEL SIM. COMPONENTS REQUIRED: Xilinx IDE, MODEL SIM. ALGORITHM: Step 1: Start the program by including the required Header Files. Step 2: Write the Architecture for processing a,b and assign d & br according to Half Subtractor expression. Step 3: Simulate it using Modelsim. Step 4: Check and verify the signals in the waveform. :
OUTPUT:
RESULT: Thus the Half Subtractor using VHDL programming in MODEL SIM was designed and verified successfully.
Expt. No. : 06(b) Date FULL SUBTRACTOR AIM: To design the Full Subtractor using VHDL programming in MODEL SIM. COMPONENTS REQUIRED: Xilinx IDE, MODEL SIM. ALGORITHM: Step 1: Start the program by including the required Header Files. Step 2: Write the Architecture for processing a,b,c and assign d & br according to Full Subtractor expression. Step 3: Simulate it using Modelsim. Step 4: Check and verify the signals in the waveform. :
OUTPUT:
RESULT: Thus the Full Subtractor using VHDL programming in MODEL SIM was designed and verified successfully.
PROGRAM: Decoder
library IEEE; use IEEE.std_logic_1164.all; Entity dec is port (i: in bit_vector(1 downto 0); o: out bit_vector(3 downto 0)); end dec; Architecture dec1 of dec is begin o<= "0001" when i="00" else "0010" when i="01" else "0100" when i="10" else "1000"; end dec1;
Expt. No. : 07(a) Date DECODER AIM: To design the Decoder using VHDL programming in MODEL SIM. COMPONENTS REQUIRED: Xilinx IDE, MODEL SIM. ALGORITHM: Step 1: Start the program by including the required Header Files. Step 2: Assign the input & output according to Decoder expression. Step 3: Simulate it using Modelsim. Step 4: Check and verify the signals in the waveform. :
OUTPUT:
RESULT: Thus the Decoder of 2*4 using VHDL programming in MODEL SIM was designed and verified successfully.
PROGRAM: Multiplexer
library IEEE; use IEEE.std_logic_1164.all; Entity mux is port(a,b,c,d: in std_logic; s: in std_logic_vector(1 downto 0); o: out std_logic); end mux; Architecture mux1 of mux is begin o<= a when s= "00" else b when s= "01" else c when s= "10" else d; end mux1;
Expt. No. : 07(b) Date 4:1 MULTIPLEXER AIM: To design the 4:1 Multiplexer using VHDL code in MODEL SIM. COMPONENTS REQUIRED: Xilinx IDE, MODEL SIM. ALGORITHM: Step 1: Start the program. Step 2: Declare the entity. Step 3: Define the Architecture of the Entity. Step 4: In the Architecture of Multiplexer, call the components of all Entities. Step 5: Define port Map for each Entity. Step 6: Simulate it using Modelsim. Step 7: Check and verify the signals in the waveform. :
OUTPUT:
RESULT: Thus the 4:1 Multiplexer using VHDL programming in MODEL SIM was designed and verified successfully.
Expt. No. : 08(a) Date PARALLEL ADDER AIM: To design the Parallel Adder using VHDL programming in MODEL SIM. COMPONENTS REQUIRED: Xilinx IDE,MODEL SIM. ALGORITHM: Step 1: Start the program by including the required Header Files. Step 2: Write the Architecture for processing a,b,c and assign S & Ca according to Half Adder expression to get c1,c2,c3,x signals. Step 3: Simulate it using Modelsim. Step 4: Check and verify the signals in the waveform. :
OUTPUT:
RESULT: Thus the Parallel Adder using VHDL programming in MODEL SIM was designed and verified successfully.
Expt. No. : 08(b) Date PARALLEL SUBTRACTOR AIM: To design the Parallel Subtractor using VHDL code in MODEL SIM. COMPONENTS REQUIRED: Xilinx IDE,MODEL SIM. ALGORITHM: Step 1: Start the program. Step 2: Declare the entity. Step 3: Define the Architecture of the Entity. Step 4: In the Architecture of Multiplexer, call the components of all Entities. Step 5: Define port Map for each Entity. Step 6: Simulate it using Modelsim. Step 7: Check and verify the signals in the waveform. :
SUB PROGRAM:
Half subtractor
library IEEE; use IEEE.std_logic_1164.all; Entity ha is port(a, b: in std_logic; diff, borr : out std_logic); end ha; Architecture ha1 of ha is begin diff<=a xor b; borr<= not a and b; end ha1;
OUTPUT:
RESULT: Thus the Parallel Subtractor using VHDL programming in MODEL SIM was designed and verified successfully.