1
1
/* ****************************************************************************
2
2
SPDX-License-Identifier: CERN-OHL-W-2.0
3
3
4
- Description: mor1kx formal multiclock pfpu32 addsub checker
4
+ Description: mor1kx formal multiclock pfpu32 operation checker
5
5
6
- Checks that an pfpu32 addsub operation finishes within a number of clock
7
- cycles. The completion of the operation is signaled by asserting add_rdy_i .
6
+ Checks that an pfpu32 operation finishes within a number of clock cycles.
7
+ The completion of the operation is signaled by asserting result_rdy_i .
8
8
9
9
***************************************************************************** */
10
10
11
- module f_multiclock_pfpu32_addsub
11
+ module f_multiclock_pfpu32_op
12
12
#(
13
13
parameter OP_MAX_CLOCKS = 3
14
14
) (
15
15
input clk,
16
16
input flush_i,
17
17
input adv_i,
18
- input add_rdy_i ,
18
+ input result_rdy_i ,
19
19
input start_i,
20
20
input f_initialized,
21
21
);
@@ -25,18 +25,18 @@ module f_multiclock_pfpu32_addsub
25
25
initial f_op_count = 0 ;
26
26
initial f_op = 0 ;
27
27
28
- // Valid addsub output is seen after three clocks .
28
+ // Valid output is seen after OP_MAX_CLOCKS cycles .
29
29
always @(posedge clk) begin
30
30
if (f_initialized) begin
31
31
if (flush_i)
32
32
// The pipeline is being flushed. The results of any operations in
33
33
// flight will not be reported. Stop counting.
34
34
f_op <= 0 ;
35
- else if ($rose( adv_i & start_i) ) begin
35
+ else if (adv_i & start_i) begin
36
36
// A new operation is starting. Start/reset the counter.
37
37
f_op <= 1 ;
38
38
f_op_count <= 1 ;
39
- end else if (add_rdy_i )
39
+ end else if (result_rdy_i )
40
40
// Result is ready. Stop counting.
41
41
f_op <= 0 ;
42
42
else if (f_op) begin
0 commit comments