24. Programmable logic array (PLAY)

24.1 PLAY introduction

The programmable logic array allows the user to create custom logic and state machines without the need for external programmable logic devices, such as FPGAs. The PLAY provides a number of programmable logic elements, in the form of look-up tables (LUTs), each of which have four inputs and one output. The output can be programmed to be any logical function of the four inputs. More complex functions can be created by cascading logic elements.

Inputs to and outputs from the logic array can be selected from a choice of external I/Os, internal signals or software programmable register bits. External inputs can be synchronized to the internal clock and filtered to remove short pulses, or connected directly to the logic array if purely combinatorial or asynchronous functions are required.

Each logic element output can be registered using the internal clock, or another signal. Registered outputs can be fed back to the logic array inputs to create finite state machines. Transitions on the outputs can set flags, which can generate interrupts to the processor. The state of the flags can be read and reset by software. The raw states of the logic element outputs can also be read by software or by an external debugger. This provides visibility of the logic array state to simplify debugging of the programmed logic functions.

The array is configured via memory-mapped registers. Configuration is simple and intuitive. Configuration registers are protected against accidental programming by a lock bit. The configuration is maintained in case of a warm system reset.

24.2 PLAY main features

24.3 PLAY functional description

These are shown in Figure 135.

24.3.1 PLAY block diagram

Figure 135. PLAY block diagram

Figure 135. PLAY block diagram. This block diagram illustrates the internal architecture of the PLAY (Programmable Logic Array) block. Inputs on the left include play_clk, PLAY_IN[15:0], play_in0_[7:1] to play_in15_[7:1], APB, play_rstn, and play_app_rstn. Internal components include a Sync & Filter block, Reg, Config, Input interconnect, Logic elements with LUTs inside a Logic array, Output interconnect, and Flags logic. Outputs on the right are play_out[15:0], PLAY_OUT[15:0], and play_irq. Reference identifier MSv74232V2 is at bottom right.
Figure 135. PLAY block diagram. This block diagram illustrates the internal architecture of the PLAY (Programmable Logic Array) block. Inputs on the left include play_clk, PLAY_IN[15:0], play_in0_[7:1] to play_in15_[7:1], APB, play_rstn, and play_app_rstn. Internal components include a Sync & Filter block, Reg, Config, Input interconnect, Logic elements with LUTs inside a Logic array, Output interconnect, and Flags logic. Outputs on the right are play_out[15:0], PLAY_OUT[15:0], and play_irq. Reference identifier MSv74232V2 is at bottom right.

24.3.2 PLAY pins and internal signals

Table 193. PLAY pins

Pin namePin typeDescription
PLAY_IN[15:0]Digital inputsExternal inputs to the PLAY
PLAY_OUT[15:0]Digital outputsExternal outputs from the PLAY

Table 194. PLAY internal signals

Signal nameSignal typeDescription
play_in[15:0]_[7:1]Digital inputsPLAY internal inputs
play_out[15:0]Digital outputsPLAY internal outputs
play_clkClock inputPLAY clock from RCC
pclkClock inputAPB bus clock
play_irqInterrupt requestGlobal interrupt
play_rstnReset inputGlobal reset (includes config)
play_app_rstnReset inputApplication reset (excludes config)
play_priv0, play_priv1Digital outputsPrivilege attribute indicators

Table 195 lists the signals connected to the PLAY inputs. Up to 16 inputs can be selected for connection to the logic array, one from each row. See Section 24.3.4: Input selection for details.

Table 195. PLAY logic array inputn signal selection
input nPLAY_FILTnCFG.PREMUXSEL[2:0]
01234567
0play_in0_0play_in0_1play_in0_2play_in0_3play_in0_4play_in0_5play_in0_6play_in0_7
PLAY_IN0tim2_trgotim3_trgoSPI1_MOSIEVENTOUTadc1_awd2lptim2_ch2lptim1_ch2
1play_in1_0play_in1_1play_in1_2play_in1_3play_in1_4play_in1_5play_in1_6play_in1_7
PLAY_IN1tim2_oc3tim3_oc3SPI1_SCLKSPI2_NSSUSART1_TXcomp2_outcomp1_out
2play_in2_0play_in2_1play_in2_2play_in2_3play_in2_4play_in2_5play_in2_6play_in2_7
PLAY_IN2tim2_oc4tim3_oc4tim2_trgoSPI2_MOSIUSART1_CKrcc_mco2rcc_mco1
3play_in3_0play_in3_1play_in3_2play_in3_3play_in3_4play_in3_5play_in3_6play_in3_7
PLAY_IN3lptim1_ch1lptim2_ch1tim2_oc3SPI2_SCLKNMIadc2_awd1adc1_awd1
4play_in4_0play_in4_1play_in4_2play_in4_3play_in4_4play_in4_5play_in4_6play_in4_7
PLAY_IN4lptim1_ch2lptim2_ch2tim2_oc4tim3_trgoLOCKUPadc2_awd2adc1_awd2
5play_in5_0play_in5_1play_in5_2play_in5_3play_in5_4play_in5_5play_in5_6play_in5_7
PLAY_IN5comp1_outcomp2_outlptim1_ch1tim3_oc3SPI1_NSSUSART2_TXUSART1_TX
6play_in6_0play_in6_1play_in6_2play_in6_3play_in6_4play_in6_5play_in6_6play_in6_7
PLAY_IN6rcc_mco1rcc_mco2lptim1_ch2tim3_oc4SPI1_MOSIUSART2_CKUSART1_CK
7play_in7_0play_in7_1play_in7_2play_in7_3play_in7_4play_in7_5play_in7_6play_in7_7
PLAY_IN7adc1_awd1adc2_awd1comp1_outlptim2_ch1SPI1_SCLK0NMI
8play_in8_0play_in8_1play_in8_2play_in8_3play_in8_4play_in8_5play_in8_6play_in8_7
PLAY_IN8adc1_awd2adc2_awd2rcc_mco1lptim2_ch2tim2_trgoEVENTOUTLOCKUP
9play_in9_0play_in9_1play_in9_2play_in9_3play_in9_4play_in9_5play_in9_6play_in9_7
PLAY_IN9USART1_TXUSART2_TXadc1_awd1comp2_outtim2_oc3SPI2_NSSSPI1_NSS
10play_in10_0play_in10_1play_in10_2play_in10_3play_in10_4play_in10_5play_in10_6play_in10_7
PLAY_IN10USART1_CKUSART2_CKadc1_awd2rcc_mco2tim2_oc4SPI2_MOSISPI1_MOSI
11play_in11_0play_in11_1play_in11_2play_in11_3play_in11_4play_in11_5play_in11_6play_in11_7
PLAY_IN11NMI0USART1_TXadc2_awd1lptim1_ch1SPI2_SCLKSPI1_SCLK
12play_in12_0play_in12_1play_in12_2play_in12_3play_in12_4play_in12_5play_in12_6play_in12_7
PLAY_IN12LOCKUPEVENTOUTUSART1_CKadc2_awd2lptim1_ch2tim3_trgotim2_trgo
13play_in13_0play_in13_1play_in13_2play_in13_3play_in13_4play_in13_5play_in13_6play_in13_7
PLAY_IN13SPI1_NSSSPI2_NSSNMIUSART2_TXcomp1_outtim3_oc3tim2_oc3
14play_in14_0play_in14_1play_in14_2play_in14_3play_in14_4play_in14_5play_in14_6play_in14_7
PLAY_IN14SPI1_MOSISPI2_MOSILOCKUPUSART2_CKrcc_mco1tim3_oc4tim2_oc4
15play_in15_0play_in15_1play_in15_2play_in15_3play_in15_4play_in15_5play_in15_6play_in15_7
PLAY_IN15SPI1_SCLKSPI2_SCLKSPI1_NSS0adc1_awd1lptim2_ch1lptim1_ch1

Table 196. PLAY output connections

Signal nameExternal pinsInternal signals
play_out0PLAY_OUT0TIM2_etr16
TIM3_etr16
lptim1_ext_trig7
lptim2_ext_trig7
play_out1PLAY_OUT1TIM1_brk[3]
TIM8_brk[3]
play_out2PLAY_OUT2TIM1_brk2[3]
TIM8_brk2[3]
play_out3PLAY_OUT3TIM2_ti1_4
TIM3_ti1_4
lptim1_in1_mux2
lptim2_in1_mux2
play_out4PLAY_OUT4TIM2_ti2_3
TIM3_ti2_3
lptim1_in2_mux2
lptim2_in2_mux2
play_out5PLAY_OUT5TIM2_ti3_1
TIM3_ti3_1
lptim1_ic1_mux3
lptim2_ic1_mux3
play_out6PLAY_OUT6TIM2_ti4_1
TIM3_ti4_1
play_out7PLAY_OUT7adc1_ext_trg20
adc2_ext_trg20
adc3_ext_trg20
play_out8PLAY_OUT8-
play_out9PLAY_OUT9adc1_jext_trg20
adc2_jext_trg20
adc3_jext_trg20
play_out10PLAY_OUT10-
play_out11PLAY_OUT11dac_trg14
play_out12PLAY_OUT12dac_trg15
play_out13PLAY_OUT13dts_ts1_trg4
play_out14PLAY_OUT14EXTI_event_64
play_out15PLAY_OUT15GPDMA_trig_72

