-
Notifications
You must be signed in to change notification settings - Fork 30
Patent US8026739
FIG. 1 is a high level view of a Universal Digital Block (UDB) array 110 contained within a Programmable System on a Chip (PSoC) Integrated Circuit (IC) 100. The UDB array 110 includes a programmable interconnect matrix 130 that connects together the different UDBs 120. The individual UDBs 120 each include a collection of uncommitted logic in the form of Programmable Logic Devices (PLDs) and structural dedicated logic elements that form a datapath 210 shown in more detail in FIGS. 8 and 9.
The UDB array 110 is arranged into UDB pairs 122 that each include two UDBs 120 that can be tightly coupled to a shared horizontal routing channel 132. The UDB pairs 122 can also be programmably connected to the horizontal routing channels 132 of other UDB pairs 122 either in the same horizontal row or in different rows through vertical routing channels 134. The horizontal and vertical routing channels and other switching elements are all collectively referred to as the interconnect matrix 130.
A Digital System Interconnect (DSI) routing interface 112 connects a micro-controller system 170 and other fixed function peripherals 105 to the UDB array 110. The micro-controller system 170 includes a micro-controller 102, an interrupt controller 106, and a Direct Memory Access (DMA) controller 108. The other peripherals 105 can be any digital or analog functional element in PSoC 100. The DSI 112 is an extension of the interconnect matrix 130 at the top and bottom of the UDB array 110.
FIG. 2 shows the interconnect matrix 130 in more detail and includes horizontal routing channels 132 that programmably connect with one or more associated Universal Digital Blocks (UDB) 120. In this example, pairs 122 of UDBs 120 are tightly coupled together through their associated horizontal routing channel 132. However, more than two UDBs 120 can be tightly coupled together through the same horizontal routing channel 132.
The interconnect matrix 130 also includes Horizontal/Vertical (H/V) segmentation elements 125 that programmably interconnect the different horizontal routing channels 132 together. The segmentation elements 125 couple together the horizontal routing channels 132 for the different digital block pairs 122 in the same rows. The segmentation elements 125 also programmably couple together the horizontal routing channels 132 for digital block pairs 122 in different rows through vertical routing channels 134.
FIG. 3 shows one of the UDB pairs 122 in more detail. The UDBs 120A and 120B each contain several different functional blocks that in one embodiment include two Programmable Logic Devices (PLDs) 200, a data path 210, status and control 204, and clock and reset control 202. The operations of these different functional elements are described in more detail below in FIGS. 8 and 9.
The two UDBs 120A and 120B in UDB pair 122 are tightly coupled together to common routes in the same associated horizontal routing channel 132. Tight coupling refers to the UDB I/O signals 127 in the upper UDB 120A and the corresponding signals 128 in the lower UDB 120B all being directly connected to the same associated horizontal routing channel 132. This tight coupling provides high performance signaling between the two UDBs 120A and 120B. For example, relatively short connections 127 and 128 can be programmably established between the upper UDB 120A and the lower UDB 120B.
In one embodiment, the horizontal routing channels 132 can also have a larger number of routes and connections to the UDBs 120A and 120B than the vertical routing channels 134 shown in FIG. 2. This allows the horizontal routing channels 132 to provide more interconnectivity both between the UDBs 120A and 120B in UDB pair 122 and also provides more interconnectivity between different UDB pairs 122 in the same rows of interconnect matrix 130.
Thus, the interconnect matrix 130 in FIGS. 1 and 2 more effectively uses chip space by providing more traces and connectivity for the shorter/higher performance horizontal routing channels 132 than the relatively longer/lower performance vertical routing channels 134.
FIG. 4 shows switching elements 145 that connect the different I/O signals 127 and 128 for the UDBs 120A and 120B in FIG. 3 to the horizontal routing channel 132. In this example, an output 127A from the upper UDB 120A in the UDB pair 122 drives an input 128A in the lower UDB 120B. A buffer 138 is connected to the UDB output 127A and a buffer 140 is connected to the UDB input 128A. The output 127A and input 128A are connected to vertical wires 146 and 148, respectively that intersect the horizontal routing channel wire 132A with a regular pattern.
At the switch points, RAM bits operate RAM cells 136 and 138 which in turn control Complementary Metal Oxide Semi-conductor (CMOS) transmission gate switches 142 and 144, respectively. The switches 142 and 144 when activated connect the UDB output 127A and the UDB input 128A to horizontal routing channel wire 132A.
The RAM cells 136 and 137 are programmably selectable by the micro-controller 102 (FIG. 1) by writing values into a configuration RAM 410 (FIG. 7). This allows the micro-controller 102 to selectively activate or deactivate any of the gate switches 142 and 144 and connect any I/O 127 or 128 from either of the two universal digital blocks 120A and 120B to different wires in the horizontal channel 132.
FIG. 5 shows the interconnect matrix 130 previously shown in FIGS. 1 and 2 in further detail. The segmentation elements 125 can include different combinations of horizontal segmentation switches 152 and vertical segmentation switches 154. The horizontal segmentation switches 152 programmably couple together adjacent horizontal routing channels 132 located in the same row. The vertical segmentation switches 152 programmably couple together horizontal routing channels 132 located vertically in adjacent rows via vertical routing channels 134.
In addition to the segmentation elements 125, the interconnect matrix 130 includes the switching elements 145 previously shown in FIG. 4 that programmably connect the upper and lower UDBs 120A and 120B with their associated horizontal routing channels 132.
Referring to FIGS. 5 and 6, the segmentation elements 125 comprise arrays of horizontal segmentation switches 152 that are coupled in-between different horizontal routing channels 132 and vertical segmentation switches 154 coupled in-between the vertical routing channels 134. Each segmentation switch 152 and 154 is controlled by two bits 162A and 162B from the configuration RAM 410 (FIG. 7). The two bits 162A and 162B together control a tri-state buffer 164.
When bit 162A is set, the buffer 164A drives one of the horizontal or vertical channel lines 166 from left to right. When bit 162B is set, the buffer 164B drives the same horizontal or vertical channel line 166 from right to left. If neither bit 162A nor bit 162B is set, the buffers 164A and 164B drive line 166 to a high impedance state.
Any combination of the switching elements 145, horizontal segmentation switches 152, and vertical segmentation switches 154 can be programmably configured to connect together almost any combination of external I/O pins 104 (FIG. 1), UDBs 120, and micro-controller system elements 170 and fixed peripherals 105 (FIG. 1).
FIG. 7 shows different examples of how different types of interconnect paths can be programmed through the interconnect matrix 130. A Random Access Memory (RAM) or a set of configuration registers 410 are directly readable and writeable by the micro-controller 102. A first set of bits in RAM section 412 are associated with the RAM cells 136 and 137 shown in FIG. 4 that control connections between the inputs and output of UDB and their associated horizontal routing channels 132. A second set of bits in RAM section 414 control how the horizontal segmentation switches 152 in FIGS. 5 and 6 connect the horizontal routing channels 132 in the same rows together and other bits in RAM section 414 control how the vertical segmentation switches 154 connect together the horizontal routing channels 132 in different rows.
Pursuant to the micro-controller 102 programming RAM 410, the interconnect matrix 130 is configured with a first interconnect path 176 that connects a UDB 120C to the interrupt controller 106. The UDB 120C can then send interrupt requests to the DMA controller 108 over interconnect path 176. A second interconnect path 178 is established between a peripheral (not shown) in the PSoC chip 100 (FIG. 1) and the DMA controller 108. The peripheral sends DMA requests to the DMA controller 108 over the interconnect path 178 that includes system level interconnect 172 and interconnect matrix 130.
A third interconnect path 180 is also configured by the micro-controller 102 by loading bits into RAM sections 412 and 414. The DMA controller 108 uses the interconnect path 180 to send a DMA terminate signal to UDB 120D. A fourth interconnect path 182 is programmably configured between one of the PSoC I/O pins 104 and a fixed digital peripheral, such as the micro-controller 102. The interconnect path 182 is used to send I/O signals between the micro-controller 102 and the I/O pin 104.
Interconnect paths 176-182 are of course just a few examples of the many different interconnect configurations that can be simultaneously provided by the interconnect matrix 130. This example also shows how different I/O pins 104, UDBs 120, and other peripherals can be connected to the same interrupt line on the interrupt controller 106 or connected to the same DMA line on the DMA controller 108.
Typically, interrupt requests received by an interrupt controller and DMA requests received by a DMA controller can only be connected to one dedicated pin. The interconnect matrix 130 allows any variety of different selectable functional elements or I/O pins to be connected to the same input or output for the interrupt controller 106 or DMA controller 108 according to the programming of RAM 410 by micro-controller 102.
The programmability of the interconnect matrix 130 also allows any number, or all, of the I/O pins 104 to be undedicated and completely programmable to connect to any functional element in PSoC 100. For example, the pin 104 can operate as an input pin for any selectable functional element in FIG. 7. In another interconnect matrix configuration, the same pin 104 can operate as an output pin when connected to a first peripheral and operate as an output pin when connected to a different peripheral.
FIG. 8 is a top-level block diagram for one of the UDBs 120. The major blocks include a pair of Programmable Logic Devices (PLDs) 200. The PLDs 200 take inputs from the routing channel 130 and form registered or combinational sum-of-products logic to implement state machines, control for datapath operations, conditioning inputs and driving outputs.
The PLD blocks 200 implement state machines, perform input or output data conditioning, and create look-up tables. The PLDs 200 can also be configured to perform arithmetic functions, sequence datapath 210, and generate status. PLDs are generally known to those skilled in the art and are therefore not described in further detail.
The datapath block 210 contains highly structured dedicated logic that implements a dynamically programmable ALU, comparators, and condition generation. A status and control block 204 allows micro-controller firmware to interact and synchronize with the UDB 120 by writing to control inputs and reading status outputs.
A clock and reset control block 202 provides global clock selection, enabling, and reset selection. The clock and reset block 202 selects a clock for each of the PLD blocks 200, the datapath block 210, and status and control block 204 from available global system clocks or a bus clock. The clock and reset block 202 also supplies dynamic and firmware resets to the UDBs 120.
Routing channel 130 connects to UDB I/O through a programmable switch matrix and provides connections between the different elements of the UDBs in FIG. 7. A system bus interface 140 maps all registers and RAMs in the UDBs 120 into a system address space and are accessible by the micro-controller 102.
The PLDs 200 and the datapath 210 have chaining signals 212 and 214, respectively that enable neighboring UDBs 120 to be linked to create higher precision functions. The PLD carry chain signals 212 are routed from the previous adjacent UDB 120 in the chain, and routed through each macrocell in both of the PLDs 200. The carry out is then routed to the next UDB 120 in the chain. A similar connectivity is provided for the set of conditional signals generated by the datapath chain 214 between datapath blocks 210 in adjacent UDBs 120.
Referring to FIG. 9, each UDB 120 comprises a combination of user defined control bits that are loaded by the micro-controller 102 into control register 250. The control register 250 is part of the control blocks 202 and 204 described above in FIG. 8. The control register 250 feeds uncommitted programmable logic 200 and control for structure datapath inputs. The same control blocks 202 and 204 described above in FIG. 8 also include associated status registers 256 that allow the micro-controller 102 to selectably read different internal states both the uncommitted logic elements and for structural arithmetic elements 254 within the datapath 210.
The datapath 210 comprises highly structured logic elements 254 that include a dynamically programmable ALU 304, conditional comparators 310, accumulators 302, and data buffers 300. The ALU 304 is configured to perform instructions on accumulators 302, and to perform arithmetic sequences as controlled by a sequence memory. The conditional comparators 310 can operate in parallel with the ALU 304. The datapath 210 is further optimized to implement typical embedded functions, such as timers, counters, pseudo random sequence generators, Cyclic Redundancy Checkers (CRC), Pulse Width Modulators (PWM), etc.
The combination of uncommitted PLDs 200 with a dedicated datapath module 210 allow the UDBs 120 to provide embedded digital functions with more silicon efficient processing. The dedicated committed structural arithmetic elements 254 more efficiently implement arithmetic sequencer operations, as well as other datapath functions. Since the datapath 210 is structural, fewer gates are needed to implement these structural elements 254 and fewer interconnections are needed to connect the structural elements 254 together into an arithmetic sequencer. Implementing the same datapath 210 with PLDs could require a much greater quantity of additional combinational logic and additional interconnections.
The structured logic in the datapath 210 is also highly programmable to provide a wide variety of different dynamically selectable arithmetic functions. Thus, the datapath 210 not only conserves space on the integrated circuit 100 (FIG. 1) but also is highly configurable similar to PLDs. It has an additional advantage of being dynamically configurable and reconfigurable.
The functional configurability of the datapath 210 is provided through the control registers 250 and allow the micro-controller 102 to arbitrarily write into a system state and selectively control different arithmetic functions. The status registers 256 allow the micro-controller 102 to also identify different states associated with different configured arithmetic operations.
The flexible connectivity scheme provided by the routing channel 130 selectively interconnects the different functional element 250, 200, 254, and 256 together as well as programmably connecting these functional element to other UDBs, I/O connections, and peripherals. Thus, the combination of uncommitted logic 200, structural logic 254, and programmable routing channel 130 provide as much functionality and more efficiently uses integrated circuit space.
The interconnect matrix 130 also requires little or no dedicated UDB block routing. All data, state, control, signaling, etc, can be routed through the interconnect matrix 130 in the UDB array 110. The array routing is efficient because there is little or no difference between a local UDB net and a net that spans the UDB array. Horizontal and vertical segmentation allow the array to be partitioned for increased efficiency and random access to the RAM 410 allow high speed configuration or on the fly reconfigurability.
FIG. 10 shows an abstract view of a system level routing architecture in the PSoC Integrated Circuit (IC) 100. The UDB array 110 includes DSI interfaces 112 at the top and bottom of the array 110. The DSI 112 is an extension of the interconnect matrix 130 described above in FIG. 2 and the combination of the DSI 112 and interconnect matrix 130 within UDB array 110 is referred to generally as a system level interconnect 135.
The different peripherals 102, 105, 106, 108, and 110 are all referred to generally as functional elements 114 and can all be located in the same PSoC IC 100.
Examples of fixed digital peripherals include, but are not limited to, timers and counters 105A, a Controller Area Network communications protocol (CAN) 105B, the micro-controller 102, the DMA controller 108, global clocks 105C and 105D, an External Memory Interface (EMIF) 105E, Delta Sigma ADC block (Del SIG) 105F, serial communication blocks 105G and comparators 105I. Fixed analog peripherals can include, but are not limited to Digital-to-Analog Converters (DACs) 105H. I/O pins 104 are alternatively referred to as I/O ports or I/O pins and provide the external signal path for the functional elements 114.
The micro-controller 102 configures the system level interconnect 135 by loading configuration values 116 into configuration registers or configuration memory 410. The system level interconnect 135 then programmably connects together the different functional elements 114 and different I/O pins 104 according to the configuration values 116 loaded into the configuration registers 410.
The system level interconnect 135 is configured by the microcontroller 102 to connect any of the different functional elements 114 to any of the different I/O pins 104 and can also be configured to connect any of the different functional elements 114 to each other according to the loaded configuration values 116. The system level interconnect 135 can also be dynamically reconfigured on-the-fly by the micro-controller 102 in real-time according to different operational states of the IC 100.
Referring to FIG. 11, the system level interconnect 135 includes both the interconnect matrix 130 used in the UDB array 110 and the DSI 112. The DSI 112 provides the additional connectivity between the UDB array 110 and the other fixed functional elements 114 and I/O pins 104. The DSI 112 is built from similar functional blocks as the interconnect matrix 130. As with the interconnect matrix 130, the DSI 112 includes multiple horizontal channels 132A that are programmably connected together by segmentation elements 125A. The segmentation elements 125A also connect to other horizontal channels 132 in the UDB array 110.
The horizontal channels 132A in the DSI 112 are programmably connected to the different fixed peripherals 114 and different I/O pins 104 through interface lines 133. For example, FIG. 11 shows the micro-controller 102 and multiple different I/O pins 104A-104E connected to horizontal channels 132A via the interface lines 133. The different segmentation elements 125A in the DSI 112 then couple the horizontal channels 132A to each other and to other horizontal channels 132 in the UDB array 110.
System level routing provides multiple equivalent destinations. For example, routing from the I/O pin 104A to an input of a PLD 200A is facilitated by the fact that all PLD inputs are permutable, i.e., they are all equivalent. The concept of permutability at the destination is applied as a general rule for internal array destinations in the UDBs 120 (PLD inputs, datapath inputs, clock and reset inputs, etc). However, it is also applied to destinations outside the UDB array 110.
The system level interconnect 135 allows any I/O from any UDB 120 to be connected to any other UDB I/O in any other UDB array 110. Further, any I/O from any UDB 120 in UDB array 130 can also be connected to any I/O of any fixed peripheral element 114 or connect to any I/O pin 104. Further, any I/O for any peripheral 114 can also be connected to any I/O of another other peripheral 114 and can also be connected to any I/O pin 104.
FIG. 11 shows some examples. In a first example, the micro-controller 102 (FIG. 10) configures a first path 501 in the system level interconnect 135 that couples I/O pin 104A to one of the inputs of the PLD 200A in UDB 120A. At the same time, the micro-controller 102 configures a second path 502 in the system level interconnect 135 that connects the I/O pin 104B directly to the pin 104 D.
In this example, the micro-controller 102 also loads configuration values 116 into configuration registers 410 that configure a path 504 in the system level interconnect 135 that connect an output of micro-controller 102 to I/O pin 104E and also configure a path 506 that connects an input of micro-controller 102 to I/O pin 104C. Any combination of different connection paths can be created by loading associated configuration values 116 into the configuration registers 401 shown in FIG. 10.
FIG. 12 is another abstract view of the system level interconnect 135 shown extending around the edge of an integrated circuit 500. In this example, the same or a similar interconnect matrix 130 is used in the UDB array 110 and used in conjunction with the DSI 112. The embodiment in FIG. 12 may also have a separate control bus that extends around the periphery of IC 500 that selectively connects to the different functional elements 114. Prior to configuring the system level interconnect 135, the I/O pins 104 are effectively undedicated and unconnected to any functional element 114. After configuration, the I/O pins 104 provide any type of input and/or output associated with the connected functional element 114.
For example, some pins 104 are configured by the micro-controller 102 to operate as an I/O connection for a Liquid Crystal Display (LCD) function 510A, a multi-level driver (DRV) function 510B, and a general digital I/O function 510C. These different functions 510A-510C can be configured in the PLDs 200, datapaths 210, or fixed peripherals 512 and 514. The functions 510A-510C are shown next to pins to represent the pins 104 being associated with different functional elements in IC 500.
Depending on the operational state of the IC 500, the different configuration values 116 in configuration register 410 (FIG. 10) are changed by the micro-controller 102 to reconnect the pins to the different functions 510A-510C. For example, pin 104A may initially operate as an I/O pin for digital I/O function 510C. Upon detection of a particular signal or state, the micro-controller 102 may then reconfigure the system level interconnect 135 to connect pin 104A to the LCD function 510A.
In another example, the system level interconnect 135 is initially configured to connect pin 104H as a digital input for a digital function 510D in one of the UDBs 120 of UDB array 110. After a particular signal or state is detected in the IC 500, the micro-controller 102 reconfigures the system level interconnect 135 to connect pin 104H to a digital output of a digital function 510E in one of the fixed digital peripherals 514.
Referring to FIGS. 12 and 13, the pin 104H in another example is dynamically configured to operate as an external I/O for a digital function 510D, an analog function 510E, and a LCD function 510F. In operation 520, the micro-controller 102 loads configuration values 116 into configuration registers 410 that configure a LCD driver in the UDB array 110. Other configuration values 116 in the registers 410 are loaded into the configuration registers 410 in operation 522 that configure the system level interconnect 135 to connect pin 104H to the output of LCD driver 510F.
Operation 524 loads configuration values 116 into the registers 410 that configure an analog-to-digital converter in one of the fixed analog peripherals 512. Operation 526 may happen later during a different operating state and loads configuration values into the configuration registers 410 that connect pin 104H to the analog-to-digital converter when the LCD driver 510F is inactivated. Finally, operation 528 loads configuration values into registers 410 that cause the same pin 104H to connect to the micro-controller 102 when the LCD driver 510F and the analog-to-digital converter 510E are both inactive.
FIG. 14 further explains how the IC 500 in FIG. 12 operates according to the configuration values 116 loaded into the registers 410. In operation 530, the PSoC IC is reset. When the LCD driver 510H is active in operation 532, pin 104H is connected to the LCD driver output in operation 538. When the LCD driver is inactive but the analog-to-digital converter 510E is active in operation 534, pin 104H is connected to the analog-to-digital converter 510E in operation 540. Otherwise, pin 104H is connected through the system level interconnect 135 to the micro-controller 102 in operation 536. The micro-controller 102 then waits for the LDC driver 510F or the analog-to-digital converter 510E to reactivate and accordingly reconnects pin 104H to the activated function.
In yet another example, the system level interconnect 135 is configured to synchronously multiplex two different analog signals from different I/O pins 104B and 104C to the same fixed analog peripheral 512. The analog peripheral in one example is also an analog-to-digital converter. In this example, a clock in UDB array 110 synchronously causes the micro-controller 102 to reconfigure system level interconnect 135 to toggle connecting pins 104B and 104C to the fixed analog peripheral 512 on a clocked periodic basis. Thus, the system level interconnect 135 in this example operates essentially as an analog multiplexer switching between the analog signal on I/O pin 104B and the analog signal on I/O pin 104C.
FIG. 15 shows the DSI 112 from FIG. 11 in more detail. The segmentation elements 125A are essentially the same as those shown in FIGS. 5 and 6. The segmentation elements 125A connect adjacent horizontal channels 132A together and also connect the horizontal channels 132A to other horizontal channels in the UDB array 110.
Different sets of interface lines 133 are coupled to different associated peripherals 520 or I/O pins 104. The interface lines 133 overlap with multiple different channel lines in associated horizontal channels 132A and programmably couple to the different channel lines according to particular configuration values 116 (FIG. 10) that activate associated switching elements 526.
Multiple different interface lines 133 for the same peripheral 520 or for the same connector 104 are shorted together. For example, interface lines 133A and 133B in FIG. 15 are both shorted together. Shorting multiple interface lines together increases connectivity and allows shorter system level interconnect paths between the peripherals 520, I/O pins 104, and UDB array 110.
FIG. 16 shows the switching elements 526 in FIG. 15 in more detail. Each switching element 526 includes an associated bit 530 that is located in one of the configuration registers 410 shown in FIG. 10. The bits 530 control an associated gate 528 that when activated connect a horizontal channel line 532 to an interface line 534. As shown in FIG. 16, multiple interface switching elements 526 can be attached to the same interface line 534 and attached to multiple different horizontal channel lines 532. This again increases the connectivity of the peripherals 520 and I/O pins 104 in FIG. 15 with horizontal routing channel 132A. The bits 530 can be loaded into the configuration registers 410 by the micro-controller 102 and can be dynamically changed by the micro-controller 102 during IC operation as described above.
FIG. 17 shows hold cells 549 that retain a last state on associated interface lines 133 prior to the integrated circuit being reconfigured and further set the interface lines 133 to weak predetermined states upon receiving a reset signal 552.
A tile 540 contains the interconnects previously shown in FIG. 16. Multiple different tiles 540 are arranged to connect the different peripherals 520 and I/O pins 104 (FIG. 15) to the horizontal routing channels 132A. The interface lines 133 at the top of each tile are coupled to hold cells 549 and gates 548. The gates 548 ground the interface lines 133 when a sleep signal 550 is asserted.
When a digital value is output on one of the interface lines 133 and the reset value is low, inverter 542 in hold cell 549 inverts the value which is then inverted back by the NOR gate 544. This holds the original digital state on the interface line 133.
Floating signals can cause problems for certain device inputs. For example, the floating state may be incorrectly interpreted as logic high or logic low values and in turn cause operational errors. To avoid this floating condition, the reset line 552 is asserted high causing all of the hold buffers 549 to output a weak zero value on the interface lines 133. A logic one or logic zero signal asserted on any one of the interface lines 133 overrides the weak zero signal and causes the hold cell 549 to latch the new signal state.