US7873795B2 - Multi-process support in a shared register - Google Patents

Multi-process support in a shared register Download PDF

Info

Publication number
US7873795B2
US7873795B2 US11/085,547 US8554705A US7873795B2 US 7873795 B2 US7873795 B2 US 7873795B2 US 8554705 A US8554705 A US 8554705A US 7873795 B2 US7873795 B2 US 7873795B2
Authority
US
United States
Prior art keywords
register
control
signal
combined signal
data
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, expires
Application number
US11/085,547
Other versions
US20060218355A1 (en
Inventor
Richard Brabant
Craig VanZante
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.)
Hewlett Packard Enterprise Development LP
Original Assignee
Hewlett Packard Development Co LP
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 Hewlett Packard Development Co LP filed Critical Hewlett Packard Development Co LP
Priority to US11/085,547 priority Critical patent/US7873795B2/en
Assigned to HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P. reassignment HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: BRABANT, RICHARD, VANZANTE, CRAIG
Publication of US20060218355A1 publication Critical patent/US20060218355A1/en
Application granted granted Critical
Publication of US7873795B2 publication Critical patent/US7873795B2/en
Assigned to HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP reassignment HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P.
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements
    • G06F9/30101Special purpose registers

Definitions

  • the present invention relates to multi-process support in a shared register.
  • Control signals used for networking processors are typically stored in registers for access by processes executed by the processor. In situations where multiple processes are executed by the processor, one specific and dedicated register is allocated per individual set of control signals used by the processor. Each different set of control signals resides in a separate individual register. Because the control signals only require a few bits for storage, using an entire register leaves many unused bits.
  • Another approach to storing the control signal data in a shared register is to use a software locking mechanism to prevent writing to the register by concurrently executing processes.
  • the following steps are performed by execution of a sequence of instructions by the processor while disallowing execution of the instructions by another executing process.
  • the contents of the register are read and merged together with the control data to be written. All read values of the register not owned by the writing process are retained during the merge and the merged control data is then written to the register.
  • Management of the locking mechanism according to this approach is cumbersome and adds additional complexity to the executing processes.
  • the present invention provides a method of writing data to a selected portion of a register based on the contents of the data to be written.
  • a method aspect includes controlling write access to portions of a shared register, where the shared register stores a plurality of bits including one or more control bits and one or more data bits.
  • An access signal and a combined signal having a control portion and a data portion are received.
  • the data portion of the combined signal is written to the one or more data bits of the shared register corresponding to the control portion of the combined signal.
  • a shared register system embodiment includes a register having storage for one or more bits and a register access control.
  • the register access control is configured to receive an access signal and a combined signal comprising a control portion and a data portion.
  • the register access control is operatively connected with the register to control write access to the register based on the access signal and the control portion of the combined signal.
  • a system embodiment for controlling access to a register includes a register access control configured to receive an access signal and a combined signal comprising a control portion and a data portion.
  • the register access control is arranged to be connected with a register to control write access to the register based on the access signal and the control portion of the combined signal.
  • FIG. 1 is a high level block diagram of an embodiment of the present invention
  • FIG. 2 is a high level diagram of a register of the FIG. 1 embodiment.
  • FIG. 3 is a gate level block diagram of a portion of the FIG. 1 embodiment.
  • FIG. 1 depicts a high level block diagram of a portion of a network processor 100 used in a network component for handling network traffic, e.g., a network switch, etc.
  • Processor 100 includes logic devices, clock circuits, and other devices (not shown) in FIG. 1 in order to operate properly.
  • Network processor 100 executes instructions, e.g., firmware instructions stored in memory (not shown), causing the processor to perform networking operations.
  • the network component may transmit packets of information received from one location to another location via network links connected to the network component, e.g., wired or wireless network connections such as IEEE 802.3, 802.11, etc.
  • Network processor 100 includes a register 102 for storing information, e.g., control data related to configuration and operation of processes executed by network processor 100 . Although other sizes may be used in different embodiments, in one embodiment register 102 stores 32 bits of information. Register 102 receives, stores, and transmits information from/to other components of network processor 100 .
  • Network processor 100 further includes a register access control 104 connected to register 102 and controlling write access to the register.
  • a given process executed by processor 100 writes information for storage to register 102 via register access control 104 .
  • processor 100 executing a process attempting to write information to register 102 causes the processor to drive a combined signal 106 and a write select signal 108 to register access control 104 .
  • Combined signal 106 includes the information which is to be written to register 102 and write select signal 108 is required for enabling writing to the register.
  • Combined signal 106 includes one or more bits of information to be written and register access control 104 includes a corresponding one or more physical data lines for receiving the combined signal.
  • combined signal 106 includes a data portion and a control portion.
  • a set of control data defining the particular configuration includes several bits specifying configuration information for each of the executing processes. In one embodiment, 5 bits are used to specify the configuration for a particular executing process on a network processor. It is to be understood that more or less bits may be used depending on the specific implementation.
  • the processor 100 examines the control data bits to determine whether to perform a function, e.g., illuminate or flashlight emitting diodes (LEDs) on the network component.
  • LEDs e.g., illuminate or flashlight emitting diodes
  • some LEDs relate to the network interfaces, some relate to software status (e.g., error conditions), and others indicate hardware status (e.g., fan status, power supply status, etc).
  • the bits determine the control voltages of signals/pins on the network component. Separate processes monitor the status and request independent control of respective LEDs.
  • processor 100 examines the control data bits to determine a control configuration of network ports for setting parameters such as speed, duplex, enabling, options, etc. According to this embodiment, these signals stay internal to networking processor 100 and modify the processor's behavior. In an alternate embodiment, the signals are provided external to networking processor 100 .
  • control portion of the combined signal 106 identifies the particular set of bits of the register able to be written to by the combined signal. In an embodiment, four control bits are used to specify the writeability of each set of five bits making up the data portion of the combined signal 106 .
  • FIG. 2 depicts a high level view of information, e.g., combined signal 106 , stored in a 32 bit version of register 102 , described above.
  • register 102 stores information in four data sections 200 - 203 and four sets of corresponding control sections 204 - 207 .
  • register 102 includes 32 bits and stores 5 bits in each of the four data sections 200 - 203 and a single bit in each of the corresponding control sections 204 - 207 .
  • Bit 31 of control section 204 stores a bit value indicating whether a process is able to write data to bits 24 - 28 of data section 200 .
  • Bits 23 , 15 , and 7 respectively store bits values indicating whether a process is able to write data to bits 16 - 20 of data section 201 , bits 8 - 12 of data section 202 , and bits 0 - 4 of data section 203 .
  • data sections 200 - 203 may have different numbers of bits.
  • data sections 200 - 203 may include 1, 2, 3, 4, 6, or 7 bits according to the FIG. 2 version of register 102 .
  • register 102 may include more or less numbers of bits and data and control sections.
  • register access control 104 writes information to register 102 via a write line 110 .
  • the information written by register access control 104 over write line 110 includes bits making up the control sections 204 - 207 and bits making up the data sections 200 - 203 ( FIG. 2 ).
  • a read line 112 connects register 102 with register access control 104 to provide the contents of the register to the register access control. In this manner and according to the below described embodiment, register access control 104 writes select bits from, either or both, combined signal 106 and read line 112 to register 102 .
  • each line in FIG. 1 represents one or more lines according to the particular embodiment. Accordingly, with respect to the FIG. 2 register 102 embodiment, combined signal 106 , write line 110 , and read line 112 are lines able to transmit 32 bits of information. In one particular embodiment, combined signal 106 , write line 110 , and read line 112 each include 32 lines.
  • register access control 104 receives a combined signal 106 having a format similar to register 102 as depicted in FIG. 2 . That is, combined signal 106 includes data sections including control data for storage in register 102 and control sections for determining which data sections of the combined signal are to be written to the register. As described with respect to FIG. 2 , there is a correspondence between control sections and data sections.
  • register access control 104 selectively writes portions of either combined signal 106 and/or the signal received over read line 112 .
  • each process executed by processor 100 is able to share access to register 102 by virtue of the fact that each attempt to write to the register by a process includes a different control section which is set for enabling writing of a different corresponding data section of register 102 .
  • a first process is enabled to write bits 24 - 28 of data section 200 by setting bit 31 of control section 204 .
  • a second process is enabled to write bits 16 - 20 of data section 201 , bits 8 - 12 of data section 202 , and bits 0 - 4 of data section 203 by having bits 23 , 15 , and 7 of control sections 205 , 206 , and 207 being set.
  • a write attempt by the second process changes only the bits of the data sections for which the corresponding control section bits are enabled for the second process, i.e., control sections 205 , 206 , and 207 .
  • register access control 104 includes a set of four AND logic gates 300 - 303 connected with a set of four multiplexer gates 304 - 307 , respectively.
  • Each of AND logic gates 300 - 303 receives as input write select signal 108 and one of control sections 204 - 207 from combined signal 106 and provides an output signal to a corresponding one of the set of four multiplexer gates 304 - 307 .
  • Each multiplexer gate 304 - 307 receives as input one of data sections 200 - 203 from combined signal 106 and the corresponding data section from the signal over read line 112 from register 102 . That is, the multiplexer gate receives a data section for writing from combined signal 106 and the existing data section in register 102 . As described above, each multiplexer gate 304 - 307 also receives the output of AND logic gate 300 - 303 corresponding to the multiplexer gate as input.
  • AND logic gate 300 receives bit 31 of combined signal 106 and multiplexer gate 304 receives bits 24 - 28 of combined signal 106 and read line 112 signal.
  • AND logic gates 301 - 303 receive bits 23 , 15 , and 7 , respectively, and multiplexer gates 305 - 307 receive bits 16 - 20 , 8 - 12 , and 0 - 4 , respectively.
  • multiplexer gate 304 - 307 Based on the input from and logic gate 300 - 303 , multiplexer gate 304 - 307 provides as output to register 102 over write line 110 one of the two received input data sections. For example, assuming the first process described above attempts to write to register 102 , and logic gate 300 receives as input write select signal 108 and bit 31 of control section 204 . As described above, the write select signal 108 is received and bit 31 is set for the first process and based thereon AND logic gate 300 generates an enabling signal transmitted to multiplexer 304 as input causing the multiplexer to write the received data section of combined signal 106 to register 102 .
  • Register access control 104 includes a control section multiplexer gate 308 which receives as input the control section of combined signal 106 and the control section of read line 112 signal from register 102 register access control 104 also receives write select signal 108 as a control and put to select from among the other two inputs for transmission over write line 110 to register 102 .
  • Control section multiplexer gate 308 transmits the received controls section from combined signal 106 if write select signal 108 is received. If write select signal 108 is not received by multiplexer gate 308 , the multiplexer gate transmits the received control section from the read line 112 signal. In this manner, the existing control sections of register 102 are not over written without receipt of write select signal 108 .
  • Executable software accessing register 102 takes into account the presence of the control bits, e.g., the control section, in accessing the register. In order to retrieve information from register 102 , all bits except the data bits need to be masked. Executable software writing to register 102 needs to include the appropriate control bits in the data write to the register, i.e., combined signal 106 . Register 102 removes the need to perform a read/modify/write operation in order to preserve the other data bits stored in the register if a particular executable software access is not overwriting the entire contents.
  • the control bits e.g., the control section
  • executable software performs a write to the register and includes control bit 204 set to indicate write enable with respect to the data section.
  • the executable software need not be configured to read the contents of register 102 , modify the read contents to include the data section 200 to be written to the register, and then write the modified contents back to the register. In this manner, multiple steps may be eliminated in an embodiment.
  • the content of data sections 200 - 203 includes logically grouped together data bits controllable via a single control bit 204 - 207 . In this manner, a single process may control plural data bits in a data section.
  • control portion and the data portion are possible with a minimum of complexity.
  • concurrent and independent processes executing in the network component are able to easily share a register while storing multiple data portions each owned individually per each process.
  • the executable instruction overhead required for implementation is minimized to provide support for the data atomicity of shared registers used by multiple processors.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)

