Subversion Repositories programming

Rev

Rev 197 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 197 Rev 203
Line 163... Line 163...
163
 
163
 
164
    /* ADD, OP=10 */
164
    /* ADD, OP=10 */
165
    /* SUB, OP=11 */
165
    /* SUB, OP=11 */
166
    NOT_1 not1 (b, w_binv);
166
    NOT_1 not1 (b, w_binv);
167
    Mux2 m_binv (b, w_binv, op[1], w_adder_b);
167
    Mux2 m_binv (b, w_binv, op[1], w_adder_b);
168
    
168
 
169
    OneBitAdder add (cin, a, w_adder_b, cout, w_add_out);
169
    OneBitAdder add (cin, a, w_adder_b, cout, w_add_out);
170
    
170
 
171
    /* MUX the output together */
171
    /* MUX the output together */
172
    Mux4 resMux (w_and, w_or, w_add_out, w_add_out, op, result);
172
    Mux4 resMux (w_and, w_or, w_add_out, w_add_out, op, result);
173
 
173
 
174
endmodule
174
endmodule
175
 
175