24.3.3 PLAY reset and clocks

The PLAY has two reset inputs:

The PLAY configuration registers are reset by:

All other registers, including the PLAY logic element output registers, are reset by:

The PLAY configuration and control registers are clocked by:

The synchronisation and filters are clocked by:

The PLAY logic element output registers are clocked by:

24.3.4 Input selection

There are 16 inputs to the logic array, in0 to in15, which can be connected to external I/Os or internal signals coming from other functional units.

Each logic array input can connect to one of eight signals. A pre-multiplexer selects which signal is connected to an input. The pre-multiplexer for logic array input n is configured by the PLAY_FILTnCFG.PREMUXSEL[2:0] register field (see Figure 136). Only one signal can be chosen per input.

Figure 136. Input multiplexing

Diagram illustrating input multiplexing for the PLAY logic array. It shows two examples: PLAY_IN0 and PLAY_IN15. For each, a pre-multiplexer (represented by a triangle) selects one of eight signals (play_in0_0 to play_in0_7 for IN0, and play_in15_0 to play_in15_7 for IN15) based on the configuration register field (PLAY_FILT0CFG.PREMUXSEL[2:0] for IN0, and PLAY_FILT15CFG.PREMUXSEL[2:0] for IN15). The output of the multiplexer is the Logic array input in0 or in15 respectively.

The diagram shows the input multiplexing process for the PLAY logic array. It illustrates two specific inputs, PLAY_IN0 and PLAY_IN15, as examples. For each input, a pre-multiplexer (represented by a triangle) selects one of eight signals (play_in0_0 to play_in0_7 for IN0, and play_in15_0 to play_in15_7 for IN15) based on the configuration register field (PLAY_FILT0CFG.PREMUXSEL[2:0] for IN0, and PLAY_FILT15CFG.PREMUXSEL[2:0] for IN15). The output of the multiplexer is the Logic array input in0 or in15 respectively. The diagram is labeled MSv74237V2.

Diagram illustrating input multiplexing for the PLAY logic array. It shows two examples: PLAY_IN0 and PLAY_IN15. For each, a pre-multiplexer (represented by a triangle) selects one of eight signals (play_in0_0 to play_in0_7 for IN0, and play_in15_0 to play_in15_7 for IN15) based on the configuration register field (PLAY_FILT0CFG.PREMUXSEL[2:0] for IN0, and PLAY_FILT15CFG.PREMUXSEL[2:0] for IN15). The output of the multiplexer is the Logic array input in0 or in15 respectively.

The mapping of signals to logic array inputs is shown in Table 195. The left hand column contains the logic array input number. The columns to the right show the play_in signal name as well as the source signal to which it is connected, for each setting of PLAY_FILTnCFG.PREMUXSEL[2:0]. Some source signal names appear more than once in the table, which means they can be mapped to more than one input. This offers more flexibility when mapping source signals to logic array inputs.

24.3.5 Input filtering and edge detection

Inputs pass through a filter stage, which can be configured to remove short pulses or glitches and generate a pulse if an edge is detected (see Figure 137).

Figure 137. Input filter and edge detection

Block diagram of input filter and edge detection logic.

The diagram shows the signal flow for input filtering and edge detection. An 'Input' signal enters a 'Sync' block, followed by a 'Filter' block. The output of the 'Filter' is fed into a multiplexer (MUX) with select lines from PLAY_FILTCFGn.WIDTH[7:0]. The MUX output goes to an 'Edge detect' block. The output of 'Edge detect' is fed into another MUX with select lines from PLAY_FILTCFGn.EDGEDET[1:0]. The final output goes 'To input interconnect'. A reference code 'MSv74236V1' is located in the bottom right corner.

Block diagram of input filter and edge detection logic.

Filtering

Every input has a filter which removes pulses shorter than a programmable number of play_clk clock cycles (after synchronization). The filter samples the input at the play_clk clock frequency and starts a counter if it detects a change in state. If the input transitions again before the counter reaches zero, the counter is stopped and reloaded, and the filter output state remains unchanged. If the counter reaches zero, it is reloaded and the filter output state toggles.

The minimum pulse width for input n can be programmed from 1 to 255 cycles in register bits PLAY_FILTCFGn.WIDTH[7:0]. Note that the filter introduces a delay equal to the programmed minimum pulse width.

Figure 138 illustrates the operation of the filter for PLAY_FILTCFGn.WIDTH[7:0] = 3. Pulses whose width is less than three periods of play_clk (\(T_{play\_clk}\)) are filtered. Pulses whose width is three periods or more propagate through the filter, with a delay of three \(T_{play\_clk}\) periods.

Figure 138. Filter operation example

Timing diagram showing filter operation with play_clk, input before/after synchronization, and filter output.

The timing diagram illustrates the filter's behavior with PLAY_FILTCFGn.WIDTH[7:0] = 3. It shows four signals over time: play_clk, 'Input before synchronization', 'Input after synchronization', and 'Filter output'. \(T_{play\_clk}\) is the clock period. A 2-cycle wide pulse in the input is shown as 'pulse is filtered' (dashed box) in the output. A 4-cycle wide pulse in the input results in a 3-cycle wide pulse in the filter output, delayed by 3 cycles. A reference code 'MSv74235V1' is in the bottom right corner.

Timing diagram showing filter operation with play_clk, input before/after synchronization, and filter output.

The filter can be bypassed by setting PLAY_FILTCFGn.WIDTH[7:0] = 0.

Edge detection and pulse generation

For all inputs there is an optional edge detection feature which detects a transition and generates a positive pulse of one play_clk clock period. This can be used to detect and lengthen pulses which are shorter than the play_clk clock period, or to trigger actions on an edge rather than a level. The edge detection feature is enabled for input n by programming the PLAY_FILTCFGn.EDGEDET[1:0] field with direction of the transition (rising, falling or both edges). Setting the field to 0 disables and bypasses the edge detection.

If the filter is enabled (PLAY_FILTCFGn.WIDTH[7:0] > 0), the edge detector generates a pulse when an edge is detected at the output of the filter (see Figure 139). Note that if both rising and falling edges are programmed, back-to-back transitions on successive clocks generate a double length pulse.

Figure 139. Edge detector operation (rising and falling edge) with filter enabled

Timing diagram for Figure 139 showing edge detector operation with filter enabled. It displays three signals: play_clk, Filter output, and Edge detector output. The play_clk is a periodic square wave. The Filter output shows a delayed version of the input signal's edges. The Edge detector output shows positive pulses synchronized to the play_clk clock edges, triggered by transitions in the Filter output. The configuration is PLAY_FILTCFGn.EDGEDET[1:0] = 3. A time period T_play_clk is indicated between clock edges.

MSv74233V1

Timing diagram for Figure 139 showing edge detector operation with filter enabled. It displays three signals: play_clk, Filter output, and Edge detector output. The play_clk is a periodic square wave. The Filter output shows a delayed version of the input signal's edges. The Edge detector output shows positive pulses synchronized to the play_clk clock edges, triggered by transitions in the Filter output. The configuration is PLAY_FILTCFGn.EDGEDET[1:0] = 3. A time period T_play_clk is indicated between clock edges.

To lengthen a pulse shorter than one play_clk period, the filter must be bypassed. This is done by setting PLAY_FILTCFGn.WIDTH[7:0] = 0. The synchronization is done by the edge detection unit. When an edge is detected on the input signal, a positive pulse is generated after a delay of between one and two play_clk periods (see Figure 140).

Figure 140. Edge detector operation (rising and falling edge) with filter bypassed

Timing diagram for Figure 140 showing edge detector operation with filter bypassed. It displays three signals: play_clk, Input, and Edge detector output. The play_clk is a periodic square wave. The Input signal shows several transitions. The Edge detector output shows positive pulses synchronized to the play_clk clock edges, triggered directly by transitions in the Input signal. The configuration is PLAY_FILTCFGn.EDGEDET[1:0] = 3. A time period T_play_clk is indicated between clock edges.

MSv74234V1

Timing diagram for Figure 140 showing edge detector operation with filter bypassed. It displays three signals: play_clk, Input, and Edge detector output. The play_clk is a periodic square wave. The Input signal shows several transitions. The Edge detector output shows positive pulses synchronized to the play_clk clock edges, triggered directly by transitions in the Input signal. The configuration is PLAY_FILTCFGn.EDGEDET[1:0] = 3. A time period T_play_clk is indicated between clock edges.

If both rising and falling edges are programmed, and the input pulse width is less than one play_clk period, only one output pulse is generated. Note however that if two transitions occur either side of a clock edge, a double length pulse is generated.

Synchronization

All input signals are considered to be asynchronous to the play_clk clock. If any synchronous logic is connected downstream, it is mandatory to synchronize the inputs to

the play_clk clock, to avoid meta-stability. Synchronization introduces a delay of 1 to 2 play_clk periods.

