A method for implementing a pin multiplexing device

By designing the pin multiplexing table and function grouping table, and using automated scripts to generate encoding and decoding information, we solve the problems of slow multi-pin switching and logic errors in chip design, achieve fast and safe pin function switching, and avoid A hardware failure occurred.

CN115099183BActive Publication Date: 2024-08-27BEIJING BLX IC DESIGN CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210723792.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-23
Publication Date
2024-08-27
Estimated Expiration
2042-06-23

AI Technical Summary

Technical Problem

In chip design, when a function involves many pins, multiple control register settings need to be changed multiple times, resulting in slow switching speed, which may lead to logic errors, hardware failures and even device damage.

Method used

By designing the pin multiplexing table and function grouping table, and using automated scripts to generate encoding and decoding information, the mapping relationship between functions and pins can be switched, and pin functions can be switched in batches from the perspective of functional grouping, thus reducing the possibility of human modification errors.

Benefits of technology

It realizes the fast pin switching function, avoids logic errors and hardware failures, improves safety and reliability, and ensures the stability of the device.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention discloses a method for realizing a pin multiplexing device, and relates to the field of pin multiplexing. The method for realizing the pin multiplexing device comprises the following steps: S1: module installation step: firstly, an internal function module, a chip pin module and a function-to-pin mapping module are selected, a pin multiplexing control generation module and a function configuration module are reserved, and then the internal function module and the chip pin module are connected with the function-to-pin mapping module, the function configuration module accepts the configuration of software, generates a configuration signal to the pin multiplexing control generation module, and controls the mapping relationship of the function to the pin mapping module under the corresponding configuration signal. The invention does not need to modify the code file manually, reduces the possibility of errors caused by artificially modifying the signal, and is safer and more reliable. The invention of batch switching pin functions according to functions has the characteristics of rapid switching, avoiding logic errors, hardware failures and device damage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of pin multiplexing, and in particular to a method for realizing a pin multiplexing device. Background Art

[0002] The realization of specific chip functions usually requires the joint implementation of multiple functional signals. In chip design, pins need to be multiplexed for different functional signals. The usual practice is to use pin selection registers to assign different functions to pins from the perspective of pins.

[0003] However, when the function involves more pins, multiple control register settings need to be changed multiple times, resulting in slow switching speed. During the switching process, since some of the pin functions are new settings and some are original settings, there are inconsistencies, which may cause logical errors. During the switching process, since some of the pin functions are new settings and some are original settings, there are inconsistencies, which may cause hardware failures or even device damage.

[0004] Therefore, those skilled in the art provide a method for implementing a pin multiplexing device to solve the problems raised in the above background technology. Summary of the invention

[0005] The purpose of the present invention is to provide a method for implementing a pin multiplexing device to solve the problem raised in the above background technology. However, when the function involves more pins, it is necessary to change multiple control register settings for multiple times, resulting in a slow switching speed. During the switching process, since the pin functions are partially new settings and partially original settings, there are inconsistencies, which may lead to logical errors. During the switching process, since the pin functions are partially new settings and partially original settings, there are inconsistencies, which may lead to hardware failures or even device damage.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A method for implementing a pin multiplexing device, the method for implementing the pin multiplexing device comprising the following steps:

[0008] S1: Module installation steps: first, select the internal function module, chip pin module and function to pin mapping module, pin multiplexing control generation module and function configuration module for standby, then connect the internal function module and chip pin module with the function to pin mapping module, the function configuration module accepts the configuration of the software, generates a configuration signal to the pin multiplexing control generation module, and controls the mapping relationship between the function and the pin mapping module under the corresponding configuration signal;

[0009] S2: Specific implementation steps: design a pin multiplexing table to determine the number of reusable pins and the multiplexing relationship among chip pins, design a function grouping table to determine the function pins that need to be switched at the same time and group them, run an automated script based on the pin multiplexing table and the function grouping table to generate pin coding, and generate the coding information of the function configuration and the decoding information of the pin multiplexing control according to the function grouping. First, design a pin multiplexing table to determine the chip pins that need to be reused and the logic function signals reused by each pin, design a function grouping table to divide several logic function signals that need to be switched at the same time into the same group, run an automated script based on the pin multiplexing table and the function grouping table to generate the design code of the function configuration module, the pin multiplexing control generation module and the function to pin mapping module, the pin multiplexing table includes the pin name, function Signal name and signal direction, function grouping table, each GPIO signal is treated as an independent group, and other function signals that need to be switched at the same time are treated as a group. The automation script generates codes for the corresponding relationship between function signals and pins. Each code corresponds to a complete set of pin mapping relationships. For the pin multiplexing table and function grouping table, the coding results that may be generated by the automation script, when the function needs to be switched, the software writes the code into the function configuration module at one time to achieve the purpose of switching several pin functions at the same time. The pin multiplexing control module decodes the coding information in the function configuration module, and combines the function signal direction information in the pin multiplexing table to realize the function control of several pins at the same time. Under the control of the pin multiplexing control generation signal of the function to pin mapping module, the switching of the mapping relationship between function and pin is realized;