Abstract

A method of, shared register system and system for controlling access to a register are described. The shared register stores a plurality of bits including control and data bits. An access signal and a combined signal including a control portion and a data portion are received and the data portion of the combined signal is written to one or more data bits of the shared register corresponding to the control portion of the combined signal. A shared register system for controlling access to portions of a shared register includes a register having storage for bits and a register access control configured to receive an access signal and a combined signal. The register access control is operatively connected with the register to control write access to the register based on the access signal and the control portion of the combined signal.

Description

FIELD OF THE INVENTION
The present invention relates to multi-process support in a shared register.
BACKGROUND
Control signals used for networking processors are typically stored in registers for access by processes executed by the processor. In situations where multiple processes are executed by the processor, one specific and dedicated register is allocated per individual set of control signals used by the processor. Each different set of control signals resides in a separate individual register. Because the control signals only require a few bits for storage, using an entire register leaves many unused bits.
Another approach to storing the control signal data in a shared register is to use a software locking mechanism to prevent writing to the register by concurrently executing processes. Under this approach, the following steps are performed by execution of a sequence of instructions by the processor while disallowing execution of the instructions by another executing process. The contents of the register are read and merged together with the control data to be written. All read values of the register not owned by the writing process are retained during the merge and the merged control data is then written to the register. Management of the locking mechanism according to this approach is cumbersome and adds additional complexity to the executing processes.
SUMMARY
The present invention provides a method of writing data to a selected portion of a register based on the contents of the data to be written.
A method aspect includes controlling write access to portions of a shared register, where the shared register stores a plurality of bits including one or more control bits and one or more data bits. An access signal and a combined signal having a control portion and a data portion are received. The data portion of the combined signal is written to the one or more data bits of the shared register corresponding to the control portion of the combined signal.
A shared register system embodiment includes a register having storage for one or more bits and a register access control. The register access control is configured to receive an access signal and a combined signal comprising a control portion and a data portion. The register access control is operatively connected with the register to control write access to the register based on the access signal and the control portion of the combined signal.
A system embodiment for controlling access to a register includes a register access control configured to receive an access signal and a combined signal comprising a control portion and a data portion. The register access control is arranged to be connected with a register to control write access to the register based on the access signal and the control portion of the combined signal.
Still other advantages of the embodiments will become readily apparent to those skilled in the art from the following detailed description, wherein the preferred embodiments are shown and described, simply by way of illustration of the best mode contemplated of carrying out the invention. As will be realized, the invention is capable of other and different embodiments, and its several details are capable of modifications in various obvious respects, all without departing from the invention.
DESCRIPTION OF THE DRAWINGS
The present invention is illustrated by way of example, and not by limitation, in the figures of the accompanying drawings, wherein elements having the same reference numeral designations represent like elements throughout and wherein:
FIG. 1 is a high level block diagram of an embodiment of the present invention;
FIG. 2 is a high level diagram of a register of the FIG. 1 embodiment; and
FIG. 3 is a gate level block diagram of a portion of the FIG. 1 embodiment.
DETAILED DESCRIPTION
Writing data to a selected portion of a register based on the contents of the data to be written.
FIG. 1 depicts a high level block diagram of a portion of a network processor 100 used in a network component for handling network traffic, e.g., a network switch, etc. Processor 100 includes logic devices, clock circuits, and other devices (not shown) in FIG. 1 in order to operate properly. Network processor 100 executes instructions, e.g., firmware instructions stored in memory (not shown), causing the processor to perform networking operations. For example, the network component may transmit packets of information received from one location to another location via network links connected to the network component, e.g., wired or wireless network connections such as IEEE 802.3, 802.11, etc.
Network processor 100 includes a register 102 for storing information, e.g., control data related to configuration and operation of processes executed by network processor 100. Although other sizes may be used in different embodiments, in one embodiment register 102 stores 32 bits of information. Register 102 receives, stores, and transmits information from/to other components of network processor 100.
Network processor 100 further includes a register access control 104 connected to register 102 and controlling write access to the register. In an embodiment, a given process executed by processor 100 writes information for storage to register 102 via register access control 104.
In operation, processor 100 executing a process attempting to write information to register 102 causes the processor to drive a combined signal 106 and a write select signal 108 to register access control 104. Combined signal 106 includes the information which is to be written to register 102 and write select signal 108 is required for enabling writing to the register. Combined signal 106 includes one or more bits of information to be written and register access control 104 includes a corresponding one or more physical data lines for receiving the combined signal. Specifically, combined signal 106 includes a data portion and a control portion.
For a particular network processor 100, more than one set of instructions may be executed simultaneously, e.g., in a multiprocessing fashion. Each executing process executes independently from each other process. The particular configuration of the network component determines the scope of the executing process' control. A set of control data defining the particular configuration includes several bits specifying configuration information for each of the executing processes. In one embodiment, 5 bits are used to specify the configuration for a particular executing process on a network processor. It is to be understood that more or less bits may be used depending on the specific implementation.
In an embodiment, the processor 100 examines the control data bits to determine whether to perform a function, e.g., illuminate or flashlight emitting diodes (LEDs) on the network component. For example, some LEDs relate to the network interfaces, some relate to software status (e.g., error conditions), and others indicate hardware status (e.g., fan status, power supply status, etc). In this embodiment, the bits determine the control voltages of signals/pins on the network component. Separate processes monitor the status and request independent control of respective LEDs.
In another embodiment, processor 100 examines the control data bits to determine a control configuration of network ports for setting parameters such as speed, duplex, enabling, options, etc. According to this embodiment, these signals stay internal to networking processor 100 and modify the processor's behavior. In an alternate embodiment, the signals are provided external to networking processor 100.
Because register 102 may be shared among more than one executing process, the control portion of the combined signal 106 identifies the particular set of bits of the register able to be written to by the combined signal. In an embodiment, four control bits are used to specify the writeability of each set of five bits making up the data portion of the combined signal 106.
FIG. 2 depicts a high level view of information, e.g., combined signal 106, stored in a 32 bit version of register 102, described above. As depicted, register 102 stores information in four data sections 200-203 and four sets of corresponding control sections 204-207. In the FIG. 2 embodiment, register 102 includes 32 bits and stores 5 bits in each of the four data sections 200-203 and a single bit in each of the corresponding control sections 204-207. Bit 31 of control section 204 stores a bit value indicating whether a process is able to write data to bits 24-28 of data section 200. Bits 23, 15, and 7 respectively store bits values indicating whether a process is able to write data to bits 16-20 of data section 201, bits 8-12 of data section 202, and bits 0-4 of data section 203.
In an alternate embodiment, data sections 200-203 may have different numbers of bits. For example, data sections 200-203 may include 1, 2, 3, 4, 6, or 7 bits according to the FIG. 2 version of register 102. Further, register 102 may include more or less numbers of bits and data and control sections.
Returning to FIG. 1, based on the received write select signal 108 and the control section of combined signal 106, register access control 104 writes information to register 102 via a write line 110. The information written by register access control 104 over write line 110 includes bits making up the control sections 204-207 and bits making up the data sections 200-203 (FIG. 2). Also depicted in FIG. 1, a read line 112 connects register 102 with register access control 104 to provide the contents of the register to the register access control. In this manner and according to the below described embodiment, register access control 104 writes select bits from, either or both, combined signal 106 and read line 112 to register 102.
Although depicted as a single line, each line in FIG. 1 (write select signal 108, combined signal 106, write line 110, and read line 112) represents one or more lines according to the particular embodiment. Accordingly, with respect to the FIG. 2 register 102 embodiment, combined signal 106, write line 110, and read line 112 are lines able to transmit 32 bits of information. In one particular embodiment, combined signal 106, write line 110, and read line 112 each include 32 lines.
In operation, register access control 104 receives a combined signal 106 having a format similar to register 102 as depicted in FIG. 2. That is, combined signal 106 includes data sections including control data for storage in register 102 and control sections for determining which data sections of the combined signal are to be written to the register. As described with respect to FIG. 2, there is a correspondence between control sections and data sections.
In particular assuming a write select signal 108 is received by register access control 104, if a particular control section bit is set in the received combined signal 106, then the corresponding data section bits of the received combined signal are written over write line 110 to register 102. Conversely, if a particular control section bits is not set in the received combined signal 106, then corresponding data section bits of the received combined signal are not written over write line 110 to register 102. Instead, the corresponding data Section bits of the signal received over read line 112 from register 102 are written over write line 110 to register 102.
In this manner, register access control 104 selectively writes portions of either combined signal 106 and/or the signal received over read line 112. Further, each process executed by processor 100 is able to share access to register 102 by virtue of the fact that each attempt to write to the register by a process includes a different control section which is set for enabling writing of a different corresponding data section of register 102. For example, a first process is enabled to write bits 24-28 of data section 200 by setting bit 31 of control section 204. A second process is enabled to write bits 16-20 of data section 201, bits 8-12 of data section 202, and bits 0-4 of data section 203 by having bits 23, 15, and 7 of control sections 205, 206, and 207 being set. Based on the foregoing, a write attempt by the second process changes only the bits of the data sections for which the corresponding control section bits are enabled for the second process, i.e., control sections 205, 206, and 207.
Turning now to FIG. 3, a logic implementation of register access control 104 from FIG. 1 is depicted in connection with register 102. register access control 104 includes a set of four AND logic gates 300-303 connected with a set of four multiplexer gates 304-307, respectively. Each of AND logic gates 300-303 receives as input write select signal 108 and one of control sections 204-207 from combined signal 106 and provides an output signal to a corresponding one of the set of four multiplexer gates 304-307.
Each multiplexer gate 304-307 receives as input one of data sections 200-203 from combined signal 106 and the corresponding data section from the signal over read line 112 from register 102. That is, the multiplexer gate receives a data section for writing from combined signal 106 and the existing data section in register 102. As described above, each multiplexer gate 304-307 also receives the output of AND logic gate 300-303 corresponding to the multiplexer gate as input.
As further depicted in FIG. 3, AND logic gate 300 receives bit 31 of combined signal 106 and multiplexer gate 304 receives bits 24-28 of combined signal 106 and read line 112 signal. Similarly, AND logic gates 301-303 receive bits 23, 15, and 7, respectively, and multiplexer gates 305-307 receive bits 16-20, 8-12, and 0-4, respectively.
Based on the input from and logic gate 300-303, multiplexer gate 304-307 provides as output to register 102 over write line 110 one of the two received input data sections. For example, assuming the first process described above attempts to write to register 102, and logic gate 300 receives as input write select signal 108 and bit 31 of control section 204. As described above, the write select signal 108 is received and bit 31 is set for the first process and based thereon AND logic gate 300 generates an enabling signal transmitted to multiplexer 304 as input causing the multiplexer to write the received data section of combined signal 106 to register 102. However, because bits 23, 15, and 7 of control sections 205-207 of the first process are not set, AND logic gates 301-303 failed to generate enabling signal to transmit to multiplexer 305-307. Because an enabling signal is not received by multiplexer 305-307, each multiplexer writes the received data section of read line 112 signal from register 102 over write line 110 to register 102. In this manner, the existing data sections of register 102 to which the first process is not enabled to write are not overwritten by the first process.
Register access control 104 includes a control section multiplexer gate 308 which receives as input the control section of combined signal 106 and the control section of read line 112 signal from register 102 register access control 104 also receives write select signal 108 as a control and put to select from among the other two inputs for transmission over write line 110 to register 102. Control section multiplexer gate 308 transmits the received controls section from combined signal 106 if write select signal 108 is received. If write select signal 108 is not received by multiplexer gate 308, the multiplexer gate transmits the received control section from the read line 112 signal. In this manner, the existing control sections of register 102 are not over written without receipt of write select signal 108.
Executable software accessing register 102 takes into account the presence of the control bits, e.g., the control section, in accessing the register. In order to retrieve information from register 102, all bits except the data bits need to be masked. Executable software writing to register 102 needs to include the appropriate control bits in the data write to the register, i.e., combined signal 106. Register 102 removes the need to perform a read/modify/write operation in order to preserve the other data bits stored in the register if a particular executable software access is not overwriting the entire contents. For example, in order to modify the contents of data section 200 of register 102 without modifying the contents of data sections 201-203, executable software performs a write to the register and includes control bit 204 set to indicate write enable with respect to the data section. The executable software need not be configured to read the contents of register 102, modify the read contents to include the data section 200 to be written to the register, and then write the modified contents back to the register. In this manner, multiple steps may be eliminated in an embodiment.
In an embodiment, the content of data sections 200-203 includes logically grouped together data bits controllable via a single control bit 204-207. In this manner, a single process may control plural data bits in a data section.
It will be readily seen by one of ordinary skill in the art that the embodiments fulfills one or more of the advantages set forth above. After reading the foregoing specification, one of ordinary skill will be able to affect various changes, substitutions of equivalents and various other aspects of the embodiments as broadly disclosed herein. It is therefore intended that the protection granted hereon be limited only by the definition contained in the appended claims and equivalents thereof.
For example, a large set of different configurations for storing the control portion and the data portion are possible with a minimum of complexity. Further, concurrent and independent processes executing in the network component are able to easily share a register while storing multiple data portions each owned individually per each process.
Further advantageously, the executable instruction overhead required for implementation is minimized to provide support for the data atomicity of shared registers used by multiple processors.
Additionally, development cost and risk of errors in the executable instructions using the shared register according to the above embodiments is reduced.

