Master-slave multiplexing implementation device for SWP digital module

By designing the SWP digital module master-slave multiplexing implementation device, using the master-slave multiplexing structure and the configuration control of the bus interface, the complexity problem caused by the independence of the SWP protocol master interface and slave interface is solved, and the simplified design and ease of use are achieved. promote.

CN118690700APending Publication Date: 2024-09-24BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310286342.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The master interface and slave interface of the existing SWP protocol are designed independently, making it difficult to realize master-slave reuse. This results in complex analog circuit design and is not suitable for digital circuit design, making maintenance and upgrades difficult.

Method used

Design a master-slave multiplexing implementation device for SWP digital modules, including a PHY interface, a transceiver controller, a protocol processor, a data buffer and a bus interface. It realizes master-slave communication specified by the SWP protocol through configuration and control, and utilizes master-slave multiplexing. Master-slave selection of structure and bus interface to configure control.

Benefits of technology

It realizes the master-slave communication of the SWP protocol, simplifies the design and maintenance, improves the ease of use of the overall design and the reusability of shared functions, and reduces the complexity of the module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690700A
    Figure CN118690700A
Patent Text Reader

Abstract

The invention belongs to the technical field of integrated circuit design, and particularly relates to a master-slave multiplexing implementation device for an SWP digital module. And the SWP master-slave multiplexing digital module realizes protocol processing of SWP physical layers, MAC layers and logic link layers at the Master end and the Slave end, and completes master-slave communication specified by the SWP together with an analog circuit for realizing a PHY (Physical Layer). The internal structure comprises a bus interface, a data buffer area, a protocol processor, a transceiving controller and a PHY (Physical Layer) interface, a Master end uses an S1 signal specified by a protocol to send data and receives data through an S2 signal, and a Slave end uses the S2 signal to send data and receives data through the S1 signal. The master-slave multiplexing realization of the SWP digital module can save the overall development time and maintenance cost and improve the overall utilization rate from the perspective of the module, is convenient to meet the system design requirements, and is mainly applied to NFC / SE products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of integrated circuit design, and specifically relates to a device for realizing master-slave multiplexing of a SWP digital module, and more particularly to a device for realizing master-slave communication specified in a SWP protocol by using a master-slave multiplexing structure through configuration and control. Background Art

[0002] SWP (Single Wire Protocol) is developed by the European Telecommunications Union (ETSI). It is a point-to-point communication protocol based on bit stream transmission between CLF and UICC, with a baud rate ranging from 100K to 1.69M. Among them, CLF is a contactless front end, serving as the SWP master interface; UICC is a universal IC card, serving as the SWP slave interface. In recent years, CLF has been expanded to NFC and UICC has been expanded to SE, which has continuously broadened the application field of SWP.

[0003] Generally, the SWP master interface and slave interface are independent of each other because the communication signals involved are completely different. For example, the S1 signal from the master interface to the slave interface is a voltage signal, and the S2 signal from the slave interface to the master interface is a current signal. The corresponding analog circuit design for sending and receiving will be very different, which is not suitable for master-slave multiplexing. However, for digital circuit design, master-slave multiplexing can be considered. At this time, S1 and S2 are both voltage signals. The only difference is to handle the encoding and decoding of S1 and S2, that is, the master interface must handle the encoding of S1 and the decoding of S2, while the slave interface must handle the decoding of S1 and the encoding of S2, and the frame processing will be different according to the master and slave interfaces. Because doing so can make the maintenance of SWP digital IP relatively simple; many common functions can be reused, which is convenient for design and upgrading, and improves the ease of use of the overall design. Summary of the invention

[0004] The present invention provides a SWP digital module master-slave multiplexing implementation device to support SWP master or slave interface communication. The present invention adopts a general architecture and configuration control to implement SWP master-slave communication, and can achieve the purpose of master-slave application.

[0005] The SWP digital module master-slave multiplexing implementation device provided by the present invention comprises:

[0006] A PHY interface, used to implement the decoding and encoding of the SWP protocol physical layer data, as well as state conversion;

