-
Notifications
You must be signed in to change notification settings - Fork 0
/
avm_master3.psl
41 lines (30 loc) · 1.49 KB
/
avm_master3.psl
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
vunit i_avm_master3(avm_master3(synthesis))
{
-- set all declarations to run on clk_i
default clock is rising_edge(clk_i);
-----------------------------
-- ASSERTIONS ABOUT OUTPUTS
-----------------------------
-- Master must not assert both write and read.
f_master_not_double: assert always {not rst_i} |-> not (m_avm_write_o and m_avm_read_o);
-- Master must only issue 1-word burst
f_master_no_burst : assert always {(m_avm_write_o or m_avm_read_o) and not rst_i}
|-> {m_avm_burstcount_o = 1};
-- Master must be empty after reset
f_master_after_reset_empty : assert always {rst_i} |=> not (m_avm_write_o or m_avm_read_o);
-- Master request must be stable until accepted
f_master_stable : assert always {(m_avm_write_o or m_avm_read_o) and
m_avm_waitrequest_i and
not rst_i}
|=> {stable(m_avm_write_o) and
stable(m_avm_read_o) and
stable(m_avm_address_o) and
stable(m_avm_writedata_o) and
stable(m_avm_byteenable_o) and
stable(m_avm_burstcount_o)};
-----------------------------
-- ASSUMPTIONS ABOUT INPUTS
-----------------------------
-- There may be reset at startup.
f_reset : assume {rst_i};
} -- vunit i_avm_pipe(avm_pipe(synthesis))