URL
https://opencores.org/ocsvn/8bit_vedic_multiplier/8bit_vedic_multiplier/trunk
Subversion Repositories 8bit_vedic_multiplier
[/] [8bit_vedic_multiplier/] [trunk/] [rtl/] [vedic2x2.v] - Rev 2
Compare with Previous | Blame | View Log
module vedic2x2(input [1:0] a,b, output [3:0] prod); wire a1b1 = a[1] & b[1]; wire a0b1 = a[0] & b[1]; wire a1b0 = a[1] & b[0]; wire a0b0 = a[0] & b[0]; wire carry; assign prod[0] = a0b0; half_adder HA0(a0b1,a1b0,prod[1],carry); half_adder HA1(a1b1,carry,prod[2],prod[3]); endmodule