Claims (21)

1. A method of controlling write access to portions of a shared register, wherein the shared register stores a plurality of bits including one or more control bits and one or more data bits, comprising the steps of:
receiving (1) a write select signal and (2) a combined signal comprising a control portion identifying particular bits of the shared register able to be written to by the combined signal and a data portion;
comparing the write select signal and the control portion of the combined signal, and generating a data write signal if the write select signal and the control portion of the combined signal are both asserted; and
selectively writing, based on the generated data write signal, the data portion of the combined signal to one or more data bits of the shared register corresponding to the control portion of the combined signal.
2. The method of claim 1, wherein the shared register includes one control bit corresponding to a set of one or more data bits.
3. The method of claim 2, wherein the shared register includes four control bits and four sets of one or more data bits.
4. The method of claim 1, wherein the writing step further comprises writing the control portion of the combined signal to the one or more control bits.
5. The method of claim 1, wherein the writing step further comprises writing the existing contents of the one or more data bits of the shared register which do not correspond to the control portion of the combined signal to the one or more data bits of the shared register.
6. The method of claim 1, further comprising the step of:
allocating two or more control bits to different processes for accessing the shared register.
7. The method of claim 1, wherein the writing step comprises overwriting only the one or more data bits of the shared register which correspond to the control portion of the combined signal.
8. A shared register system, comprising:
a register having storage for one or more bits; and
a register access control configured to receive a write select signal and a combined signal comprising a control portion and a data portion, the register access control operatively connected with the register to control write access to the register based on the write select signal and the control portion of the combined signal,
wherein the register access control includes a comparison device receiving the write select signal and the control portion of the combined signal and generating a data write signal if the write select signal and the control portion of the combined signal are asserted, and
wherein the control portion of the combined signal identifies particular bits of the shared register able to be written to by the combined signal.
9. The system of claim 8, wherein the data portion of the combined signal is written to the register if the write select signal and the control portion of the combined signal are asserted.
10. The system of claim 9, wherein the register access control is configured to receive a read signal from the register including the data portion and control portion stored in the register.
11. The system of claim 8, wherein the register access control further comprises:
a multiplexer receiving the data portion of the combined signal and operatively connected to the comparison device such that if a data write signal is received from the comparison device, the multiplexer writes the data portion of the combined signal to the register.
12. The system of claim 11, wherein the register access control further comprises:
a control multiplexer adapted to receive the control portion of the combined signal and the write select signal and adapted to generate a control write signal including the control portion of the combined signal if the write select signal is asserted, the control multiplexer operatively connected with the register.
13. The system of claim 12, wherein the control multiplexer is adapted to receive a control portion from the register and wherein the generated control write signal includes the control portion from the register if the write select signal is not asserted.
14. The system of claim 8, wherein there is a one-to-one correspondence between the control portion and the data portion of the combined signal.
15. The system of claim 14, wherein the combined signal comprises one or more control portions and one or more data portions.
16. The system of claim 8, wherein the register includes storage for control bits and data bits.
17. The system of claim 8, wherein the register includes four control bits and four sets of one or more data bits.
18. A system for controlling access to a register, comprising:
a register access control configured to receive a write select signal and a combined signal comprising a control portion and a data portion, the register access control arranged to be connected with a register to control write access to the register based on the write select signal and the control portion of the combined signal,
wherein the register access control includes a comparison device receiving the write select signal and the control portion of the combined signal and generating a data write signal if the write select signal and the control portion of the combined signal are asserted, and
wherein the control portion of the combined signal identifies particular bits of the shared register able to be written to by the combined signal.
19. The system of claim 18, wherein the register access control further comprises:
a multiplexer receiving the data portion of the combined signal and operatively connected to the comparison device such that if a data write signal is received from the comparison device, the multiplexer writes the data portion of the combined signal to the register.
20. The system of claim 19, wherein the register access control further comprises:
a control multiplexer adapted to receive the control portion of the combined signal and the write select signal and adapted to generate a control write signal including the control portion of the combined signal if the write select signal is asserted, the control multiplexer operatively connected with the register.
21. A method of controlling write access to portions of a shared register, wherein the shared register stores a plurality of bits including one or more control bits and one or more data bits, comprising the steps of:
receiving (1) a write select signal and (2) a combined signal comprising a control portion identifying particular bits of the shared register able to be written to by the combined signal and a data portion;
comparing the write select signal and the control portion of the combined signal, and generating a data write signal if the write select signal and the control portion of the combined signal are both asserted;
writing the data portion of the combined signal to the one or more data bits of the shared register corresponding to the control portion of the combined signal; and
allocating two of the one or more control bits to different processes for accessing the shared register.
US11/085,547 2005-03-22 2005-03-22 Multi-process support in a shared register Active 2026-08-21 US7873795B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US11/085,547 US7873795B2 (en) 2005-03-22 2005-03-22 Multi-process support in a shared register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US11/085,547 US7873795B2 (en) 2005-03-22 2005-03-22 Multi-process support in a shared register