Synchronization is performed by enabling the filter or the edge detector. If both the filter and edge detector are bypassed (PLAY_FILTnCFG.WIDTH[7:0] = 0 and PLAY_FILTnCFG.EDGEDET[1:0] = 0), the input signal is propagated directly to the logic array without synchronization.

Caution: If both edge detector and filter are bypassed, the input must only be used to drive purely combinatorial logic.

24.3.6 Software programmable inputs

The PLAY_SWIN register contains 16 bits which are connected to inputs swin0 to swin15. This allows software programmable functionality to be included in the logic expression. This can be used for example to enable or disable functionality, or to trigger state transitions, by software. These inputs also allow testing of the programmed logic array functionality.

The PLAY_SWIN register bits can be set independently by writing a 1 to the corresponding bits in the PLAY_SWIN_SET register. In the same way they can be reset by writing a 1 to the corresponding bits in the PLAY_SWIN_CLR register. It is also possible to read and write the bits directly in the PLAY_SWIN register.

Every time there is a write to the PLAY_SWIN, PLAY_SWIN_SET or PLAY_SWIN_CLR register, a positive pulse is generated on the swin_we signal. The pulse lasts one play_clk cycle, starting from the moment the register value is updated (see Figure 141). The swin_we signal is connected to the input interconnect and can be used as a clock enable for any of the logic element output registers. This means that writing to the PLAY_SWIN register can trigger a state transition conditioned by the new values on swin0 to swin15, for example.

Figure 141. swin_we pulse timing

Timing diagram showing play_clk, swin[15:0] (with segments mmmm and nnnn), and swin_we signals. The swin_we signal shows a positive pulse that starts at the rising edge of play_clk and ends at the next rising edge of play_clk. The swin[15:0] signal changes from 'mmmm' to 'nnnn' during this pulse.

The figure is a timing diagram enclosed in a rectangular box. It contains three horizontal signal traces. The top trace is labeled 'play_clk' and shows a periodic square wave. The middle trace is labeled 'swin[15:0]' and shows a signal that is divided into two segments by a vertical line: the first segment is labeled 'mmmm' and the second is labeled 'nnnn'. The bottom trace is labeled 'swin_we' and shows a single positive pulse. This pulse begins at the rising edge of the first 'play_clk' cycle and ends at the rising edge of the second 'play_clk' cycle. The transition from 'mmmm' to 'nnnn' on the 'swin[15:0]' signal occurs exactly at the rising edge of the second 'play_clk' cycle, which is also the rising edge where the 'swin_we' pulse ends. In the bottom right corner of the box, the text 'MSv74251V1' is printed.

Timing diagram showing play_clk, swin[15:0] (with segments mmmm and nnnn), and swin_we signals. The swin_we signal shows a positive pulse that starts at the rising edge of play_clk and ends at the next rising edge of play_clk. The swin[15:0] signal changes from 'mmmm' to 'nnnn' during this pulse.

24.3.7 Logic elements

The logic array provides 16 logic elements (LEs), each containing a 4-input, single output look-up table (LUT) and a register (Figure 142).

Figure 142. Logic element

Diagram of a Logic Element (LE) showing a 16-entry Look-Up Table (LUT) with inputs lein[3:0] and outputs leoutd (direct) and leoutr (registered). A clock enable signal (play_clk) controls the registered output.

The diagram illustrates a Logic Element (LE) structure. It features a Look-Up Table (LUT) with 16 entries, labeled d[0] through d[15]. Four inputs, lein[3:0], are fed into the LUT. The LUT produces a direct output, leoutd. This output is also connected to a multiplexer (represented by a triangle symbol) that selects between the direct output and a registered output, leoutr. The selection is controlled by a clock enable signal, play_clk, which is ANDed with another signal before being fed into the multiplexer. The diagram is labeled MSv74239V1 in the bottom right corner.

Diagram of a Logic Element (LE) showing a 16-entry Look-Up Table (LUT) with inputs lein[3:0] and outputs leoutd (direct) and leoutr (registered). A clock enable signal (play_clk) controls the registered output.

Look-up table (LUT)

The LUT is a 16 x 1-bit memory which generates a single output, leoutd, whose value is a function of the four LUT inputs, lein[3:0] which make up the address. The LUT is programmed at configuration time with the required state of the output for every possible combination of lein[3:0].

To implement a Boolean logic expression, the full truth table for the expression must be detailed.

This is demonstrated using the following logic expression as an example:

\[\text{leoutd} = \text{lein}[0] \text{ AND } \text{lein}[1] \text{ OR } \text{lein}[2] \text{ AND } \text{lein}[3]\]

This expression corresponds to the diagram in Figure 143.

Figure 143. Example logic expression 1

Logic diagram for Example logic expression 1, showing two AND gates and one OR gate.

The diagram shows the implementation of the logic expression \(\text{leoutd} = \text{lein}[0] \text{ AND } \text{lein}[1] \text{ OR } \text{lein}[2] \text{ AND } \text{lein}[3]\). It consists of two AND gates. The first AND gate takes inputs lein[0] and lein[1]. The second AND gate takes inputs lein[2] and lein[3]. The outputs of these two AND gates are connected to the inputs of an OR gate. The output of the OR gate is leoutd. The diagram is labeled MSv74240V1 in the bottom right corner.

Logic diagram for Example logic expression 1, showing two AND gates and one OR gate.

The truth table is given in Table 197.

Table 197. Truth table example 1

Inputs - lein[3:0]Output - leoutd
00000
00010
00100
00111
01000

Table 197. Truth table example 1 (continued)

Inputs - lein[3:0]Output - leoutd
01010
01100
01111
10000
10010
10100
10111
11001
11011
11101
11111

The left hand column lists the address formed by the combination of the four LUT inputs, lein[3:0], and the right hand column lists the required output value on leoutd for each input combination.

During configuration, the LUT is programmed as a single 16-bit register, with the data read from the output column of the truth table, read from bottom (MSB) to top (LSB). In this example the LUT configuration register would be programmed with 1111 1000 1000 1000 (0xF888).

If any of the inputs are unused or “don’t care”, the output must be the same for both possible values of the unused input. In other words, the contents of address 0bxnnn must be the same for x = 0 or x = 1.

For example, in the following logic expression, lein[3] is unused:

\(leoutd = lein[0] \text{ AND } lein[1] \text{ OR } lein[2]\)

Figure 144. Example logic expression 2

Logic diagram for Figure 144. Example logic expression 2. It shows four inputs: lein[0], lein[1], lein[2], and lein[3]. lein[0] and lein[1] are connected to an AND gate. The output of the AND gate and lein[2] are connected to an OR gate. The output of the OR gate is leoutd. lein[3] is shown with a cross, indicating it is unused. The diagram is labeled MSv74241V1.
graph LR
    lein0[lein[0]] --- AND[AND]
    lein1[lein[1]] --- AND
    AND --- OR[OR]
    lein2[lein[2]] --- OR
    OR --- leoutd[leoutd]
    lein3[lein[3]] --- X((X))
  

MSv74241V1

Logic diagram for Figure 144. Example logic expression 2. It shows four inputs: lein[0], lein[1], lein[2], and lein[3]. lein[0] and lein[1] are connected to an AND gate. The output of the AND gate and lein[2] are connected to an OR gate. The output of the OR gate is leoutd. lein[3] is shown with a cross, indicating it is unused. The diagram is labeled MSv74241V1.

The truth table for this expression is shown in Table 198. To obtain the full LUT, each row containing an ‘x’ is split into two identical rows. Then the ‘x’ is replaced by ‘0’ and ‘1’ respectively.

In this example the configuration register is programmed with 1111 1000 1111 1000 (0xF8F8).

Table 198. Truth table example 2

lein[3:0]leoutd
x0000
x0010
x0100
x0111
x1001
x1011
x1101
x1111

Alternatively, the unused input can be connected to an unused input with value 0 (see Table 199), so that addresses with x = 1 are never accessed and can be left at 0.

The LUT configuration registers are directly mapped in the PLAY APB address space. The LUT configuration for logic element n is programmed in the register bit field PLAY_LEnCFG1.LUT[15:0].

LE output register

The LUT output can be direct or registered. Output registers are clocked by the play_clk, optionally qualified by a clock enable signal. When the clock enable signal is high, the register is updated with the LUT output every play_clk cycle. A clock enable must be high for at least one play_clk cycle. This constraint is guaranteed for input signals using edge detection or filtering (see Section 24.3.5: Input filtering and edge detection). It is also guaranteed for the synchronous feedback signals leoutr[15:0].

Caution: Asynchronous signals must not be selected as clock enables.

During configuration (when PLAY_CFGCR.UNLOCK = 1), the logic element registers are held in reset.

Logic element registers are also reset by play_rstn and play_app_rstn.

24.3.8 Input interconnect

The input interconnect selects which signals are connected to each logic element, as shown in Figure 145.

Figure 145. Input interconnect