[0007] A transceiver controller, used to implement the parsing and synthesis of SWP protocol MAC layer data frames;

[0008] A protocol processor for processing SWP protocol logical link layer data, including ACT, SHDLC, and CLT;

[0009] A data buffer for storing sent and received data;

[0010] A bus interface used to exchange data with the CPU.

[0011] The above-mentioned PHY interface includes a signal decoding unit, a signal encoding unit and an interface status unit. Among them, the signal decoding unit is used to realize the S1 signal PWM decoding of the slave interface and the S2 signal decoding of the master interface; the signal encoding unit is used to realize the S1 signal PWM encoding of the master interface and the S2 signal encoding of the slave interface; the interface status unit is used to realize the physical layer state conversion of the master-slave interface, involving three interface states of DEACTIVATED, SUSPENDED and ACTIVATED, P1, P2 and P4 initiated by the host, and P3 and P6 initiated by the slave.

[0012] The transceiver controller includes a receiving control unit and a sending control unit. The receiving control unit is used to implement MAC frame parsing of the master-slave interface; the sending control unit is used to implement MAC frame synthesis of the master-slave interface. The MAC frame of the slave has an additional wakeup bit before SOF compared to the master. In addition, MAC frame processing can be multiplexed between the master and slave, including SOF / EOF processing, CRC16 calculation, and padding bit processing.

[0013] The protocol processor includes an ACT processing unit, a SHDLC processing unit and a CLT processing unit. The ACT processing unit is used to implement ACT frame processing of the master-slave interface. As activation management, the slave sends an ACT_SYNC frame or an ACT_READY frame, and the host sends an ACT_POWER_MODE frame. The SHDLC processing unit is used to implement SHDLC frame processing of the master-slave interface. As link management, the host and the slave can alternately send RSET frames and UA frames. As flow control, the host and the slave can alternately send I frames or RR / REJ / RNR / SREJ frames. The CLT processing unit is used to implement CLT frame processing of the master-slave interface. As specific application support, the host sends a CL_PROTO_INF (A) frame or a CL_PROTO_INF (F) frame, and the slave sends a CL_GOTO_INIT frame or a CL_GOTO_HALT frame.

[0014] The above data buffer includes 4 transmit data frame buffers and 4 receive data frame buffers. The data buffer can be implemented by dual-port SRAM or register file, with a total capacity of 256 bytes, and the access mode can be FIFO or Buffer.

[0015] The above bus interface includes special function registers, and the access interface generally adopts APB interface. Among them, the special function registers involve the selection of master and slave interfaces, ACT parameters, timing parameters, interrupt class, status class, control class and other contents.

[0016] The transmitted data starts from the bus interface or the transmit data frame buffer, passes through the protocol processor, synthesizes the LLC layer data, passes through the transmit control unit, synthesizes it according to the MAC frame format, and finally the encoding unit outputs the serial data; the received data starts from the decoding unit, passes through the receive control unit, parses it according to the MAC frame format, passes through the protocol processor, parses the LLC layer data, and finally the bus interface or the receive data frame buffer stores the parallel data.

[0017] Configuration information is generated by the bus interface and transmitted to the PHY interface, transceiver controller and protocol processor to determine the master-slave communication specified by the SWP protocol.

[0018] The present invention is characterized in that: first, a master-slave multiplexing structure is adopted to support the master-slave communication specified by the SWP protocol; second, the master-slave multiplexing structure is configured and controlled through the master-slave selection of the bus interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is the overall block diagram of the SWP master-slave multiplexing digital module. DETAILED DESCRIPTION

[0020] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0021] Embodiment 1:

[0022] Figure 1 The PHY interface 101, the transmission controller 102, the reception controller 103 and the protocol processor 104 implement the master-slave communication specified by the SWP protocol under the configuration control of the bus interface 107.

[0023] The PHY interface 101 is composed of a signal decoding unit 108, a signal encoding unit 109 and an interface status unit 110, which realizes the decoding of the S2 input signal and the PWM encoding of the S1 output signal by the host, the PWM decoding of the S1 input signal and the encoding of the S2 output signal by the slave, and the conversion control between the physical layer states, involving the three states of DEACTIVATED, SUSPENDED and ACTIVATED. The conversion conditions include P1, P2, P4 initiated by the host and P3, P6 initiated by the slave.