[0010] In the module installation step, the internal function module provides several function groups, each function group is composed of several function signals, and some function signals between the function groups are allowed to overlap or not overlap. The function configuration module encodes the pin multiplexing based on the function grouping, and the encoding feature is in each encoding; in the specific implementation step, the mapping of the function grouping in the pins is complete, and there is no situation where part of the pins in the same function group correspond to the pins and the other part do not correspond to the pins. The pin multiplexing control generation module can decode the pin multiplexing code and generate a control signal for controlling the mapping of the function to the pin. The pin functions are grouped and controlled based on the function to meet the requirement that the pins in the same function group can change simultaneously during the switching process, and the pin decoding table and the pin function mapping module can be automatically generated.

[0011] As a preferred embodiment of the present invention: in the module installation step, the chip pin module related signals may be connected to several functional signals depending on the configuration, and can only be connected to one functional signal under the same configuration. The function-to-pin mapping module provides a connection between the functional signal and the pin internal connection signal. Depending on the configuration, the connection may be many-to-many. Under the same configuration, the connection can only be one-to-one. The function configuration module provides encoding information for mapping the logic function signal to the pin internal connection signal at the level of all chip pins. The pin multiplexing control generation module decodes the function configuration information and generates control information for the function-to-pin mapping module.

[0012] Compared with the prior art, the present invention has the following beneficial effects:

[0013] The present invention discloses a method for implementing a pin multiplexing device, and provides a method for quickly switching pins to avoid logic errors, hardware failures and device damage. The basic principle is to establish a function-to-pin view from the perspective of function grouping, and complete the function switching of related pins in batches through the switching of functions. At the same time, in order to cooperate with the above purpose, the present invention defines a series of function mapping views, and uses an automated script method to complete some functions. The implementation method of group-controlled pin multiplexing is first to design a pin multiplexing table, determine the number of reusable pins, and the name and direction of the internal function signal, and then combine the function grouping table to generate coding information for group control pin functions, so as to facilitate programmers to change several pin control codes at one time, and then through the decoding of the pin multiplexing control generation module and the synergistic effect of the function-to-pin mapping module, the function of batch switching pin functions by function is completed. The above encoding, decoding and mapping processes are automatically generated by the automated script, and there is no need to manually modify the code file, which reduces the possibility of errors caused by artificial signal modification, and is safer and more reliable. The invention of batch switching pin functions by function has the characteristics of rapid switching, avoiding logic errors, hardware failures and device damage. DETAILED DESCRIPTION

[0014] In an embodiment of the present invention, a method for implementing a pin multiplexing device includes the following steps:

[0015] S1: Module installation steps: first, select the internal function module, chip pin module and function to pin mapping module, pin multiplexing control generation module and function configuration module for standby, then connect the internal function module and chip pin module with the function to pin mapping module, the function configuration module accepts the configuration of the software, generates a configuration signal to the pin multiplexing control generation module, and controls the mapping relationship between the function and the pin mapping module under the corresponding configuration signal;

[0016] S2: Specific implementation steps: design a pin multiplexing table to determine the number of reusable pins and the multiplexing relationship among chip pins, design a function grouping table to determine the function pins that need to be switched at the same time and group them, run an automated script based on the pin multiplexing table and the function grouping table to generate pin coding, and generate the coding information of the function configuration and the decoding information of the pin multiplexing control according to the function grouping. First, design a pin multiplexing table to determine the chip pins that need to be reused and the logic function signals reused by each pin, design a function grouping table to divide several logic function signals that need to be switched at the same time into the same group, run an automated script based on the pin multiplexing table and the function grouping table to generate the design code of the function configuration module, the pin multiplexing control generation module and the function to pin mapping module, the pin multiplexing table includes the pin name, function Signal name and signal direction, function grouping table, each GPIO signal is treated as an independent group, and other function signals that need to be switched at the same time are treated as a group. The automation script generates codes for the corresponding relationship between function signals and pins. Each code corresponds to a complete set of pin mapping relationships. For the pin multiplexing table and function grouping table, the coding results that may be generated by the automation script, when the function needs to be switched, the software writes the code into the function configuration module at one time to achieve the purpose of switching several pin functions at the same time. The pin multiplexing control module decodes the coding information in the function configuration module, and combines the function signal direction information in the pin multiplexing table to realize the function control of several pins at the same time. Under the control of the pin multiplexing control generation signal of the function to pin mapping module, the switching of the mapping relationship between function and pin is realized;

