Professional Documents
Culture Documents
Task-1
module fullad_dat(a,b,c,s,cy);
input a,b,c;
output s,cy;
assign s = a ^ b ^ c;
assign cy = (a & b)| (b & c) | (c & a);
endmodule
Task-2
Consider the circuit shown in Figure. It uses a two-bit wide 3-to-1 multiplexer
to enable the selection of three characters that are displayed on a 7-segment
display. Using the 7-segment decoder from Task -4 this circuit can display the
characters d, E, ‘blank’ and 0, 1, or 2 depending on your DE2115 board. The
character codes are set according to Table by using the switches SW5 -SW0,
and a specific character is selected for display by setting the switches SW9-
SW8.
Task-5 - Solution