Professional Documents
Culture Documents
8 Bit Alu
8 Bit Alu
The image on the right indicates the order in which the panels are accessed normally. This is done
using a 7 bit vector.
Here, I have written a Verilog code which takes in a BCD number and converts it into a 6 bit vector
format, which the seven segment panel understands. Note that, to light up an individual panel, we
have to switch it OFF(pass '0' through it).
//Verilog module.
module segment7(
bcd,
seg
);
endmodule