Publications (2)

Publication Number Publication Date
US20060218355A1 US20060218355A1 (en) 2006-09-28
US7873795B2 true US7873795B2 (en) 2011-01-18

Family

ID=37036548

Family Applications (1)

Application Number Title Priority Date Filing Date
US11/085,547 Active 2026-08-21 US7873795B2 (en) 2005-03-22 2005-03-22 Multi-process support in a shared register

Country Status (1)

Country Link
US (1) US7873795B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110066895A1 (en) * 2009-09-15 2011-03-17 International Business Machines Corporation Server network diagnostic system

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8397005B2 (en) 2010-03-16 2013-03-12 St-Ericsson Sa Masked register write method and apparatus
US9753799B2 (en) 2014-12-13 2017-09-05 Via Alliance Semiconductor Co., Ltd. Conditional pattern detector for detecting hangs
CN105849705B (en) 2014-12-13 2019-06-04 上海兆芯集成电路有限公司 For detecting the logic analyzer of pause
US10324842B2 (en) 2014-12-13 2019-06-18 Via Alliance Semiconductor Co., Ltd Distributed hang recovery logic
CN105980979B (en) 2014-12-13 2018-11-20 上海兆芯集成电路有限公司 For detecting the logic analyzer of pause

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3740723A (en) * 1970-12-28 1973-06-19 Ibm Integral hierarchical binary storage element
US6182108B1 (en) * 1995-01-31 2001-01-30 Microsoft Corporation Method and system for multi-threaded processing
US20010021951A1 (en) * 2000-02-17 2001-09-13 Yoko Kimura ATAPI command receiving method
US20030188073A1 (en) * 2002-04-01 2003-10-02 Zatorski Richard A. System and method for controlling multiple devices via general purpose input/output (GPIO) hardware
US20030212859A1 (en) * 2002-05-08 2003-11-13 Ellis Robert W. Arrayed data storage architecture with simultaneous command of multiple storage media
US20060004988A1 (en) * 2004-06-30 2006-01-05 Jordan Paul J Single bit control of threads in a multithreaded multicore processor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3740723A (en) * 1970-12-28 1973-06-19 Ibm Integral hierarchical binary storage element
US6182108B1 (en) * 1995-01-31 2001-01-30 Microsoft Corporation Method and system for multi-threaded processing
US20010021951A1 (en) * 2000-02-17 2001-09-13 Yoko Kimura ATAPI command receiving method
US20030188073A1 (en) * 2002-04-01 2003-10-02 Zatorski Richard A. System and method for controlling multiple devices via general purpose input/output (GPIO) hardware
US20030212859A1 (en) * 2002-05-08 2003-11-13 Ellis Robert W. Arrayed data storage architecture with simultaneous command of multiple storage media
US20060004988A1 (en) * 2004-06-30 2006-01-05 Jordan Paul J Single bit control of threads in a multithreaded multicore processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110066895A1 (en) * 2009-09-15 2011-03-17 International Business Machines Corporation Server network diagnostic system
US8291266B2 (en) * 2009-09-15 2012-10-16 International Business Machines Corporation Server network diagnostic system
US8589741B2 (en) * 2009-09-15 2013-11-19 International Business Machines Corporation Server network diagnostic system

