Experiment 4 - Code Conversion
Experiment 4 - Code Conversion
Eman Karim
Objective:
Theory:
1
Second Year – 2nd Semester Digital Systems Design Lab. Assist. Lect. Eman Karim
2. Weighted Codes
Weighted binary codes are those binary codes which obey the positional weight
principle. Each position of the number represents a specific weight. Several systems
of the codes are used to express the decimal digits 0 through 9. In these codes, each
decimal digit is represented by a group of four bits.
3. Non-Weighted Codes
In this type of binary code, the positional weights are not assigned. The examples of
non-weighted codes are Excess-3 code and Gray code.
2
Second Year – 2nd Semester Digital Systems Design Lab. Assist. Lect. Eman Karim
Procedure:
Lab4a: Use K- maps to obtain the code conversion (expressions of W,X,Y,Z ) for
the table below. Create (Lab4a) project to run the VHDL file using Quartus
Prime Lite. Show the RTL Viewer and Simulation.
3
Second Year – 2nd Semester Digital Systems Design Lab. Assist. Lect. Eman Karim
4
Second Year – 2nd Semester Digital Systems Design Lab. Assist. Lect. Eman Karim
5
Second Year – 2nd Semester Digital Systems Design Lab. Assist. Lect. Eman Karim
Lab4b: Use K- maps to obtain the code conversion (expressions of W,X,Y,Z ) for
the table below. Create (Lab4b) project to run the VHDL file using Quartus
Prime Lite. Show the RTL Viewer and Simulation.
6
Second Year – 2nd Semester Digital Systems Design Lab. Assist. Lect. Eman Karim
7
Second Year – 2nd Semester Digital Systems Design Lab. Assist. Lect. Eman Karim