Figure 145. Input interconnect block diagram illustrating the interconnect matrix for Logic Elements LE0 through LE15 with multiplexers configured by PLAY_LExCFG2.INm_SEL[5:0] signals, taking inputs from in[15:0], swin[15:0], and feedback signals leoutd and leoutr.
Figure 145. Input interconnect block diagram illustrating the interconnect matrix for Logic Elements LE0 through LE15 with multiplexers configured by PLAY_LExCFG2.INm_SEL[5:0] signals, taking inputs from in[15:0], swin[15:0], and feedback signals leoutd and leoutr.

MSv74243V1

LUT input selection

For each logic element, up to four input signals can be configured as LUT inputs, and one as a clock enable for the LE register. The LUT inputs can be selected from among the following signals:

Each logic element's direct output can be fed back to one of its inputs. This allows implementation of asynchronous latches.

It is also possible to connect the direct outputs of certain logic elements to the inputs of others - see Combining logic elements.

For logic element n (0 to 15), the signals connected to input m (0 to 3), are selected by configuration register PLAY_LEnCFG2, bit field INm_SEL[5:0].

The selection of the LUT input signals is summarized in Table 199.

For example, to connect input signal in15 to input 2 of logic element 0, program PLAY_LE0CFG2.IN2_SEL[5:0] = 47. To connect input 3 of logic element 1 to the direct output of logic element 0, leoutd0, program PLAY_LE1CFG2.IN3_SEL[5:0] = 0.

Table 199. Logic element n LUT input selection

PLAY_LEnCFG2.INm_SEL[5:0]Signal connected to LUT input mSource
0For n = 4,8,12: 0-
For n = 0,1,2,3,5,6,7,9,10,11,13,14,15: leoutd[0]LE 0 direct output
1For n = 0,4,5,8,9,12,13: 0-
For n = 1,2,3,6,7,10,11,14,15: leoutd[1]LE 1 direct output
2For n = 0,1,4,5,6,8,9,10,12,13,14: 0-
For n = 2,3,7,11,15: leoutd[2]LE 2 direct output
3For n = 0,1,2,4,5,6,7,8,9,10,11,12,13,14,15: 0-
For n = 3: leoutd[3]LE 3 direct output
4For n = 0,8,12: 0-
For n = 1,2,3,4,5,6,7,9,10,11,13,14,15: leoutd[4]LE 4 direct output
5For n = 0,1,4,8,9,12,13: 0-
For n = 2,3,5,6,7,10,11,14,15: leoutd[5]LE 5 direct output
6For n = 0,1,2,4,5,8,9,10,12,13,14: 0-
For n = 3,6,7,11,15: leoutd[6]LE 6 direct output
7For n = 0,1,2,3,4,5,6,8,9,10,11,12,13,14,15: '0'-
For n = 7: leoutd[7]LE 7 direct output
8For n = 0,4,12: 0-
For n = 1,2,3,5,6,7,8,9,10,11,13,14,15: leoutd[8]LE 8 direct output
9For n = 0,1,4,5,8,12,13: 0-
For n = 2,3,6,7,9,10,11,14,15: leoutd[9]LE 9 direct output
10For n = 0,1,2,4,5,6,8,9,12,13,14,15: 0-
For n = 3,7,10,11: leoutd[10]LE 10 direct output
11For n = 0,1,2,3,4,5,6,7,8,9,10,12,13,14,15: 0-
For n = 11: leoutd[11]LE 11 direct output
12For n = 0,4,8: 0-
For n = 1,2,3,5,6,7,9,10,11,12,13,14,15: leoutd[12]LE 12 direct output
13For n = 0,1,4,5,8,9,12: 0-
For n = 2,3,6,7,10,11,13,14,15: leoutd[13]LE 13 direct output

Table 199. Logic element n LUT input selection (continued)

PLAY_LEnCFG2.INm_SEL[5:0]Signal connected to LUT input mSource
14For n = 0,1,2,4,5,6,8,9,10,12,13: 0-
For n = 3,7,11,14,15: leoutd[14]LE 14 direct output
15For n = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14: 0-
For n = 15: leoutd[15]LE 15 direct output
16 to 31leoutr[0] to leoutr[15]LE registered outputs
32 to 47in0 to in15input signals
48 to 63swin0 to swin15PLAY_SWIN

LE clock enable selection

The LE register clock enable can be selected from any of these signals:

For logic element n the clock enable is selected by configuration register bits PLAY_LEnCFG2.CK_SEL[5:0].

The selection of the LE register clock is summarized in Table 200.

Table 200. Logic element n register clock selection

PLAY_LEnCFG2.CK_SEL[5:0]Clock enable signal(1)Source
00 (clock disabled)-
11 (always enabled)-
2swin_weAPB interface
3 to 15reserved-
16 to 31leoutr0 to leoutr15 (excluding leoutrn)LE registered outputs
32 to 47in0 to in15input signals
48 to 63swin0 to swin15PLAY_SWIN

1. Reserved values select 0

Combining logic elements

LE 0-3 form a group which can be cascaded combinatorially from left to right (see Figure 146):

The other groups of four (LE 4-7, LE 8-11, LE12-15) can be cascaded in the same way. Furthermore, logic elements from different groups can be connected together, provided the left to right logic flow is respected. For example, LE4 direct output can be connected to LE1 input, but not to LE0 input.

Figure 146. Logic element cascading

Diagram of logic element cascading showing LE0, LE1, LE2, and LE3 connected in a chain. LE0 has 4 inputs and outputs leoutr0 and leoutd0. LE1 has 3 inputs and outputs leoutr1 and leoutd1. LE2 has 2 inputs and outputs leoutr2 and leoutd2. LE3 has 1 input and outputs leoutr3 and leoutd3. The direct outputs of LE0, LE1, and LE2 are connected to the inputs of the subsequent elements in the chain.

MSv74238V1

Diagram of logic element cascading showing LE0, LE1, LE2, and LE3 connected in a chain. LE0 has 4 inputs and outputs leoutr0 and leoutd0. LE1 has 3 inputs and outputs leoutr1 and leoutd1. LE2 has 2 inputs and outputs leoutr2 and leoutd2. LE3 has 1 input and outputs leoutr3 and leoutd3. The direct outputs of LE0, LE1, and LE2 are connected to the inputs of the subsequent elements in the chain.

It is also possible to use one logic element to combine the outputs of up to three others, as shown in Figure 147. In this example, the direct outputs of LE0-2 are connected to the inputs of LE3. This allows up to 13 different inputs to be combined in a single logic expression.

Figure 147. Combining logic elements in parallel

Diagram of combining logic elements in parallel showing LE0, LE1, and LE2 feeding into LE3. LE0, LE1, and LE2 each have 4 inputs and outputs leoutr0/leoutd0, leoutr1/leoutd1, and leoutr2/leoutd2 respectively. The direct outputs of LE0, LE1, and LE2 are connected to the single input of LE3. LE3 has 1 input and outputs leoutr3 and leoutd3.

MSv74249V1

Diagram of combining logic elements in parallel showing LE0, LE1, and LE2 feeding into LE3. LE0, LE1, and LE2 each have 4 inputs and outputs leoutr0/leoutd0, leoutr1/leoutd1, and leoutr2/leoutd2 respectively. The direct outputs of LE0, LE1, and LE2 are connected to the single input of LE3. LE3 has 1 input and outputs leoutr3 and leoutd3.

Note that combining logic elements in this way requires the logic expression to be split into partial expressions, with up to four inputs each.

For example, consider the following expression:

\[Y = (X1 \text{ AND } X2) \text{ OR } (X3 \text{ AND } X4) \text{ OR } (X5 \text{ AND } X6).\]

This expression has six inputs (X1 to X6) and one output (Y). It therefore requires at least two logic elements, for example LE0 and LE1, as illustrated in Figure 148. The expression for Y can be split into two expressions:

Then LE0 is configured with expression 'a', and LE1 with expression 'b'. Inputs X1 to X4 are connected to LE0. Inputs X5 and X6, are connected to LE1, together with Y0, the direct output of LE0.

Figure 148. Splitting logic expressions between logic elements

Diagram showing the splitting of logic expressions between two logic elements (LE0 and LE1) and their internal Look-Up Tables (LUTs). LE0 takes inputs X1-X4 and produces Y0. LE1 takes inputs X5, X6, and Y0 to produce Y.

The diagram illustrates the internal structure of two logic elements, LE0 and LE1, and how they implement the splitting of a logic expression. At the top, LE0 is shown with inputs X1, X2, X3, and X4, producing output Y0. LE1 is shown with inputs X5, X6, and Y0, producing output Y. Below this, the internal structure of each logic element is detailed. LE0's Look-Up Table (LUT) contains two AND gates (one for X1 and X2, another for X3 and X4) whose outputs are combined by an OR gate to produce Y0. LE1's LUT contains one AND gate (for X5 and X6) and one OR gate. The OR gate takes Y0 and the output of the AND gate as inputs to produce Y. Dashed lines connect the LUTs to their respective LE blocks. The label 'MSv74250V1' is located in the bottom right corner of the diagram area.

Diagram showing the splitting of logic expressions between two logic elements (LE0 and LE1) and their internal Look-Up Tables (LUTs). LE0 takes inputs X1-X4 and produces Y0. LE1 takes inputs X5, X6, and Y0 to produce Y.

24.3.9 Output interconnect

The output interconnect selects which logic element or eFPGA outputs are connected to which PLAY outputs, as shown in Figure 149.

Figure 149. Output interconnect

Figure 149. Output interconnect diagram. The diagram shows two multiplexers selecting between logic element outputs (le_outd[15:0] and le_outtr[15:0]) and configuration register bits (PLAY_OUTnCFG.SEL[4:0]) to drive PLAY outputs (play_out0 to play_out15). The multiplexers are controlled by the configuration register bits. The outputs are also connected to flags.

The diagram illustrates the output interconnect logic. It shows two multiplexers. The first multiplexer selects between le_outd[15:0] and le_outtr[15:0] based on the configuration register bits PLAY_OUT0CFG.SEL[4:0] to drive play_out0. The second multiplexer selects between le_outd[15:0] and le_outtr[15:0] based on the configuration register bits PLAY_OUT15CFG.SEL[4:0] to drive play_out15. The outputs are also connected to flags. The diagram is labeled MSv74248V1.

Figure 149. Output interconnect diagram. The diagram shows two multiplexers selecting between logic element outputs (le_outd[15:0] and le_outtr[15:0]) and configuration register bits (PLAY_OUTnCFG.SEL[4:0]) to drive PLAY outputs (play_out0 to play_out15). The multiplexers are controlled by the configuration register bits. The outputs are also connected to flags.

The PLAY outputs include the following signals:

Each output can be connected to any one of the logic element outputs, registered or direct. The signal connected to output n is selected by configuration register bits PLAY_OUTnCFG.SEL[4:0].

The output selection is summarized in Table 201.

Table 201. Output n source selection

PLAY_OUTnCFG.SEL[4:0]Source
0leoutd0- LE0 direct output
1leoutd1- LE1 direct output
2leoutd2- LE2 direct output
3leoutd3- LE3 direct output
4leoutd4- LE4 direct output
5leoutd5- LE5 direct output
6leoutd6- LE6 direct output
7leoutd7- LE7 direct output
8leoutd8- LE8 direct output
9leoutd9- LE9 direct output
10leoutd10- LE10 direct output

Table 201. Output n source selection (continued)

PLAY_OUTnCFG.SEL[4:0]Source
11leoutd11 - LE11 direct output
12leoutd12 - LE12 direct output
13leoutd13 - LE13 direct output
14leoutd14 - LE14 direct output
15leoutd15 - LE15 direct output
16leoutr0 - LE0 register output
17leoutr1 - LE1 register output
18leoutr2 - LE2 register output
19leoutr3 - LE3 register output
20leoutr4 - LE4 register output
21leoutr5 - LE5 register output
22leoutr6 - LE6 register output
23leoutr7 - LE7 register output
24leoutr8 - LE8 register output
25leoutr9 - LE9 register output
26leoutr10 - LE10 register output
27leoutr11 - LE11 register output
28leoutr12 - LE12 register output
29leoutr13 - LE13 register output
30leoutr14 - LE14 register output
31leoutr15 - LE15 register output

24.3.10 Flags

A transition on any of the logic element outputs leoutd[15:0] or leoutr[15:0] can set the corresponding flag in the PLAY_FLSTAT register.

The direction of the transition (rising or falling) can be selected in the PLAY_FLCTL register. Once set, the flag can only be reset by software writing to the PLAY_FLCLR register (or by a reset). Setting a flag generates an interrupt to the CPU on the play_irq signal, if the enable bit for the flag is set in the PLAY_FLIER register. To clear the interrupt the software must reset the flag, or mask it by resetting the enable.

Due to the asynchronous relationship between play_clk and the pclk, a resynchronisation delay is incurred between a transition on the logic element output and the setting of the corresponding flag. The maximum delay is approximately one period of play_clk plus three periods of pclk. The play_irq interrupt is not asserted until the flag goes high. Note that if successive transitions occur on the same output before the flag is cleared, they are not taken into account. However if a subsequent transition on another logic element output occurs during the resynchronization delay, a second resynchronization starts as soon as the first is finished, at the end of which the second flag is set.

The raw state of the signals can also be read by software via the PLAY_OSR register. This is primarily intended for debugging the programmed logic. The user must be aware that the logic element outputs can change asynchronously and the value that is read from PLAY_OSR may not correspond to the actual state of the outputs at the moment of reading.

24.3.11 Miscellaneous status bits

The software input register (PLAY_SWIN), and the flag edge control register (PLAY_FLCTL) are in the play_clk domain. When a write occurs to one of these registers (including to PLAY_SWINSET/CLR), the write data is stored temporarily in the APB bus clock (pclk) domain until the next play_clk pulse at which point the data is transferred to the target register. If play_clk is slow compared to pclk, or if it is inactive, the update could take an indefinitely long time to complete. To avoid stalling the processor, any subsequent writes to the same register before the target register update has completed, are ignored.

To ensure that updates are not lost, the PLAY_MSR register contains two read-only status bits, SWIN write busy flag (SWIN_WBFS) and FLCTL write busy flag (FLCTL_WBFS). When one of these bits is set to 1, it indicates that an update is pending to the corresponding register, PLAY_SWIN or PLAY_FLCTL. The busy flags are automatically reset to 0 when the update completes.

If play_clk is significantly slower than pclk, it is recommended to poll the busy flag in the PLAY_MSR prior to writing to the corresponding register, to be sure that it has reset to 0 indicating that the previous update has completed.

Alternatively, software can enable the write complete interrupts in the PLAY_IER register to generate an interrupt request when a pending write completes (see Section 24.5).

24.4 PLAY in low-power modes

The play_clk can be maintained when the system is in low-power mode (Stop mode). The full functionality of the logic array is available, but the memory-mapped registers are not accessible and the flags are not updated.

When the play_clk is stopped, the logic element output registers do not operate, neither does the edge detection and filtering. However combinatorial logic continues to function as programmed.

If a logic element direct output is mapped to an asynchronous wake-up event, a transition on the output can wake the system from Stop mode. It is recommended to configure one of the software programmable inputs to reset the output so that software can deassert the wake-up event, if it is not otherwise deasserted.

In Standby mode, the PLAY is powered down and no longer functional. It must be reconfigured on exit from Standby.

24.5 PLAY interrupts

There is one interrupt request, play_irq, which can be configured to interrupt the processor when any of the following conditions occurs:

  1. 1. One or more of the flags are set, as indicated by the PLAY_FLSTAT register
  2. 2. An outstanding write to the PLAY_FLCTL register has completed, as indicated by the FLCTLWBFS bit in the PLAY_MSR register.
  3. 3. An outstanding write to the PLAY_SWIN register has completed, as indicated by the SWINWBFS bit in the PLAY_MSR register.

An interrupt handler must first read the PLAY interrupt status register (PLAY_ISR) to determine the source of the interrupt.

If the FLCTL write complete (FLCTLWC) or SWIN write complete (SWINWC) bits are set, it means that a previous write respectively to the PLAY_FLCTL or PLAY_SWIN register has completed. The write complete status bits can be cleared by writing a one to the corresponding bit in the interrupt clear (PLAY_ICR) register. The write complete interrupts are enabled and disabled by writing to the PLAY_IER register.

If the PLAY_ISR.FLAGS bit is set, the interrupt handler must read the PLAY_FLSTAT register to determine which flag(s) caused the interrupt. The FLAGS bit is reset by hardware when all the flags are inactive or masked. See Section 24.3.10 for more details.

24.6 PLAY registers

There are three types of PLAY registers:

24.6.1 PLAY configuration control register (PLAY_CFGCR)

Address offset: 0x000

Reset value: 0x0000 0001

This register contains miscellaneous configuration bits. It is a configuration register and is reset by play_rstn.

If PLAY_SECCFGR.SEC[0] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[0] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.UNLOCK
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 UNLOCK: Unlock configuration

When configuration is complete, it must be set to 0 to prevent accidental corruption of the configuration registers and enable operation of the logic element registers.

0: Configuration is locked. All configuration registers are write protected.

1: Configuration is unlocked. Configuration registers can be programmed.

24.6.2 PLAY security attributes configuration register (PLAY_SECCFGR)

Address offset: 0x004

Reset value: 0x0000 0000

This register controls the security attributes of the PLAY registers. It is an access control register and is reset by play_rstn.

The register can only be modified by a secure, privileged write access. It can be read by any access. A nonsecure write access is ignored. An unprivileged write access is ignored.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SEC[1:0]
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bits 1:0 SEC[1:0]: Secure access control

24.6.3 PLAY privilege attributes configuration register (PLAY_PRIVCFGR)

Address offset: 0x008

Reset value: 0x0000 0000

This register controls the privilege attributes of the PLAY registers. It is an access control register and is reset by play_rstn. It can only be modified by a privileged write access. It can be read by any access.

