Professional Documents
Culture Documents
PARITY GENERATOR
INTRODUCTION
VHDL CODE & SIMULATION RESULT
RD/OE
WR/SC
In Even Parity, the added Parity bit will Make the Total
Number of 1’s an Even Amount.
In Odd Parity, the added Parity bit will Make the Total
Number of 1’s an Odd Amount.
PARITY GENERATOR TRUTH TABLE
VHDL CODE FOR ODD PARITY
SIMULATION RESULT
4-BIT MAGNITUDE COMPARATOR
Compare two multi-bit binary numbers
The comparison of two numbers
outputs: A>B, A=B, A<B
LOGIC USED IN VHDL CODE
in_1=_ _ _ _
in_2=_ _ _ _
‘0’ -> unsigned bit vector
Comp_type
‘1’-> signed bit vector
in_1= 0 _ _ _ in_1= 1 _ _ _
in_2= 0 _ _ _ in_2= 1 _ _ _
in_1= 1 _ _ _ in_1= 0 _ _ _
in_2= 0 _ _ _ in_2= 1 _ _ _
VHDL CODE FOR COMPARATOR
SIMULATION RESULT
THANK YOU