CN116049081B - SMBus slave digital module design method and device - Google Patents

SMBus slave digital module design method and device Download PDF

Info

Publication number
CN116049081B
CN116049081B CN202211726418.1A CN202211726418A CN116049081B CN 116049081 B CN116049081 B CN 116049081B CN 202211726418 A CN202211726418 A CN 202211726418A CN 116049081 B CN116049081 B CN 116049081B
Authority
CN
China
Prior art keywords
digital module
smbus
slave digital
read
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211726418.1A
Other languages
Chinese (zh)
Other versions
CN116049081A (en
Inventor
许晓亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Cetc Xingtuo Technology Co ltd
Original Assignee
Chengdu Cetc Xingtuo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Cetc Xingtuo Technology Co ltd filed Critical Chengdu Cetc Xingtuo Technology Co ltd
Priority to CN202211726418.1A priority Critical patent/CN116049081B/en
Publication of CN116049081A publication Critical patent/CN116049081A/en
Application granted granted Critical
Publication of CN116049081B publication Critical patent/CN116049081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/17Interprocessor communication using an input/output type connection, e.g. channel, I/O port
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Transfer Systems (AREA)

Abstract

The application discloses a design method and a device of an SMBus slave digital module, wherein the SMBus slave digital module firstly receives a device address, a read-write address and read data sent by master equipment, converts the read-write address and the read data into AHB bus information, then accesses a plurality of intra-chip modules in a chip according to the AHB bus information, and finally receives feedback data returned by the plurality of intra-chip modules. The SMBus slave digital module enables the master device outside the chip to access the content of the SMBus slave digital module and the registers in each on-chip module, and the content is not required to pass through JTAG or SWD interfaces. The SMBus slave digital module can also support multiple access formats, and the master device outside the chip can determine whether to access 1 or multiple words by issuing different command codes, so that the access efficiency of the SMBus read-write register is effectively improved.

Description

SMBus slave digital module design method and device
Technical Field
The application relates to the technical field of chip data transmission, in particular to a design method and device of an SMBus slave digital module.
Background
SMBus is a low rate communication that is used in mobile PC or desktop PC systems. It is mainly to control devices on the motherboard and collect corresponding information via an inexpensive and powerful bus (consisting of two wires). The SMBus provides a control bus for such tasks as system and power management, and the system using the SMBus can save the pin count of the device by using the SMBus to send and receive messages between the devices instead of using separate control lines.
The current asec chip design commonly realizes an SMBus module with an AMBA APB slave interface, which is generated by Synopsys DESIGN WARE, and is an SMBus master relative to other SMBus devices. The SMBus module is realized by the design of an asic chip, but the supported access format is simpler, the read-write efficiency is lower, the AHB interface of the AMBA 2.0 standard is not realized, the data received by the SMBus bus is sent out through the AHB interface, and if other master modules in the chip are also used for accessing registers in the chip, the arbitration of the access can not be carried out by matching with an arbitration module conforming to the AMBA 2.0 standard.
Disclosure of Invention
The application aims to overcome the defects of the prior art, and provides a design method and a device for an SMBus slave digital module, which are used for accessing the content of each register in a chip through an SMBus interface by master equipment, and can support reading and writing of a plurality of words without a JTAG or SWD interface, so that the access efficiency of the SMBus read-write register is effectively improved.
The aim of the application is achieved by the following technical scheme:
In a first aspect, the present application provides a method for designing an SMBus slave digital module, where the method is applied to an SMBus slave digital module in a chip, the chip is connected to a master device, and the SMBus slave digital module is connected to a plurality of intra-chip modules in the chip, and includes:
The SMBus slave digital module receives the device address, the read-write address and the read data sent by the master device;
The SMBus slave digital module converts the read-write address and the read data into AHB bus information;
the SMBus slave digital module accesses a plurality of intra-chip modules in the chip according to the AHB bus information;
The SMBus slave digital module receives feedback data returned by the plurality of intra-chip modules.
Optionally, the SMBus slave digital module includes an SMBus control component and an ahb_ctrl control component, and the step of converting the read-write address and the read data into AHB bus information by the SMBus slave digital module includes:
the SMBus control part sends the received read-write address to the AHB_CTRL control part through an ADDR bus;
the SMBus control component sends the received read data to the AHB_CTRL control component over a WDATA bus;
the ahb_ctrl control component converts the read-write address and the read data into AHB bus information. Optionally, the AHB bus information complies with AMBA 2.0 timing specification.
Optionally, the step of receiving, by the SMBus slave digital module, the device address, the read-write address and the read data sent by the master device includes:
the master device sends a starting instruction to enable the SMBus slave digital module to be started;
the master device sends a device address to the SMBus slave digital module, and the SMBus slave digital module feeds back an ACK signal;
If the read-write bit in the device address is 0, indicating that writing operation is to be performed, the master device sends a command code, and the SMBus slave digital module feeds back an ACK signal;
The master device sends byte count numbers, and the SMBus slave digital module feeds back ACK signals;
the master device sends a read-write address, and the SMBus slave digital module feeds back an ACK signal;
if the read-write bit 1 in the equipment address indicates that the read operation is to be performed, the SMBus slave digital module feeds back an ACK signal;
And the AHB_CTRL control component initiates a read request to a plurality of intra-chip modules according to the read-write address sent by the master device to obtain read data.
Optionally, after the master device sends a command code, the SMBus slave digital module further includes:
And if the check bit in the command code is 1, the master device sends out the check code, and the SMBus slave digital module feeds back an ACK signal.
In a second aspect, the present application further provides an SMBus slave digital module design apparatus, where the apparatus is applied to an SMBus slave digital module in a chip, the chip is connected to a master device, and the SMBus slave digital module is connected to a plurality of on-chip modules in the chip, and includes:
The SMBus slave digital module receives the device address, the read-write address and the read data sent by the master device;
The SMBus slave digital module converts the read-write address and the read data into AHB bus information;
the SMBus slave digital module accesses a plurality of intra-chip modules in the chip according to the AHB bus information;
The SMBus slave digital module receives feedback data returned by the plurality of intra-chip modules.
In a third aspect, the present application also proposes a computer device, the computer device comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the SMBus slave digital module design method according to any of the first aspects.
In a fourth aspect, the present application also proposes a computer readable storage medium, in which a computer program is stored, the computer program being loaded and executed by a processor to implement the SMBus slave digital module design method according to any of the first aspects.
The above-mentioned main scheme of the application and its various further alternatives can be freely combined to form multiple schemes, which are all the schemes that the application can adopt and claim; and the application can be freely combined between the (non-conflicting choices) choices and between the choices and other choices. Various combinations will be apparent to those skilled in the art from a review of the present disclosure, and are not intended to be exhaustive or all of the present disclosure.
The application has the beneficial effects that:
The SMBus slave digital module provided by the first embodiment of the application enables the master equipment outside the chip to access the content of the SMBus slave digital module and the registers in each on-chip module, and does not need to pass through JTAG or SWD interfaces.
The SMBus slave digital module provided by the embodiment of the application can support a plurality of access formats, and the master device outside the chip can determine whether to access 1 or a plurality of words by issuing different command codes (command codes), so that the access efficiency of the SMBus read-write register is effectively improved.
Thirdly, because of the AHB interface of the AMBA 2.0 specification, data is transmitted through the AHB interface, if other master modules are arranged in the chip, the registers in the chip are accessed, and the arbitration of the access can be carried out by matching with an arbitration module conforming to the AMBA 2.0 specification.
Drawings
Fig. 1 shows the connection relationship of the SMBus module and other modules in the related art.
Fig. 2 shows a schematic diagram of connection between an SMBus slave digital module and a master device according to an embodiment of the present application.
Fig. 3 shows an internal schematic diagram of an SMBus slave digital module provided by an embodiment of the present application.
FIG. 4 shows a master device reading 1 word of registers in the SMBus slave digital module.
Fig. 5 shows an access format diagram of function=011.
Fig. 6 shows an access format diagram of function=100.
Fig. 7 shows an access format diagram of function=101.
Fig. 8 shows an access format diagram of function=110.
Fig. 9 shows an access format diagram of function=111.
Detailed Description
Other advantages and effects of the present application will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present application with reference to specific examples. The application may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present application. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 shows a connection relationship between an SMBus module and other modules in the prior art, where an on-chip SMBus in the chip in the prior art is a slave module with respect to an off-chip SMBus device, and an off-chip SMBus device is a slave device with respect to an on-chip SMBus, and the master-slave relationship between the on-chip SMBus and the off-chip SMBus device is that the on-chip SMBus is the master, and then the off-chip SMBus device is the slave, and other modules in the chip configure the SMBus module through an APB bus interface, and then the SMBus actively initiates an access request to other SMBus devices outside the chip. Compared with other SMBus devices, the off-chip SMBus device has the advantages that the supported access format is simpler, and the read-write efficiency is lower. In addition, because the on-chip SMBus uses the APB bus interface to communicate with each on-chip module of the chip, the AMBA 2.0 standard AHB interface cannot be implemented. And sending out the data received by the SMBus bus through an AHB interface, and if other master modules in the chip are also used for accessing registers in the chip, performing access arbitration by matching with an arbitration module conforming to the AMBA 2.0 specification.
Therefore, in order to solve the above-mentioned problem, the present application proposes a design method of SMBus slave digital module, so that the on-chip Bus module is an SMBus slave digital module with respect to the off-chip SMBus device, and the on-chip Bus module is used as a slave, and the on-chip Bus module is exchanged with the master-slave relationship in the prior art, so that not only multiple access formats are supported, but also the read-write efficiency of the host to other on-chip modules through the SMBus is effectively improved, and the AHB interface of AMBA 2.0 specification is implemented, and the design method of the SMBus slave digital module is described in detail.
Referring to fig. 2, fig. 2 shows a connection schematic diagram of an SMBus slave digital module and a master device, where the chip includes an SMBus slave digital module, the SMBus slave digital module is connected to an SMBus interface of the chip by using a data line and a clock line, the other end of the interface is connected to the master device, the master device is another SMBus device, the on-chip SMBus slave digital module is further connected to a plurality of on-chip modules in the chip by an AHB bus, and the design method of the SMBus slave digital module includes the following steps:
The SMBus slave digital module receives the device address, the read-write address and the read data sent by the master device;
The SMBus slave digital module converts the read-write address and the read data into AHB bus information;
The SMBus slave digital module accesses a plurality of intra-chip modules in the chip according to the AHB bus information;
the SMBus slave digital module receives feedback data returned by the plurality of intra-chip modules.
Referring to fig. 3 with reference to fig. 2, fig. 3 shows an internal schematic diagram of an SMBus slave digital module according to an embodiment of the present application, where the SMBus slave digital module includes an SMBus control unit and an ahb_ctrl control unit, and the SMBus control unit and the ahb_ctrl control unit are connected through an ADDR bus, a read data bus, and a write data bus. The step of converting the read-write address and the read data into AHB bus information includes:
The SMBus control part sends the received read-write address to the AHB_CTRL control part through an ADDR bus;
the SMBus control unit sends the received read data to the AHB_CTRL control unit through the WDATA bus;
The ahb_ctrl control unit converts read and write addresses and read data into AHB bus information.
The Smaster equipment outside the chip sends read-write address and read data by utilizing the data line and the clock line and the SMBus bus interface of the chip, the read-write address and the read data are converted into AHB bus information which accords with the AMBA 2.0 time sequence specification through the AHB_CTRL control component, then the AHB bus information accesses a plurality of intra-chip modules in the chip, the intra-chip modules feed back the read data, and the read data are transmitted to the SMBus bus interface through the SMBus slave digital module until the read data are finally transmitted to the master equipment.
Optionally, the substep of the SMBus slave digital module receiving the device address, the read-write address and the read data sent by the master device includes:
The master device sends a starting instruction to enable the SMBus slave digital module to be started;
The master device sends a device address to the SMBus slave digital module, and the SMBus slave digital module feeds back an ACK signal;
If the read-write bit in the device address is 0, indicating that writing operation is to be performed, transmitting a command code by the master device, and feeding back an ACK signal by the SMBus slave digital module;
the master device sends byte counting numbers, and the SMBus slave digital module feeds back an ACK signal;
the master device sends a read-write address, and the SMBus slave digital module feeds back an ACK signal;
if the read-write bit 1 in the device address indicates that the read operation is to be performed, the SMBus slave digital module feeds back an ACK signal;
the AHB_CTRL control component initiates read requests to a plurality of intra-chip modules according to read-write addresses sent by the master device to obtain read data.
If the check bit in the command code is 1, the master device sends out the check code, and the SMBus slave digital module feeds back an ACK signal.
It should be noted that, the SMBus slave digital module provided in the embodiment of the present application can support multiple access formats, and the off-chip SMBus device can determine to access 1 word (32 bits), 2 words (64 bits), 4 words (128 bits), or multiple words by issuing different command codes (command codes), please refer to fig. 4, fig. 4 shows a schematic diagram of a master device reading 1 word of a register in the SMBus slave digital module, and in combination with table 1, table 1 shows fields corresponding to command codes (command codes).
TABLE 1
The white background data in fig. 4 is issued by the master device, and the gray background data is fed back to the master device by the SMBus slave digital module. Table 2 shows fields corresponding to another command code (command code):
TABLE 2
Referring to fig. 4, table 1 and table 2, next, FUCTION =3' b110 is taken as an example, and the flow of the access format is as follows:
1. the master device initiates a START starting instruction to START the SMBus slave digital module;
2. The master device feeds back an ACK signal to the master device from a device address SLAVE ADDRESS (7' h 20) to the SMBus slave digital module;
3. Since the read/write bit (W/R bit) is 0, which indicates that a write operation is to be performed, the master device sends an 8-bit command code (command code), the 0 th END bit of the command code is 0, the 1 st START bit is 1, which indicates that the first transaction in the command across multiple transactions is performed, the 2 nd to 4 th bits indicate FUCTION =010 to perform a short-format word reading operation, the 7 th PEC check is 1, the master device sends out a check code, and the SMBus slave digital module feeds back an ACK signal;
4. The master device sends an 8-bit byte count number (byte count) to the SMBus slave digital module, and the SMBus slave digital module feeds back an ACK signal;
5. The master device sends 4 8-bit read-write addresses (offset byte) to the SMBus slave digital module, and the SMBus slave digital module feeds back an ACK signal every time the SMBus slave digital module receives 1 8-bit read-write address;
6. Because the 7 th PEC in the 8-bit command code is checked to be 1 by the master device, the master device continuously sends the 8-bit PEC check code to the SMBus slave digital module, and the SMBus slave digital module feeds back an ACK signal.
7. The master device sends a STOP instruction.
8. Because the master device sends the 2 nd bit to 4 th bit of the 8-bit command code to represent FUCTION =010 to perform short-format word reading operation, the master device initiates a START starting instruction to START the SMBus slave digital module;
9. Device address SLAVE ADDRESS (7' h 20) to the SMBus slave digital module, which feeds back an ACK signal to the master device;
10. A read-write bit (W/R bit) of 0 indicates that a write operation is to be performed, at this time, the master device sends an 8-bit command code (command code), the 0 th END bit of the command code is 1, the 1 st START bit is 0, which indicates the last transaction in the commands that span multiple transactions, the 2 nd to 4 th bits indicate FUCTION =010 to perform a short-format read operation, the 7 th PEC check is 1, the master device sends out a check code, and the SMBus slave digital module feeds back an ACK signal;
11. Master device initiates a START START instruction to cause SMBus slave digital module to START
12. The master device feeds back an ACK signal to the master device from a device address SLAVE ADDRESS (7' h 20) to the SMBus slave digital module;
13. If the read-write bit (W/R bit) is 1, the SMBus slave digital module feeds back an ACK signal;
14. The SMBus slave digital module initiates an AHB read request to a plurality of on-chip modules in a chip through an AHB CTRL control component by using 4 8-bit read-write addresses (offset bytes) in the step 5, and obtains and stores corresponding 32-bit read data RDATA;
15. the SMBus slave digital module sends an 8-bit byte count number (byte count) in the 4 th step to a master device, and the master device feeds back an ACK signal;
16. The SMBus slave digital module sends the stored 32-bit read data RDATA to the master device, and the master device can receive a feedback ACK signal every time 1 8-bit read data RDATA is sent.
17. And (4) repeating the step (14), adding 4 to the 32-bit read-write address by the SMBus slave digital module, initiating an AHB read request to a plurality of intra-chip modules in the chip by the AHB CTRL control component, obtaining and storing the corresponding 32-bit read data RDATA, sending the stored 32-bit read data RDATA to a master device by the SMBus slave digital module, and receiving a master device feedback ACK signal after each time the stored 32-bit read data RDATA is sent to 1 8-bit read data RDATA.
18. And (2) repeating the step (14), adding 8 to the 32-bit read-write address by the SMBus slave digital module, initiating an AHB read request to a plurality of intra-chip modules in the chip by the AHB CTRL control component, obtaining and storing the corresponding 32-bit read data RDATA, sending the stored 32-bit read data RDATA to a master device by the SMBus slave digital module, and receiving a master device feedback ACK signal after each time the stored 32-bit read data RDATA is sent to 1 8-bit read data RDATA.
19. And (2) repeating the step (14), adding 12 to the 32-bit read-write address by the SMBus slave digital module, initiating an AHB read request to a plurality of intra-chip modules in the chip by the AHB CTRL control component, obtaining and storing the corresponding 32-bit read data RDATA, sending the stored 32-bit read data RDATA to a master device by the SMBus slave digital module, and receiving a master device feedback ACK signal after each time the stored 32-bit read data RDATA is sent to 1 8-bit read data RDATA.
20. Because the master device sends the 7 th PEC check of the 8-bit command codes to be 1, the master device continues to send the 8-bit PEC check codes to the SMBusslave digital module, and the SMBus slave digital module feeds back an ACK signal.
21. The master device sends a STOP instruction.
In addition, since FUCTION has different fields, fig. 5 to 9 show access format diagrams under different FUCTION fields, fig. 5 shows access format diagrams with function=011, and the master device writes 1 word of a register in the SMBus slave digital module; fig. 6 shows an access format diagram with function=100, and the master device continuously reads 2 words of a register in the SMBus slave digital module; fig. 7 shows an access format diagram of function=101, and the master device writes 2 words of registers in the SMBus slave digital module successively; fig. 8 shows an access format diagram with function=110, and the master device continuously reads 4 words of registers in the SMBus slave digital module; fig. 9 shows a schematic diagram of an access format with function=111, where the master device continuously writes 4 words in a register in the SMBus slave digital module, and the flow of the access format is as described above, and will not be described in detail here.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
The SMBus slave digital module provided by the first embodiment of the application enables the master equipment outside the chip to access the content of the SMBus slave digital module and the registers in each on-chip module, and does not need to pass through JTAG or SWD interfaces.
The SMBus slave digital module provided by the embodiment of the application can support a plurality of access formats, and the master device outside the chip can determine whether to access 1 or a plurality of words by issuing different command codes (command codes), so that the access efficiency of the SMBus read-write register is effectively improved.
Thirdly, because of the AHB interface of the AMBA 2.0 specification, data is transmitted through the AHB interface, if other master modules are arranged in the chip, the registers in the chip are accessed, and the arbitration of the access can be carried out by matching with an arbitration module conforming to the AMBA 2.0 specification.
In addition, the embodiment of the application also provides a SMBus slave digital module design device which is applied to the SMBus slave digital module in the chip, the chip is connected with master equipment, and the SMBus slave digital module is connected with a plurality of on-chip modules in the chip.
The SMBus slave digital module receives the device address, the read-write address and the read data sent by the master device;
The SMBus slave digital module converts the read-write address and the read data into AHB bus information;
The SMBus slave digital module accesses a plurality of intra-chip modules in the chip according to the AHB bus information;
the SMBus slave digital module receives feedback data returned by the plurality of intra-chip modules.
The embodiment of the application provides a computer device, which can implement the steps in any embodiment of the SMBus slave digital module design method provided by the embodiment of the application, so that the beneficial effects of the SMBus slave digital module design method provided by the embodiment of the application can be implemented, and detailed descriptions of the previous embodiments are omitted.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions capable of being loaded by a processor to perform the steps of any one of the embodiments of the SMBus slave digital module design method provided by the embodiment of the present application are stored.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the storage medium may perform the steps in any of the embodiments of the SMBus slave digital module design method provided by the embodiments of the present application, the beneficial effects that any of the embodiments of the SMBus slave digital module design method provided by the embodiments of the present application may be achieved are detailed in the previous embodiments, and will not be described herein.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the application.

Claims (6)

1. The SMBus slave digital module design method is characterized in that the method is applied to an SMBus slave digital module in a chip, the chip is connected with a master device, the SMBus slave digital module is connected with a plurality of on-chip modules in the chip, and the SMBus slave digital module comprises an SMBus control component and an AHB_CTRL control component, and comprises the following steps:
the master device sends a starting instruction to enable the SMBus slave digital module to be started;
the master device sends a device address to the SMBus slave digital module, and the SMBus slave digital module feeds back an ACK signal;
If the read-write bit in the device address is 0, indicating that writing operation is to be performed, the master device sends a command code, and the SMBus slave digital module feeds back an ACK signal;
The master device sends byte count numbers, and the SMBus slave digital module feeds back ACK signals;
the master device sends a read-write address, and the SMBus slave digital module feeds back an ACK signal;
if the read-write bit 1 in the equipment address indicates that the read operation is to be performed, the SMBus slave digital module feeds back an ACK signal;
the AHB_CTRL control component initiates a read request to a plurality of intra-chip modules according to the read-write address sent by the master device to obtain read data;
the SMBus control part sends the received read-write address to the AHB_CTRL control part through an ADDR bus;
the SMBus control component sends the received read data to the AHB_CTRL control component over a WDATA bus;
the ahb_ctrl control means converting the read-write address and the read data into AHB bus information;
the SMBus slave digital module accesses a plurality of intra-chip modules in the chip according to the AHB bus information;
The SMBus slave digital module receives feedback data returned by the plurality of intra-chip modules.
2. The SMBus slave digital module design method of claim 1, wherein said AHB bus information complies with AMBA 2.0 timing specification.
3. The SMBus slave digital module design method of claim 1, wherein after said master device sends a command code, said SMBus slave digital module feedback ACK signal further comprises:
And if the check bit in the command code is 1, the master device sends out the check code, and the SMBus slave digital module feeds back an ACK signal.
4. An SMBus slave digital module design apparatus, wherein the apparatus is applied to an SMBus slave digital module in a chip, the chip is connected to a master device, the SMBus slave digital module is connected to a plurality of on-chip modules in the chip, the SMBus slave digital module includes an SMBus control component and an ahb_ctrl control component, and the apparatus comprises:
the master device sends a starting instruction to enable the SMBus slave digital module to be started;
the master device sends a device address to the SMBus slave digital module, and the SMBus slave digital module feeds back an ACK signal;
If the read-write bit in the device address is 0, indicating that writing operation is to be performed, the master device sends a command code, and the SMBus slave digital module feeds back an ACK signal;
The master device sends byte count numbers, and the SMBus slave digital module feeds back ACK signals;
the master device sends a read-write address, and the SMBus slave digital module feeds back an ACK signal;
if the read-write bit 1 in the equipment address indicates that the read operation is to be performed, the SMBus slave digital module feeds back an ACK signal;
the AHB_CTRL control component initiates a read request to a plurality of intra-chip modules according to the read-write address sent by the master device to obtain read data;
the SMBus control part sends the received read-write address to the AHB_CTRL control part through an ADDR bus;
the SMBus control component sends the received read data to the AHB_CTRL control component over a WDATA bus;
the ahb_ctrl control means converting the read-write address and the read data into AHB bus information;
the SMBus slave digital module accesses a plurality of intra-chip modules in the chip according to the AHB bus information;
The SMBus slave digital module receives feedback data returned by the plurality of intra-chip modules.
5. A computer device comprising a processor and a memory, wherein the memory has stored therein a computer program that is loaded and executed by the processor to implement the SMBus slave digital module design method of any of claims 1-3.
6. A computer-readable storage medium, wherein a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the SMBus slave digital module design method of any one of claims 1-3.
CN202211726418.1A 2022-12-30 2022-12-30 SMBus slave digital module design method and device Active CN116049081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211726418.1A CN116049081B (en) 2022-12-30 2022-12-30 SMBus slave digital module design method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211726418.1A CN116049081B (en) 2022-12-30 2022-12-30 SMBus slave digital module design method and device

Publications (2)

Publication Number Publication Date
CN116049081A CN116049081A (en) 2023-05-02
CN116049081B true CN116049081B (en) 2024-05-28

Family

ID=86128898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211726418.1A Active CN116049081B (en) 2022-12-30 2022-12-30 SMBus slave digital module design method and device

Country Status (1)

Country Link
CN (1) CN116049081B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117057286B (en) * 2023-10-11 2024-01-30 成都电科星拓科技有限公司 SMBus module level verification system based on UVM and VIP

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012979A (en) * 2010-11-15 2011-04-13 深圳市华威世纪科技股份有限公司 Embedded credible computing terminal
CN103605632A (en) * 2013-11-18 2014-02-26 山东大学 Method and device for communication between AXI (advanced extensible interface) bus and AHB (advanced high-performance bus)
CN110765032A (en) * 2019-10-31 2020-02-07 英业达科技有限公司 Method for reading and writing I2C memory based on system management bus interface
CN111984562A (en) * 2020-09-07 2020-11-24 盛科网络(苏州)有限公司 Method for burst access control of register, electronic device and storage medium
CN114564427A (en) * 2022-03-01 2022-05-31 四川创安微电子有限公司 Bus bridge, system and method from AHB bus to I2C bus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10691838B2 (en) * 2014-06-20 2020-06-23 Cypress Semiconductor Corporation Encryption for XIP and MMIO external memories

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012979A (en) * 2010-11-15 2011-04-13 深圳市华威世纪科技股份有限公司 Embedded credible computing terminal
CN103605632A (en) * 2013-11-18 2014-02-26 山东大学 Method and device for communication between AXI (advanced extensible interface) bus and AHB (advanced high-performance bus)
CN110765032A (en) * 2019-10-31 2020-02-07 英业达科技有限公司 Method for reading and writing I2C memory based on system management bus interface
CN111984562A (en) * 2020-09-07 2020-11-24 盛科网络(苏州)有限公司 Method for burst access control of register, electronic device and storage medium
CN114564427A (en) * 2022-03-01 2022-05-31 四川创安微电子有限公司 Bus bridge, system and method from AHB bus to I2C bus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种I2C总线控制器的接口设计;宋杰;陈岚;冯燕;;信息与电子工程;20100825(第04期);全文 *
一种兼容SMBus协议的I2C总线控制器的设计;王芬芬;冯海英;丁柯;;电子与封装;20180920(第09期);全文 *

Also Published As

Publication number Publication date
CN116049081A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
JP5015177B2 (en) System, method and apparatus for supporting error check mode and non-error check mode using the same memory type
US5564114A (en) Method and an arrangement for handshaking on a bus to transfer information between devices in a computer system
US20030009432A1 (en) Access assurance for remote memory access over network
WO2007005553A1 (en) Serial ata port addressing
CN116049081B (en) SMBus slave digital module design method and device
CN110941578B (en) LIO design method and device with DMA function
US6766386B2 (en) Method and interface for improved efficiency in performing bus-to-bus read data transfers
US20030189573A1 (en) Method and apparatus for command translation and enforcement of ordering of commands
CN114461541A (en) Chip data reading method, writing method, device, equipment and storage medium
CN115691651A (en) Method and device for testing chip
CN112817899B (en) PCIE-based data transmission method and device, storage medium and electronic equipment
US4949246A (en) Adapter for transmission of data words of different lengths
US6742142B2 (en) Emulator, a data processing system including an emulator, and method of emulation for testing a system
CN107783927B (en) Circuit conversion system and method for connecting AXI interface and DMA interface
US7822040B2 (en) Method for increasing network transmission efficiency by increasing a data updating rate of a memory
US7062588B2 (en) Data processing device accessing a memory in response to a request made by an external bus master
JPH1055331A (en) Programmable read and write access signal and its method
US20090138673A1 (en) Internal memory mapped external memory interface
US8291270B2 (en) Request processing device, request processing system, and access testing method
US6898684B2 (en) Control chip with multiple-layer defer queue
US7162562B2 (en) Portable electronic system and accessing method thereof
US20050144331A1 (en) On-chip serialized peripheral bus system and operating method thereof
CN115686164A (en) Power supply terminal device, power supply system and non-transitory computer readable medium
US7596652B2 (en) Integrated circuit having processor and bridging capabilities
EP0979454A1 (en) Method and apparatus for supporting multiple overlapping address spaces on a shared bus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant