How to know the delay of Mult_add ?

Status
Not open for further replies.

happsky

Advanced Member level 4
Joined
Jun 6, 2011
Messages
101
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
1,932

Code Verilog - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
MULT_ADD U_MULT_ADD(    
    .clock0(clk),
    .dataa_0(Ch_reverse[15:0]),
    .dataa_1(Ch_forward[15:0]),
    .datab_0(K_reverse[7:0]),
    .datab_1(K_forward[7:0]),
    .ena0(GATE),
    .result(sub_result[24:0])
    );
 
 
reg [4:0] delay_GATE;
 
always @(posedge clk)   //Four clock of delay, How to know MULT_ADD'delay is 4 clock ?
  delay_GATE[4:0]<={delay_GATE[3:0],GATE};
 
wire ageb;
sign_comp U_sign_comp(  
.clken(delay_GATE[3]),
.clock(clk),
.dataa({5'd0,SP_P[15:0],4'b0000}),
.datab(sub_result[24:0]),
.ageb(ageb)
);




Could anyone tell my that why the delay of Mutl_ADD is 4 clock. thank you very much!
 

This will be to allow a single click for each of the multiplication and add stages. The pipeline length is usually a parameter on the block.
 

sorry ,I can't find it.
 

Diagram shows a delay of 3 clocks, as you have 3 reg in the pipeline.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…