If PLAY_SECFGR.SEC[n] = 1, PLAY_PRIVCFG.PRIV[n] can only be modified by a secure write access. A nonsecure write access to PLAY_PRIVCFG.PRIV[n] is ignored.

If PLAY_SECCFGR.SEC[n] = 0, PLAY_PRIVCFG.PRIV[n] can be modified by secure or nonsecure write access.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIV[1:0]
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bits 1:0 PRIV[1:0]: Privilege access control

24.6.4 PLAY filter x configuration register (PLAY_FILTxCFG)

Address offset: 0x020 + 0x04 * x, (x = 0 to 15)

Reset value: 0x0000 0000

This register configures the filter, edge detector and premultiplexer for logic array input x. It is a configuration register and is reset by play_rstn. Write accesses to this register are ignored if PLAY_CFGCR.UNLOCK = 0.

If PLAY_SECCFGR.SEC[0] = 1, the register requires secure access (nonsecure accesses are ignored, and signaled on play_sec_ilac).

If PLAY_PRIVCFGR.PRIV[0] = 1, the register requires privileged access (unprivileged accesses are ignored, and signaled on play_priv_ilac).

RM0517 24.6.4column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREMUXSEL[2:0]
rwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.EDGEDET[1:0]WIDTH[7:0]
rwrwrwrwrwrwrwrwrwrw
Bits 18:16PREMUXSEL[2:0]: Input pre-multiplexer select
Selects the signal to be connected to the input. SeeTable 195for details.
Bits 9:8EDGEDET[1:0]: Edge detection mode.
Bits 7:0cycle. WIDTH[7:0]: Minimum pulse width
RM0517 Rev 11009/3945

Bits 31:19 Reserved, must be kept at reset value.

Bits 18:16 PREMUXSEL[2:0]: Input pre-multiplexer select

Selects the signal to be connected to the input. See Table 195 for details.

Bits 15:10 Reserved, must be kept at reset value.

Bits 9:8 EDGEDET[1:0]: Edge detection mode.

0: Edge detection is bypassed

1: A rising edge transition on the input is converted into a positive pulse of 1 play_clk cycle.

2: A falling edge transition on the input is converted into a positive pulse of 1 play_clk cycle.

3: A rising or falling edge transition on the input is converted into a positive pulse of 1 play_clk cycle.

Bits 7:0 WIDTH[7:0]: Minimum pulse width

0: Filter is bypassed.

1 to 255: Minimum pulse width, in play_clk cycles. Any pulse on the input shorter than this is ignored.

24.6.5 PLAY logic element x configuration register 1 (PLAY_LExCFG1)

Address offset: 0x060 + 0x04 * x, (x = 0 to 15)

Reset value: 0x0000 0000

This register configures the look-up table contents for logic element x. It is a configuration register and is reset by play_rstn. Write accesses to this register are ignored if PLAY_CFGCR.UNLOCK = 0.

If PLAY_SECCFGR.SEC[0] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[0] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
LUT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 LUT[15:0]: Look-up table contents.

Truth table output for the logic element.

24.6.6 PLAY logic element x configuration register 2 (PLAY_LExCFG2)

Address offset: 0x0A0 + 0x04 * x, (x = 0 to 15)

Reset value: 0x00FF FFFF

This register configures the input source and the register clock source for logic element x. It is a configuration register and is reset by play_rstn. Write accesses to this register are ignored if PLAY_CFGCR.UNLOCK = 0.

If PLAY_SECCFGR.SEC[0] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[0] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
Res.Res.CK_SEL[5:0]IN3_SEL[5:0]IN2_SEL[5:4]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
IN2_SEL[3:0]IN1_SEL[5:0]IN0_SEL[5:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 Reserved, must be kept at reset value.

24.6.7 PLAY output x configuration register (PLAY_OUTxCFG)

Address offset: 0x100+0x04*x, (x = 0 to 15)

Reset value: 0x0000 0000

This register selects the source for play_out[x]. It is a configuration register and is reset by play_rstn. Write accesses to this register are ignored if PLAY_CFGCR.UNLOCK = 0.

If PLAY_SECCFGR.SEC[0] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[0] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SEL[4:0]
rwrwrwrwrw

Bits 31:5 Reserved, must be kept at reset value.

Bits 4:0 SEL[4:0]: Output source selection.

The value of this field selects which LE output is connected to the output. See Table 201 for details.

24.6.8 PLAY software input status register (PLAY_SWIN)

Address offset: 0x200

Reset value: 0x0000 0000

This register is used to read and write the state of the software programmable inputs. It is a functional register and is reset by play_rstn and play_app_rstn.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored, and signaled on play_sec_ilac).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

Caution: play_clk must be active when writing to this register. Any subsequent write access to this register (or PLAY_SWINSET or PLAY_SWINCLR) is ignored until the write completes. Software must poll the PLAY_SWIN write busy flag in the PLAY miscellaneous status register (PLAY_MSR) to make sure that no writes are pending. If play_clk is slow compared to the bus clock, pclk, a write may take a long time to complete. In this case, the PLAY_SWIN register write complete interrupt - see PLAY interrupt status register (PLAY_ISR) - can be used to signal to the software when the registers can be accessed again.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SWIN1
5
SWIN1
4
SWIN1
3
SWIN1
2
SWIN1
1
SWIN1
0
SWIN9SWIN8SWIN7SWIN6SWIN5SWIN4SWIN3SWIN2SWIN1SWIN0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 SWINy: Input swiny state (y = 15 to 0)

0: Input low

1: Input high

24.6.9 PLAY software input set register (PLAY_SWINSET)

Address offset: 0x204

Reset value: 0x0000 0000

This register is used to set the state of the software programmable inputs. It is a functional register and is reset automatically by hardware.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

Caution: play_clk must be active when writing to this register. Any subsequent write access to this register (or PLAY_SWIN or PLAY_SWINCLR) is ignored until the write completes. Software must poll the PLAY_SWIN write busy flag in the PLAY miscellaneous status register (PLAY_MSR) to make sure that no writes are pending. If play_clk is slow compared to the

bus clock, pclk, a write may take a long time to complete. In this case, the PLAY_SWIN register write complete interrupt - see PLAY interrupt status register (PLAY_ISR) - can be used to signal to the software when the register can be accessed again.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SWIN1
5
SWIN1
4
SWIN1
3
SWIN1
2
SWIN1
1
SWIN1
0
SWIN9SWIN8SWIN7SWIN6SWIN5SWIN4SWIN3SWIN2SWIN1SWIN0
wwwwwwwwwwwwwwww

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 SWINy: Set PLAY_SWIN.SWINy (y = 15 to 0)

0: Input low

1: Input high

24.6.10 PLAY software input clear register (PLAY_SWINCLR)

Address offset: 0x208

Reset value: 0x0000 0000

This register is used to reset the state of the software programmable inputs. It is a functional register and is reset automatically by hardware.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

Caution: play_clk must be active when writing to this register. Any subsequent write access to this register (or PLAY_SWIN or PLAY_SWINSET) is ignored until the write completes. Software must poll the PLAY_SWIN write busy flag in the PLAY miscellaneous status register (PLAY_MSR) to make sure that no writes are pending. If play_clk is slow compared to the bus clock, pclk, a write may take a long time to complete. In this case, the PLAY_SWIN register write complete interrupt - see PLAY interrupt status register (PLAY_ISR) - can be used to signal to the software when the registers can be accessed again.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SWIN1
5
SWIN1
4
SWIN1
3
SWIN1
2
SWIN1
1
SWIN1
0
SWIN9SWIN8SWIN7SWIN6SWIN5SWIN4SWIN3SWIN2SWIN1SWIN0
wwwwwwwwwwwwwwww

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 SWINy: Reset PLAY_SWIN.SWINy (y = 15 to 0)

0: Input low

1: Input high

24.6.11 PLAY output status register (PLAY_OSR)

Address offset: 0x210

Reset value: 0x0000 0000

This register allows software to read the state of the LE direct and registered outputs. It is a functional register and is reset by play_rstn and play_app_rstn.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
LEOUT R15LEOUT R14LEOUT R13LEOUT R12LEOUT R11LEOUT R10LEOUT R9LEOUT R8LEOUT R7LEOUT R6LEOUT R5LEOUT R4LEOUT R3LEOUT R2LEOUT R1LEOUT R0
rrrrrrrrrrrrrrrr
1514131211109876543210
LEOUT D15LEOUT D14LEOUT D13LEOUT D12LEOUT D11LEOUT D10LEOUT D9LEOUT D8LEOUT D7LEOUT D6LEOUT D5LEOUT D4LEOUT D3LEOUT D2LEOUT D1LEOUT D0
rrrrrrrrrrrrrrrr

Bits 31:16 LEOUTRy: State of LE registered output leoutry (y = 15 to 0)

Bits 15:0 LEOUTDy: State of LE direct outputs leoutdy (y = 15 to 0)

24.6.12 PLAY flag status register (PLAY_FLSTAT)

Address offset: 0x220

Reset value: 0x0000 0000

