APB UVM Agent
0.0.1
src
apb_agent
apb_if.sv
Go to the documentation of this file.
1
/**
2
* APB bus interface with very simple property checking.
3
*/
4
interface
apb_if
(
5
//! bus clock
6
input PCLK,
7
//! bus reset, active low
8
input PRESETn
9
);
10
11
//! bus address
12
logic[31:0] PADDR;
13
//! bus read data
14
logic[31:0] PRDATA;
15
//! bus write data
16
logic[31:0] PWDATA;
17
//! Slave select lines, active high.
18
//! Only connect the ones that are needed.
19
logic[15:0] PSEL;
20
//! @todo missing description
21
logic PENABLE;
22
//! read/write control
23
logic PWRITE;
24
//! slave ready
25
logic PREADY;
26
27
property
psel_valid;
28
@(posedge PCLK)
29
!$isunknown(PSEL);
30
endproperty: psel_valid
31
32
CHK_PSEL: assert property(psel_valid);
33
34
COVER_PSEL: cover property(psel_valid);
35
36
endinterface:
apb_if
apb_if
interface apb_if(input PCLK, input PRESETn)
APB bus interface with very simple property checking.
Definition:
apb_if.sv:4