[0017] In the module installation step, the internal function module provides several function groups, each function group consists of several function signals, and some function signals between function groups are allowed to overlap or not overlap. The function configuration module encodes the pin multiplexing based on the function group, and the encoding feature is in each encoding;

[0018] The specific implementation steps are as follows: the mapping of functional groups in pins is complete, and there is no situation where some pins in the same functional group correspond to pins while other pins do not correspond to pins. The pin multiplexing control generation module can decode the pin multiplexing code, generate a control signal for mapping control functions to pins, and group the pin functions based on the functions to ensure that the pins in the same functional group can change simultaneously during the switching process. The pin decoding table and the pin function mapping module can be automatically generated.

[0019] First, a pin multiplexing table is designed to determine the number of reusable pins, the name and direction of the internal function signal, and then combined with the function grouping table, the coding information of the group control pin function is generated to facilitate the programmer to change several pin control codes at one time, and then through the decoding of the pin multiplexing control generation module and the synergy of the function to pin mapping module, the function of batch switching of pin functions by function is completed. The above encoding, decoding and mapping processes are automatically generated by automated scripts, and there is no need to manually modify the code file, which reduces the possibility of errors caused by artificial modification of signals and is safer and more reliable. The invention of batch switching of pin functions by function has the characteristics of rapid switching, avoiding logical errors, hardware failures and device damage.

[0020] The working principle of the present invention is: the method for implementing the pin multiplexing device comprises the following steps:

[0021] S1: Module installation steps: first, select the internal function module, chip pin module and function to pin mapping module, pin multiplexing control generation module and function configuration module for standby, then connect the internal function module and chip pin module with the function to pin mapping module, the function configuration module accepts the configuration of the software, generates a configuration signal to the pin multiplexing control generation module, and controls the mapping relationship between the function and the pin mapping module under the corresponding configuration signal;

[0022] S2: Specific implementation steps: design a pin multiplexing table to determine the number of reusable pins and the multiplexing relationship among chip pins, design a function grouping table to determine the function pins that need to be switched at the same time and group them, run an automated script based on the pin multiplexing table and the function grouping table to generate pin coding, and generate the coding information of the function configuration and the decoding information of the pin multiplexing control according to the function grouping. First, design a pin multiplexing table to determine the chip pins that need to be reused and the logic function signals reused by each pin, design a function grouping table to divide several logic function signals that need to be switched at the same time into the same group, run an automated script based on the pin multiplexing table and the function grouping table to generate the design code of the function configuration module, the pin multiplexing control generation module and the function to pin mapping module, the pin multiplexing table includes the pin name, function Signal name and signal direction, function grouping table, each GPIO signal is treated as an independent group, and other function signals that need to be switched at the same time are treated as a group. The automation script generates codes for the corresponding relationship between function signals and pins. Each code corresponds to a complete set of pin mapping relationships. For the pin multiplexing table and function grouping table, the coding results that may be generated by the automation script, when the function needs to be switched, the software writes the code into the function configuration module at one time to achieve the purpose of switching several pin functions at the same time. The pin multiplexing control module decodes the coding information in the function configuration module, and combines the function signal direction information in the pin multiplexing table to realize the function control of several pins at the same time. Under the control of the pin multiplexing control generation signal of the function to pin mapping module, the switching of the mapping relationship between function and pin is realized;

[0023] In the module installation step, the internal function module provides several function groups, each function group consists of several function signals, and some function signals between function groups are allowed to overlap or not overlap. The function configuration module encodes the pin multiplexing based on the function group, and the encoding feature is in each encoding;

[0024] The specific implementation steps are as follows: the mapping of functional groups in pins is complete, and there is no situation where some pins in the same functional group correspond to pins while other pins do not correspond to pins. The pin multiplexing control generation module can decode the pin multiplexing code, generate a control signal for mapping control functions to pins, and group the pin functions based on the functions to ensure that the pins in the same functional group can change simultaneously during the switching process. The pin decoding table and the pin function mapping module can be automatically generated.

