Professional Documents
Culture Documents
Objective
To implement the following codes in VHDL :
1. OR Gate
2. Half Adder
3. Full Adder
4. 2x1 MUX
5. 1x2 DEMUX
Codes
entity half_adder is
port (a, b: in bit;
s, cout: out bit);
end half_adder;
Input
We force desired inputs to each of these cases to get our desired output
Output
1. OR Gate
Tuesday, August 1, 2017 Page |
Experiment 1: Basic VHDL Codes BT15ECE021 and BT15ECE039
2. Half Adder
3. Full Adder
4. 2x1 MUX
Tuesday, August 1, 2017 Page |
Experiment 1: Basic VHDL Codes BT15ECE021 and BT15ECE039
5. 1x2 DEMUX
Result
VHDL Programs were Compiled and Simulated. The waveforms obtained were in coherence
with the expected behavious from the various Logic Gates / Combinational Circuits.