This register allows software to read the state of the LE output flags. It is a functional register and is reset by play_rstn and play_app_rstn.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
FLAGR 15FLAGR 14FLAGR 13FLAGR 12FLAGR 11FLAGR 10FLAGR 9FLAGR 8FLAGR 7FLAGR 6FLAGR 5FLAGR 4FLAGR 3FLAGR 2FLAGR 1FLAGR 0
rrrrrrrrrrrrrrrr
1514131211109876543210
FLAGD 15FLAGD 14FLAGD 13FLAGD 12FLAGD 11FLAGD 10FLAGD 9FLAGD 8FLAGD 7FLAGD 6FLAGD 5FLAGD 4FLAGD 3FLAGD 2FLAGD 1FLAGD 0
rrrrrrrrrrrrrrrr

Bits 31:16 FLAGRy: Flag state for LEy registered output (y = 15 to 0)

0: Flag reset

1: Flag set

Bits 15:0 FLAGDy: Flag state for LEy direct output (y = 15 to 0)

0: Flag reset

1: Flag set

24.6.13 PLAY flag set register (PLAY_FLSET)

Address offset: 0x224

Reset value: 0x0000 0000

This register allows software to set the LE output flags. It is a functional register and is reset automatically by hardware.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
FLAGR_SET15FLAGR_SET14FLAGR_SET13FLAGR_SET12FLAGR_SET11FLAGR_SET10FLAGR_SET9FLAGR_SET8FLAGR_SET7FLAGR_SET6FLAGR_SET5FLAGR_SET4FLAGR_SET3FLAGR_SET2FLAGR_SET1FLAGR_SET0
wwwwwwwwwwwwwwww
1514131211109876543210
FLAGD_SET15FLAGD_SET14FLAGD_SET13FLAGD_SET12FLAGD_SET11FLAGD_SET10FLAGD_SET9FLAGD_SET8FLAGD_SET7FLAGD_SET6FLAGD_SET5FLAGD_SET4FLAGD_SET3FLAGD_SET2FLAGD_SET1FLAGD_SET0
wwwwwwwwwwwwwwww

Bits 31:16 FLAGR_SETy: Flag set for LEy registered output (y = 15 to 0)

0: No effect

1: Set flag

Bits 15:0 FLAGD_SETy: Flag set for LEy direct output (y = 15 to 0)

0: No effect

1: Set flag

24.6.14 PLAY flag clear register (PLAY_FLCLR)

Address offset: 0x228

Reset value: 0x0000 0000

This register allows software to clear the state of the LE output flags. It is a functional register and is reset automatically by hardware.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
FLAGR_CLR15FLAGR_CLR14FLAGR_CLR13FLAGR_CLR12FLAGR_CLR11FLAGR_CLR10FLAGR_CLR9FLAGR_CLR8FLAGR_CLR7FLAGR_CLR6FLAGR_CLR5FLAGR_CLR4FLAGR_CLR3FLAGR_CLR2FLAGR_CLR1FLAGR_CLR0
wwwwwwwwwwwwwwww
1514131211109876543210
FLAGD_CLR15FLAGD_CLR14FLAGD_CLR13FLAGD_CLR12FLAGD_CLR11FLAGD_CLR10FLAGD_CLR9FLAGD_CLR8FLAGD_CLR7FLAGD_CLR6FLAGD_CLR5FLAGD_CLR4FLAGD_CLR3FLAGD_CLR2FLAGD_CLR1FLAGD_CLR0
wwwwwwwwwwwwwwww

Bits 31:16 FLAGR_CLRy: Flag clear for LEy registered output (y = 15 to 0)

Bits 15:0 FLAGD_CLRy: Flag clear for LEy direct output (y = 15 to 0)

24.6.15 PLAY flag interrupt enable register (PLAY_FLIER)

Address offset: 0x22C

Reset value: 0x0000 0000

This register enables interrupt requests based on LE output flag state. It is a functional register and is reset by play_rstn and play_app_rstn.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
FLAGR_IEN15FLAGR_IEN14FLAGR_IEN13FLAGR_IEN12FLAGR_IEN11FLAGR_IEN10FLAGR_IEN9FLAGR_IEN8FLAGR_IEN7FLAGR_IEN6FLAGR_IEN5FLAGR_IEN4FLAGR_IEN3FLAGR_IEN2FLAGR_IEN1FLAGR_IEN0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FLAGD_IEN15FLAGD_IEN14FLAGD_IEN13FLAGD_IEN12FLAGD_IEN11FLAGD_IEN10FLAGD_IEN9FLAGD_IEN8FLAGD_IEN7FLAGD_IEN6FLAGD_IEN5FLAGD_IEN4FLAGD_IEN3FLAGD_IEN2FLAGD_IEN1FLAGD_IEN0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bits 31:16 FLAGR_IENy: Flag interrupt enable for LEy registered output (y = 15 to 0)

0: No interrupt is generated on play_irq

1: An interrupt is generated on play_irq if PLAY_FLSTAT.FLAGRy = 1

Bits 15:0 FLAGD_IENy: Flag interrupt enable for LEy direct output (y = 15 to 0)

0: No interrupt is generated on play_irq

1: An interrupt is generated on play_irq if PLAY_FLSTAT.FLAGDy = 1

24.6.16 PLAY flag control register (PLAY_FLCTL)

Address offset: 0x230

Reset value: 0x0000 0000

This register selects the direction of signal transition to set the corresponding LE output flag. It is a functional register and is reset by play_rstn and play_app_rstn.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

Caution: play_clk must be active when writing to this register. Any subsequent write access to this register is ignored until the write completes. Software must poll the PLAY_FLCTL write busy flag in the PLAY miscellaneous status register (PLAY_MSR) to make sure that no writes are pending. If play_clk is slow compared to the bus clock, pclk, a write may take a long time to complete. In this case, the PLAY_FLCTL register write complete interrupt - see PLAY interrupt status register (PLAY_ISR) - can be used to signal to the software when the register can be accessed again.

31302928272625242322212019181716
FLAGR_EDGE 15FLAGR_EDGE 14FLAGR_EDGE 13FLAGR_EDGE 12FLAGR_EDGE 11FLAGR_EDGE 10FLAGR_EDGE 9FLAGR_EDGE 8FLAGR_EDGE 7FLAGR_EDGE 6FLAGR_EDGE 5FLAGR_EDGE 4FLAGR_EDGE 3FLAGR_EDGE 2FLAGR_EDGE 1FLAGR_EDGE 0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FLAGD_EDGE 15FLAGD_EDGE 14FLAGD_EDGE 13FLAGD_EDGE 12FLAGD_EDGE 11FLAGD_EDGE 10FLAGD_EDGE 9FLAGD_EDGE 8FLAGD_EDGE 7FLAGD_EDGE 6FLAGD_EDGE 5FLAGD_EDGE 4FLAGD_EDGE 3FLAGD_EDGE 2FLAGD_EDGE 1FLAGD_EDGE 0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 FLAGR_EDGEy: Edge direction for LEy registered output (y = 15 to 0)

0: FLAGRy is set by a falling edge on leoutry

1: FLAGRy is set by a rising edge on leoutry

Bits 15:0 FLAGD_EDGEy: Edge direction for LEy direct output (y = 15 to 0)

0: FLAGDy is set by a falling edge on leoutdy

1: FLAGDy is set by a rising edge on leoutdy

24.6.17 PLAY miscellaneous status register (PLAY_MSR)

Address offset: 0x234

Reset value: 0x0000 0000

This register allows software to read the state of miscellaneous status flags (not including LE output flags). It is a functional register and is reset by play_rstn and play_app_rstn.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FLCTL
WBFS
SWIN
WBFS
rr

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 FLCTLWBFS: PLAY_FLCTL register write busy flag status

0: PLAY_FLCTL register can be written

1: Write is pending, any new write access to PLAY_FLCTL register is ignored

Bit 0 SWINWBFS: PLAY_SWIN register write busy flag status

0: PLAY_SWIN register can be written

1: Write is pending, any new write access to PLAY_SWIN, PLAY_SWINCLR or PLAY_SWINSET registers is ignored

24.6.18 PLAY interrupt status register (PLAY_ISR)

Address offset: 0x238

Reset value: 0x0000 0000

This register allows software to read the state of the interrupt request sources. The PLAY_ISR register must be read first of all when the play_irq is asserted, to identify the source(s) of the interrupt request. It is a functional register and is reset by play_rstn and play_app_rstn.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

RM0517column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FLAGSFLCTL WCSWIN WC
rrr
Bit 2FLAGS: Flag interrupts status
Bit 1request FLCTLWC: PLAY_FLCTL register write complete interrupt status
Bit 0SWINWC: PLAY_SWIN register write complete interrupt status
by flags - see register.Section 24.6.14: PLAY flag clear register (PLAY_FLCLR). It is a functional
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
151413121110987654321 FLCTL0 SWIN
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WC_CLWC_CL
R RR R
w ww w
Bit 1FLCTLWC_CLR: PLAY_FLCTL register write complete interrupt clear
RM0517 Rev 11019/3945

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 FLAGS: Flag interrupts status

0: No flag interrupts active

