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
41
42
43
44
45
46
47
48
49
|
`include "gfx/gfx_defs.sv"
module gfx_fixed_fma_dot
(
input logic clk,
input fixed a0,
b0,
a1,
b1,
c,
input logic stall,
output fixed q
);
fixed q0, a1_hold, b1_hold;
gfx_fixed_fma fma0
(
.a(a0),
.b(b0),
.q(q0),
.*
);
gfx_pipes #(.WIDTH($bits(fixed)), .DEPTH(`FIXED_FMA_STAGES)) a_pipes
(
.in(a1),
.out(a1_hold),
.*
);
gfx_pipes #(.WIDTH($bits(fixed)), .DEPTH(`FIXED_FMA_STAGES)) b_pipes
(
.in(b1),
.out(b1_hold),
.*
);
gfx_fixed_fma fma1
(
.a(a1_hold),
.b(b1_hold),
.c(q0),
.*
);
endmodule
|