2.2.2 Constructors, copying, and addressing

The default constructors must set the AMBA-PV extension attributes to their default values.

The constructor amba_pv_extension(size_t, const amba_pv_control *) must set the burst size attribute value to the value passed as argument, and must set the attributes values of the amba_pv_control base class to the values of the attributes of the amba_pv_control object whose address is passed as argument, if not NULL.

The constructor amba_pv_extension(size_t, size_t, const amba_pv_control *, amba_pv_burst_t) must set the burst size attribute value to the value passed as argument, must set the burst length attribute value to the value passed as argument, must set the burst type attribute value to the value passed as argument, and must set the attribute values of the amba_pv_control base class to the values of the attributes of the amba_pv_control object whose address is passed as argument, if not NULL

The virtual method clone() must create a copy of the AMBA-PV extension object, including all its attributes.

The virtual method copy_from() must modify the current AMBA-PV extension object by copying the attributes of another AMBA-PV extension object.

The global function amba_pv_address() must compute the address of a transfer or beat within a burst given the transaction address, burst length, burst size, burst type, and beat number.

Non-ConfidentialPDF file icon PDF version100962_0200_03_en
Copyright © 2014–2018 Arm Limited (or its affiliates). All rights reserved.