1: One or more bits in PLAY_FLSTAT register is active and has generated an interrupt request

Bit 1 FLCTLWC: PLAY_FLCTL register write complete interrupt status

0: Interrupt request is not pending

1: Interrupt request is pending

Bit 0 SWINWC: PLAY_SWIN register write complete interrupt status

0: Interrupt request is not pending

1: Interrupt request is pending

24.6.19 PLAY interrupt clear register (PLAY_ICR)

Address offset: 0x23C

Reset value: 0XXXXX XXXX

This register allows software to clear active interrupt requests, except for those generated by flags - see Section 24.6.14: PLAY flag clear register (PLAY_FLCLR). It is a functional register.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 FLCTLWC_CLR: PLAY_FLCTL register write complete interrupt clear

0: No action

1: Clear interrupt request

Bit 0 SWINWC_CLR: PLAY_SWIN register write complete interrupt clear
0: No action
1: Clear interrupt request

24.6.20 PLAY interrupt enable register (PLAY_IER)

Address offset: 0x240

Reset value: 0x0000 0000

This register allows software to enable or disable interrupt requests, except for those generated by flags - see Section 24.6.15: PLAY flag interrupt enable register (PLAY_FLIER). It is a functional register and is reset by play_rstn and play_app_rstn.

If PLAY_SECCFGR.SEC[1] = 1, the register requires secure access (nonsecure accesses are ignored).

If PLAY_PRIVCFGR.PRIV[1] = 1, the register requires privileged access (unprivileged accesses are ignored).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FLCTL WC_IENSWIN WC_IEN
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 FLCTLWC_IEN: PLAY_FLCTL register write complete interrupt enable
0: Interrupt disabled
1: Interrupt enabled. An interrupt is generated when a write to the PLAY_FCTL register completes

Bit 0 SWINWC_IEN: PLAY_SWIN register write complete interrupt enable
0: Interrupt disabled
1: Interrupt enabled. An interrupt is generated when a write to the PLAY_SWIN register completes

24.7 PLAY register map

Table 202. PLAY register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000PLAY_CFGCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.UNLOCK
Reset value1
0x004ReservedRes.

Table 202. PLAY register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x004PLAY_SECCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SEC[1:0]
Reset value00
0x008ReservedRes.
0x008PLAY_PRIVCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIV[1:0]
Reset value00
0x00C to 0x01CReservedRes.
0x020 + 0x4 * x, (x=0 to 15)
Last address: 0x05C
PLAY_FILTxCFGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREMUXSE
L
[2:0]
Res.Res.Res.Res.Res.Res.Res.Res.EDGEDET
[1:0]
WIDTH
[7:0]
Reset value00000000000000
0x060 + 0x4 * x, (x=0 to 15)
Last address: 0x09C
PLAY_LExCFG1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LUT[15:0]
Reset value0000000000000000
0x0A0 + 0x4 * x, (x=0 to 15)
Last address: 0x0DC
PLAY_LExCFG2Res.Res.CK_SEL[4:0]IN3_SEL[5:0]IN2_SEL[5:0]IN1_SEL[5:0]IN0_SEL[5:0]
Reset value0000000111111111111111111111111
0x0E0 - 0x0FCReservedRes.
0x100 + 0x4 * x, (x=0 to 15)
Last address: 0x13C
PLAY_OUTxCFGRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SEL[4:0]
Reset value000000
0x140 - 0x1FCReservedRes.
0x200PLAY_SWINRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWIN15SWIN14SWIN13SWIN12SWIN11SWIN10SWIN9SWIN8SWIN7SWIN6SWIN5SWIN4SWIN3SWIN2SWIN1SWIN0
Reset value00000000000000000
0x204PLAY_SWINSETRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWIN15SWIN14SWIN13SWIN12SWIN11SWIN10SWIN9SWIN8SWIN7SWIN6SWIN5SWIN4SWIN3SWIN2SWIN1SWIN0
Reset value00000000000000000
0x208PLAY_SWINCLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWIN15SWIN14SWIN13SWIN12SWIN11SWIN10SWIN9SWIN8SWIN7SWIN6SWIN5SWIN4SWIN3SWIN2SWIN1SWIN0
Reset value00000000000000000
0x20CReservedRes.
0x210PLAY_OSRLEOUTR15LEOUTR14LEOUTR13LEOUTR12LEOUTR11LEOUTR10LEOUTR9LEOUTR8LEOUTR7LEOUTR6LEOUTR5LEOUTR4LEOUTR3LEOUTR2LEOUTR1LEOUTR0LEOUTD15LEOUTD14LEOUTD13LEOUTD12LEOUTD11LEOUTD10LEOUTD9LEOUTD8LEOUTD7LEOUTD6LEOUTD5LEOUTD4LEOUTD3LEOUTD2LEOUTD1LEOUTD0
Reset value000000000000000000000000000000000
0x214 - 0x21CReservedRes.

Table 202. PLAY register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x220PLAY_FLSTATFLAGR15FLAGR14FLAGR13FLAGR12FLAGR11FLAGR10FLAGR9FLAGR8FLAGR7FLAGR6FLAGR5FLAGR4FLAGR3FLAGR2FLAGR1FLAGR0FLAGD15FLAGD14FLAGD13FLAGD12FLAGD11FLAGD10FLAGD9FLAGD8FLAGD7FLAGD6FLAGD5FLAGD4FLAGD3FLAGD2FLAGD1FLAGD0
Reset value00000000000000000000000000000000
0x224PLAY_FLSETFLAGR_SET15FLAGR_SET14FLAGR_SET13FLAGR_SET12FLAGR_SET11FLAGR_SET10FLAGR_SET9FLAGR_SET8FLAGR_SET7FLAGR_SET6FLAGR_SET5FLAGR_SET4FLAGR_SET3FLAGR_SET2FLAGR_SET1FLAGR_SET0FLAGD_SET15FLAGD_SET14FLAGD_SET13FLAGD_SET12FLAGD_SET11FLAGD_SET10FLAGD_SET9FLAGD_SET8FLAGD_SET7FLAGD_SET6FLAGD_SET5FLAGD_SET4FLAGD_SET3FLAGD_SET2FLAGD_SET1FLAGD_SET0
Reset value00000000000000000000000000000000
0x228PLAY_FLCLRFLAGR_CLR15FLAGR_CLR14FLAGR_CLR13FLAGR_CLR12FLAGR_CLR11FLAGR_CLR10FLAGR_CLR9FLAGR_CLR8FLAGR_CLR7FLAGR_CLR6FLAGR_CLR5FLAGR_CLR4FLAGR_CLR3FLAGR_CLR2FLAGR_CLR1FLAGR_CLR0FLAGD_CLR15FLAGD_CLR14FLAGD_CLR13FLAGD_CLR12FLAGD_CLR11FLAGD_CLR10FLAGD_CLR9FLAGD_CLR8FLAGD_CLR7FLAGD_CLR6FLAGD_CLR5FLAGD_CLR4FLAGD_CLR3FLAGD_CLR2FLAGD_CLR1FLAGD_CLR0
Reset value00000000000000000000000000000000
0x22CPLAY_FLIERFLAGR_IEN15FLAGR_IE14FLAGR_IEN13FLAGR_IEN12FLAGR_IEN11FLAGR_IEN10FLAGR_IEN9FLAGR_IEN8FLAGR_IEN7FLAGR_IEN6FLAGR_IEN5FLAGR_IEN4FLAGR_IEN3FLAGR_IEN2FLAGR_IEN1FLAGR_IEN0FLAGD_IEN15FLAGD_IEN14FLAGD_IEN13FLAGD_IEN12FLAGD_IEN11FLAGD_IEN10FLAGD_IEN9FLAGD_IEN8FLAGD_IEN7FLAGD_IEN6FLAGD_IEN5FLAGD_IEN4FLAGD_IEN3FLAGD_IEN2FLAGD_IEN1FLAGD_IEN0
Reset value00000000000000000000000000000000
0x230PLAY_FLCTLFLAGR_EDGE15FLAGR_EDGE14FLAGR_EDGE13FLAGR_EDGE12FLAGR_EDGE11FLAGR_EDGE10FLAGR_EDGE9FLAGR_EDGE8FLAGR_EDGE7FLAGR_EDGE6FLAGR_EDGE5FLAGR_EDGE4FLAGR_EDGE3FLAGR_EDGE2FLAGR_EDGE1FLAGR_EDGE0FLAGD_EDGE15FLAGD_EDGE14FLAGD_EDGE13FLAGD_EDGE12FLAGD_EDGE11FLAGD_EDGE10FLAGD_EDGE9FLAGD_EDGE8FLAGD_EDGE7FLAGD_EDGE6FLAGD_EDGE5FLAGD_EDGE4FLAGD_EDGE3FLAGD_EDGE2FLAGD_EDGE1FLAGD_EDGE0
Reset value00000000000000000000000000000000
0x234PLAY_MSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x238PLAY_ISRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x23CPLAY_ICRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x240PLAY_IERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x244 - 0x3ECReservedRes.

Refer to Section 2.3: Memory organization for the register boundary addresses.