Methods of shr_apb_bfm_u
Method | When | Description |
drive_enable_phase(t: shr_apb_trans_s) | BRIDGE | This method drives the Data Phase of a transfer |
drive_setup_phase(t: shr_apb_trans_s) | BRIDGE | This method drives the Address Phase of a transfer |
drive_transfer(t: shr_apb_trans_s) | BRIDGE | This method drives all phases of a transfer |
get_selnum(ad: shr_apb_address_t): uint(bits: 4) | BRIDGE | |
check_input(in: shr_apb_data_t) | SLAVE | For dut slaves checking |
check_output(in: shr_apb_data_t, out: shr_apb_data_t) | SLAVE | |
get_data() | SLAVE | extend those 2 functions if you want to proceed a special behaviour of the slave |
listen_and_respond() | SLAVE | |
put_data() | SLAVE | |
Events of shr_apb_env_u
Event | Description |
clock_fall | This event is the falling edge of the bus clock, qualified by reset. |
clock_rise | This event is the rising edge of the bus clock, qualified by reset. |
reset_change | This event gets emitted each time the reset signal changes state. Note that, depending on how reset is generated, it is possible that this event will be emitted at time zero. |
reset_end | This event gets emitted when reset is de-asserted. |
reset_start | This event gets emitted when reset is asserted. |
unqualified_clock_fall | This event is the falling edge of the bus clock, unqualified by reset. |
unqualified_clock_rise | This event is the rising edge of the bus clock, unqualified by reset. |
Types | Description |
shr_apb_address_t : uint(bits: 32) | |
shr_apb_agent_kind_t: [BRIDGE, SLAVE] | |
shr_apb_agent_name_t: [MONITOR, BRIDGE_0, SLAVE_0, SLAVE_1, SLAVE_2] | |
shr_apb_bus_name_t: [APB] | |
shr_apb_data_t : uint(bits:32) | |
shr_apb_direction_t: [READ, WRITE] | |
shr_apb_phase_t: [IDLE, SETUP, ENABLE] | no trans currently going |
shr_apb_slave_id_t: [UNDEFINED, S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, S13, S14, S15] | slave identifier |