vi_lerp_booth.v
1.17 KB
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
////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module: vi_lerp_booth
// description: Pseudo-Booth encoder for lerp for video interface.
//
// designer: Phil Gossett
// date: 10/23/94
//
////////////////////////////////////////////////////////////////////////
// $Id: vi_lerp_booth.v,v 1.1.1.1 2002/05/17 06:07:49 blythe Exp $
module vi_lerp_booth (x, y, a, p0p, p1p, p2p, p3p, p4p, p5p, p6p, p7p);
input [7:0] x;
input [7:0] y;
input [4:0] a;
output [5:0] p0p; // pseudo-booth encoded partial products
output [5:0] p1p;
output [5:0] p2p;
output [5:0] p3p;
output [5:0] p4p;
output [5:0] p5p;
output [5:0] p6p;
output [5:0] p7p;
vi_lerp_booth0 booth0 (.x(x[0]), .y(y[0]), .a(a), .p(p0p));
vi_lerp_booth0 booth1 (.x(x[1]), .y(y[1]), .a(a), .p(p1p));
vi_lerp_booth0 booth2 (.x(x[2]), .y(y[2]), .a(a), .p(p2p));
vi_lerp_booth0 booth3 (.x(x[3]), .y(y[3]), .a(a), .p(p3p));
vi_lerp_booth0 booth4 (.x(x[4]), .y(y[4]), .a(a), .p(p4p));
vi_lerp_booth0 booth5 (.x(x[5]), .y(y[5]), .a(a), .p(p5p));
vi_lerp_booth0 booth6 (.x(x[6]), .y(y[6]), .a(a), .p(p6p));
vi_lerp_booth7 booth7 (.x(x[7]), .y(y[7]), .a(a), .p(p7p));
endmodule // vi_lerp_booth