[0025] Provided is a method for quickly switching pins to avoid logic errors, hardware failures and device damage. The basic principle is to establish a function-to-pin view from the perspective of function grouping, and complete the function switching of related pins in batches through the switching of functions. At the same time, in order to cooperate with the above purpose, the present invention defines a series of function mapping views, and uses an automated script method to complete some functions. The implementation method of group-controlled pin reuse is first to design a pin reuse table, determine the number of reusable pins, and the name and direction of the internal function signal, and then combine the function grouping table to generate coding information for group control pin functions, so as to facilitate programmers to change several pin control codes at one time, and then through the decoding of the pin reuse control generation module and the synergistic effect of the function-to-pin mapping module, the function of batch switching pin functions by function is completed. The above encoding, decoding and mapping processes are automatically generated by automated scripts, and there is no need to manually modify the code file, which reduces the possibility of errors caused by artificial signal modification, and is safer and more reliable. The invention of batch switching pin functions by function has the characteristics of rapid switching, avoiding logic errors, hardware failures and device damage.

[0026] What is described above is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for implementing a pin multiplexing device, characterized in that: The method for implementing the pin multiplexing device comprises the following steps: S1: Module installation steps: first, select the internal function module, chip pin module and function to pin mapping module, pin multiplexing control generation module and function configuration module for standby, then connect the internal function module and chip pin module with the function to pin mapping module, the function configuration module accepts the configuration of the software, generates a configuration signal to the pin multiplexing control generation module, and controls the mapping relationship between the function and the pin mapping module under the corresponding configuration signal; S2: Specific implementation steps: design a pin multiplexing table to determine the number of reusable pins and the multiplexing relationship among chip pins, design a function grouping table to determine the function pins that need to be switched at the same time and group them, run an automated script based on the pin multiplexing table and the function grouping table to generate pin coding, and generate the coding information of the function configuration and the decoding information of the pin multiplexing control according to the function grouping. First, design a pin multiplexing table to determine the chip pins that need to be reused and the logic function signals reused by each pin, design a function grouping table to divide several logic function signals that need to be switched at the same time into the same group, run an automated script based on the pin multiplexing table and the function grouping table to generate the design code of the function configuration module, the pin multiplexing control generation module and the function to pin mapping module, the pin multiplexing table includes the pin name, function Signal name and signal direction, function grouping table, each GPIO signal is treated as an independent group, and other function signals that need to be switched at the same time are treated as a group. The automation script generates codes for the corresponding relationship between function signals and pins. Each code corresponds to a complete set of pin mapping relationships. For the pin multiplexing table and function grouping table, the coding results that may be generated by the automation script, when the function needs to be switched, the software writes the code into the function configuration module at one time to achieve the purpose of switching several pin functions at the same time. The pin multiplexing control module decodes the coding information in the function configuration module, and combines the function signal direction information in the pin multiplexing table to realize the function control of several pins at the same time. Under the control of the pin multiplexing control generation signal of the function to pin mapping module, the switching of the mapping relationship between function and pin is realized; In the module installation step, the internal function module provides several function groups, each function group is composed of several function signals, and some function signals between the function groups are allowed to overlap or not overlap, and the function configuration module encodes the pin multiplexing based on the function group, and the encoding feature is in each encoding; In the specific implementation steps, the mapping of functional groups in pins is complete, and there is no situation where some pins in the same functional group correspond to pins and other parts do not correspond to pins. The pin multiplexing control generation module can decode the pin multiplexing code, generate a control signal for mapping the control function to the pin, and group the pin functions based on the function to ensure that the pins in the same functional group can change simultaneously during the switching process. The pin decoding table and the pin function mapping module can be automatically generated.

2. The method for implementing a pin multiplexing device according to claim 1, characterized in that: In the module installation step, the chip pin module related signals may be connected to several functional signals depending on the configuration, and can only be connected to one functional signal under the same configuration. The function-to-pin mapping module provides the connection between the functional signal and the internal connection signal of the pin. Depending on the configuration, the connection may be many-to-many, and under the same configuration, the connection can only be one-to-one. The function configuration module provides the encoding information of the mapping of the logic function signal to the internal connection signal of the pin at the level of all chip pins. The pin multiplexing control generation module decodes the function configuration information and generates control information for the function-to-pin mapping module.

Citation Information

Patent Citations

  • Chip and implementation method for multiplexing pins of chip

    CN110647485A

  • Method and system for automatically realizing multiplexing of IO pins of SOC

    CN113987990A

  • Method and program for emulating logic

    JP2011070343A

  • Method and apparatus for pin multiplexing

    WO2015196578A1