6 Register Configuration

The CPRI master module and CPRI slave IP are connected to the Mi-V processor using an AHB interface. The base address of CPRI master is 0x60070000 and the base address of CPRI slave IP is 0x60060000.

Tip: It is recommended to follow the register configuration order as described in the following table.

The following table lists the register configuration and these registers are configured in the SoftConsole project: mpf_an4949_v2022p3_df\SoftConsole\CPRI_config\main.c.

Table 6-1. Register Configuration
Offset ValueDescription
0x040x1FTX Interface Sequence Number Register

Line Rate 5: TX_SEQ_NUM: 0x1f

0x080x1FRX Interface Sequence Number Register

Line Rate 5: RX_SEQ_NUM: 0x1f

0x0C0xBCTX Framer K character Register

TX_Z_0_0_SYNC: 0xBC which is K28.5 character

0x100xBCRX Framer K character Register

RX_Z_0_0_SYNC: 0xBC which is K28.5 character

0x140x50TX Framer D character Register

TX_Z_0_1_SYNC: 0x50 which is D16.2 character

0x180x50RX Framer D character Register

RX_Z_0_1_SYNC: 0x50 which is D16.2 character

0x1C0x50TX Framer D character Register

TX_Z_0_Y_SYNC: 0x50 which is D16.2 character

0x200x50RX Framer D character Register

RX_Z_0_Y_SYNC: 0x50 which is D16.2 character

0x2C0x14TX Fast Ethernet pointer register

TX_Z_194_0: 0x14

The Fast Ethernet data to be written from this location.

0x240x01TX Protocol Version Register

TX_Z_2_0_SYNC: 0x01

The current version of the IP supports only protocol version 1.

0x300x14RX Fast Ethernet pointer register

RX_Z_194_0: 0x14

The Fast Ethernet data to be written from this location.

0x1000xF4240Start Timer Register

Time out value for L1 Sync state machine

0x1040x1FFFHFN Sync Counter Register

Line 5: HFN_COUNT: 1FFF

This value indicates the duration of one CPRI Hyperframe for the selected Line rate.

0x000xFCPRI Control Register

Enables IQ mapper, demapper, and L1 sync state machine and CPRI IP functionality.