12.07.2015 Views

ALU Design - FET

ALU Design - FET

ALU Design - FET

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 2. 1-bit <strong>ALU</strong>.abCin1-bit FullAddersumab Cin Cout Sum0 0 0 0 00 0 1 0 10 1 0 0 10 1 1 1 01 0 0 0 11 0 1 1 01 1 0 1 01 1 1 1 1CoutFigure 3. 1-bit FA block diagram and truth table.b) 8-to-1 MultiplexorYou should write a Verliog module that implements this multiplexor usingstructural modeling. Your module should use the following template.module Mux_8_to_1(result, s, in);output result;input [2:0] s;input [7:0] in;// implementation details are left to the studentendmodule2) Once you have built the full adder and the multiplexor, you can now move to the nextlevel by writing the Verilog module that implements the 1-bit <strong>ALU</strong> using thefollowing template.module <strong>ALU</strong>_1(result, sum, Cout, Cin, a, b, less, m);output result, sum, Cout;input Cin, a, b, less;input [2:0] m;// implementation details are left to the studentendmodule2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!