-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvedic_mult_2bit.v
More file actions
41 lines (32 loc) · 757 Bytes
/
Copy pathvedic_mult_2bit.v
File metadata and controls
41 lines (32 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 07.02.2024 23:15:01
// Design Name:
// Module Name: vedic_mult_2bit
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module vedic_mult_2bit(a,b,out);
input [1:0]a,b;
output [3:0]out;
wire w1,w2,w3;
wire c1;
assign out[0] = a[0] & b[0];
assign w1 = a[1] & b[0];
assign w2 = a[0] & b[1];
assign w3 = a[1] & b[1];
half_adder h1(w1,w2,out[1],c1);
half_adder h2(c1,w3,out[2],out[3]);
endmodule