[0024] The sending controller 102 realizes MAC frame synthesis, and the receiving controller 103 realizes MAC frame parsing, which involves SOF / EOF processing, CRC16 calculation, and padding bit processing. The slave also has a wakeup bit that needs to be sent and received.

[0025] The protocol processor 104 is composed of an ACT processing unit 111, a CLT processing unit 112 and a SHDLC processing unit 113, which realizes the processing of different LLC layer data by the master-slave interface. For ACT processing, the host sends an ACT_POWER_MODE frame, and the slave sends an ACT_SYNC frame or an ACT_READY frame. For CLT processing, the host sends a CL_PROTO_INF (A) frame or a CL_PROTO_INF (F) frame, and the slave sends a CL_GOTO_INIT frame or a CL_GOTO_HALT frame. For SHDCL processing, because it is a full-duplex mode, the master-slave interface can alternately send RSET frames and UA frames, as well as I frames or RR / REJ / RNR / SREJ frames.

[0026] The sending buffer 105 has four 32B sending data frame buffers, and the receiving buffer 106 has four 32B receiving data frame buffers, both of which have a size of 128B, adopt a FIFO access mode, and use a register file to buffer data.

[0027] The bus interface 107 includes special function registers and access interfaces, and adopts APB interface. The special function registers include master-slave selection, ACT parameters ACT_DATA / ACT_INF, timing parameters P1 / P2 / P3 / P4 / P6, interrupt class, status class, control class and the like.

[0028] Embodiment 2:

[0029] Different from the above-mentioned embodiment 1, the sending buffer 105 and the receiving buffer 106 can adopt the buffer access mode, increase the data frame buffer sequence indication, and realize the functions of both random access and sequential access.

[0030] Embodiment 3:

[0031] Different from the above-mentioned embodiment 1, the sending buffer 105 and the receiving buffer 106 can use dual-port SRAM to cache data, which can achieve the purpose of saving the buffer area.

[0032] Finally, it should be noted that the above embodiments are only used to illustrate rather than limit the technical solutions of the present invention. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the present invention can still be modified or replaced by equivalents. Any modification or partial replacement that does not depart from the spirit and scope of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A device for realizing master-slave multiplexing of SWP digital modules, It is characterized in that It includes: A PHY interface, used to implement physical layer data decoding and encoding, as well as state conversion of the SWP protocol master and slave interfaces; A transceiver controller, used to implement MAC layer data frame parsing and synthesis of the SWP protocol master-slave interface; A protocol processor for processing the logical link layer data of the SWP protocol master and slave interface, including ACT, SHDLC, and CLT; A data buffer for storing sent and received data; A bus interface used to exchange data with the CPU.

2. The SWP digital module master-slave multiplexing implementation device according to claim 1, Features The PHY interface is composed of a signal decoding unit, a signal encoding unit and an interface status unit, which are respectively: A signal decoding unit, used to implement S1 signal decoding of the slave interface and S2 signal decoding of the master interface; A signal encoding unit, used to implement S1 signal encoding of the master interface and S2 signal encoding of the slave interface; An interface status unit is used to implement physical layer status conversion of the master-slave interface.

3. The SWP digital module master-slave multiplexing implementation device according to claim 1, Features The transceiver controller is composed of a receiving control unit and a sending control unit, which are respectively: A receiving control unit for implementing MAC frame parsing of the master-slave interface; A transmission control unit is used to realize MAC frame synthesis of the master-slave interface.

4. The SWP digital module master-slave multiplexing implementation device according to claim 1, Features The protocol processor is composed of an ACT processing unit, an SHDLC processing unit and a CLT processing unit, which are respectively: An ACT processing unit, used to implement ACT frame processing of the master-slave interface; An SHDLC processing unit for implementing SHDLC frame processing of the master-slave interface; A CLT processing unit is used to implement CLT frame processing of the master-slave interface.