Also Published As

Publication number Publication date
US20060218355A1 (en) 2006-09-28

Similar Documents

Publication Publication Date Title
JP5030796B2 (en) System and method for restricting access to cache during data transfer
US7487302B2 (en) Service layer architecture for memory access system and method
JP3587260B2 (en) Instruction processing control method
US8327161B2 (en) Command decoder for microcontroller based flash memory digital controller system
US7991978B2 (en) Network on chip with low latency, high bandwidth application messaging interconnects that abstract hardware inter-thread data communications into an architected state of a processor
US7131114B2 (en) Debugger breakpoint management in a multicore DSP device having shared program memory
US6895530B2 (en) Method and apparatus for controlling a data processing system during debug
US6785746B1 (en) Dual-channel SCSI chips and methods for configuring separate interoperability of each channel of the SCSI chip
US7873795B2 (en) Multi-process support in a shared register
EP3422583A1 (en) Systems and methods for providing nonvolatile memory management in wireless phones
JP2007535737A (en) Memory hub and method providing memory ordering hints
US8046568B2 (en) Microprocessor with integrated high speed memory
KR20030040021A (en) Microcomputer
US20070118682A1 (en) Method and apparatus for interfacing and managing NAND flash memory
US20080178261A1 (en) Information processing apparatus
US8090894B1 (en) Architectures for supporting communication and access between multiple host devices and one or more common functions
JP4642531B2 (en) Arbitration of data requests
US20180011636A1 (en) Information processing apparatus and method of accessing a memory
US7472224B1 (en) Reconfigurable processing node including first and second processor cores
JP6632416B2 (en) Shared memory control circuit and shared memory control method
US7788448B2 (en) Sequencer cache and method for operating the same
US7181575B2 (en) Instruction cache using single-ported memories
US7689864B2 (en) Processor comprising an integrated debugging interface controlled by the processing unit of the processor
US8677033B2 (en) Method for initializing registers of peripherals in a microcontroller
US6836828B2 (en) Instruction cache apparatus and method capable of increasing a instruction hit rate and improving instruction access efficiency

Legal Events

Date Code Title Description
AS Assignment

Owner name: HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P., TEXAS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:BRABANT, RICHARD;VANZANTE, CRAIG;REEL/FRAME:016406/0450

Effective date: 20050321

STCF Information on status: patent grant

Free format text: PATENTED CASE

FPAY Fee payment

Year of fee payment: 4

AS Assignment

Owner name: HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP, TEXAS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P.;REEL/FRAME:037079/0001

Effective date: 20151027

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552)

Year of fee payment: 8

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 12TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1553); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 12