Field
The present disclosure relates generally to wireless communication system. More specifically the present disclosure related to methods and apparatus for an enhanced architecture for testing de-featured memories using a memory built-in self-test (MBIST) system.
Background
Wireless communication devices have become smaller and more powerful as well as more capable. Increasingly users rely on wireless communication devices for mobile phone use as well as email and Internet access. At the same time, devices have become smaller in size. Devices such as cellular telephones, personal digital assistants (PDAs), laptop computers, and other similar devices provide reliable service with expanded coverage areas. Such devices may be referred to as mobile stations, stations, access terminals, user terminals, subscriber units, user equipments, and similar terms.
These wireless communication devices typically use a system-on-chip (SoC) to provide many of the functions of the device. A SoC is an integrated circuit that combines all components of a computer or other electronic system on a single chip. The SoC device may contain digital, analog, mixed-signal, and radio frequency (RF) functions on a single substrate. SoCs are used widely due to their low power consumption.
A typical SoC consists of a microcontroller or digital signal processor (DSP) core, memory blocks including a selection of ROM, RAM, EEPROM, and flash memory, as well as timing sources. The timing sources may include oscillators and phase-locked loops (PLL). Peripherals, including counter-timers, real-time timers, and power-on reset generators may also be incorporated. A wide variety of external and internal interfaces including analog-to-digital (ADC), digital-to-analog converters (DAC), voltage regulators and power management circuits are also typically included in an SoC. The desired performance of the end device may result in different mixes of the above functions to be included in the SoC. The SoC also includes a bus system for connecting the various functional blocks.
Testing an SoC may be complex and time consuming Memory functionality may be tested using memory built-in self-testing (MBIST). This memory testing typically utilizes testing programs that automatically test the flow of data into and out of the various memories on the SoC. In some cases, the SoC may be de-featured, that is, have the memory size reduced. This memory de-featuring results in a smaller memory and may complicate the testing process, as the MBIST testing program may not be able to take into account the reduction in memory size. The de-featuring may result in MBIST testing that cannot be completed without a complete re-spin, or redesign of the test logic.
There is a need in the art for a method and apparatus for accounting for testing de-featured memory without redesign of the MBIST logic.
Embodiments described herein provide a method for testing a device memory. The method begins with determining a generated data width generated by an automatic testing system, such as a MBIST system. A generated address width is also determined for the MBIST system. The generated data width and the generated address width is compared with the required data width and address width of a device under test. A user bit is set based on the comparison. If the generated data width and the generated address width match the required data width and the generated address width then the memory is not a de-featured memory, and the user bit is set to zero. If the generated data width and the generated address width do not match the required data width and the required address width, then the memory is a de-featured memory and the user bit is set to 1. The user bit setting cues the glue logic to provide address control and data control during the device.
An additional embodiment provides an apparatus for testing a device memory. The apparatus includes a wireless test access protocol that is electrically connected to a glue logic module. A test interface or MBIST is electrically connected to the glue logic module. A memory to be tested is electrically connected to the glue logic module.
A further embodiment provides an apparatus for testing a device memory. The apparatus comprises: means for determining a generated data width; means for determining a generated address width; means for comparing the generated data width and the generated address width with a device under test required data width and a device under test required address width; means for setting a user bit based on the comparison; and means for testing the device memory based on the user bit setting.
Various aspects are now described with reference to the drawings. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more aspects. It may be evident, however, that such aspect(s) may be practiced without these specific details.
As used in this application, the terms “component,” “module,” “system” and the like are intended to include a computer-related entity, such as, but not limited to hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program and/or a computer. By way of illustration, both an application running on a computing device and the computing device can be a component. One or more components can reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers. In addition, these components can execute from various computer readable media having various data structures stored thereon. The components may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets, such as data from one component interacting with another component in a local system, distributed system, and/or across a network such as the Internet with other systems by way of the signal.
As used herein, the term “determining” encompasses a wide variety of actions and therefore, “determining” can include calculating, computing, processing, deriving, investigating, looking up (e.g., looking up in a table, a database or another data structure), ascertaining and the like. Also, “determining” can include resolving, selecting choosing, establishing, and the like.
The phrase “based on” does not mean “based only on,” unless expressly specified otherwise. In other words, the phrase “based on” describes both “based only on” and “based at least on.”
Moreover, the term “or” is intended to man an inclusive “or” rather than an exclusive “or.” That is, unless specified otherwise, or clear from the context, the phrase “X employs A or B” is intended to mean any of the natural inclusive permutations. That is, the phrase “X employs A or B” is satisfied by any of the following instances: X employs A; X employs B; or X employs both A and B. In addition, the articles “a” and “an” as used in this application and the appended claims should generally be construed to mean “one or more” unless specified otherwise or clear from the context to be directed to a singular form.
The various illustrative logical blocks, modules, and circuits described in connection with the present disclosure may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic, discrete hardware components or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any commercially available processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core or any other such configuration.
The steps of a method or algorithm described in connection with the present disclosure may be embodied directly in hardware, in a software module executed by a processor or in a combination of the two. A software module may reside in any form of storage medium that is known in the art. Some examples of storage media that may be used include RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, a hard disk, a removable disk, a CD-ROM, and so forth. A software module may comprise a single instruction, or many instructions, and may be distributed over several different code segments, among different programs and across multiple storage media. A storage medium may be coupled to a processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor.
The methods disclosed herein comprise one or more steps or actions for achieving the described method. The method steps and/or actions may be interchanged with one another without departing from the scope of the claims. In other words, unless a specific order of steps or actions is specified, the order and/or use of specific steps and/or actions may be modified without departing from the scope of the claims.
The functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions on a computer-readable medium. A computer-readable medium may be any available medium that can be accessed by a computer. By way of example, and not limitation, a computer-readable medium may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage, or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Disk and disc, as used herein, includes compact disk (CD), laser disk, optical disc, digital versatile disk (DVD), floppy disk, and Blu-ray® disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
Software or instructions may also be transmitted over a transmission medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of transmission medium.
Further, it should be appreciated that modules and/or other appropriate means for performing the methods and techniques described herein, such as those illustrated by
Embodiments described herein relate to an architecture for testing SoC memories that may have been reduced in capacity by an operation known as memory de-featuring. Memory de-featuring reduces memory size by blowing a fuse. As an example, a cache memory may be reduced from 1 MB to 512 kB on the fly during the manufacturing process. This allows for adaptation to a particular customer's needs and requirements with the time and expense of redesign and fabrication.
A SoC is an integrated circuit that combines all components of a computer or other electronic system on a single chip. It may contain digital, analog, mixed-signal, and radio frequency (RF) functions. A typical SoC consists of: a microcontroller or digital signal processor (DSP) core; memory blocks, including a selection of read-only memory (ROM), random access memory (RAM), electrically erasable programmable read-only memory (a type of non-volatile memory), and flash memory; timing sources including oscillators and phase-locked loops (PLL); peripherals including counter-timers, real-time timers, and power-on or reset generators; external interfaces; analog interfaces including analog to digital converters (ADC), digital to analog converters (DAC); voltage regulators; and power management circuits. A bus connects these blocks within the SoC.
Direct memory access (DMA) controllers route data directly between external interfaces and memory, bypassing the processor core, thus increasing data throughput. DMA controllers are used because they allow certain hardware systems to access the main system memory (RAM) independently of the CPU and as a result improve data processing speed.
Many SoCs incorporate an Acorn Risc Machine (ARM) proprietary process into their architecture. A reduced instruction set computing (RISC) device may be used as a building block within a larger and more complex device, such as a SoC. The ARM processors may be configured for various environments. A RISC based design means that ARM processors require significantly fewer transistors than a complex instruction set computing (CISC) device, such as those found in most personal computers. This approach results in lower cost, less heat production, and less power consumed. As a result, ARM processors are used extensively in portable devices such as wireless devices and tablet, as well as in embedded systems. ARM processors use a simpler design with more efficient multi-core central processing units (CPU).
Typically, an ARM processor core supports a 32-bit address space and uses 32-bit arithmetic. Instructions for ARM cores often use 32-bit wide fixed length instructions, however, some versions support a variable length instruction set that uses 32-bit and 16-bit wide instruction sets for improved code density. In many cases an SoC will use the standard ARM processor core and will use a 32-bit address space and 32-bit arithmetic. However, some SoCs allow for a reduction in memory size by blowing a fuse. This process of reducing memory size by blowing a fuse is known as de-featuring. As an example, in one SoC core, the cache may be reduced from 1 MB to 512 KB during the manufacturing process. This allows a simple memory size reduction without the time and expense of a redesign.
Testing the SoCs is an important part of the manufacturing process. Built in self-test (BIST) and memory built in self-test (MBIST) are frequently used to test embedded memories within SoCs. MBIST testing provides a mechanism that allows a memory to test itself In addition, MBIST may be used to ensure high reliability and reduce repair cycle times. A general BIST architecture provides a test generator that interfaces with the circuit under test. the circuit under test receives input from the test generator and outputs a response verification. A test controller is connected to the test generator and also to a response verification device. The test controller generates control signals for the test pattern. These control signals are provided to the test pattern generator and the memory under test. The test pattern generator generates the required test patterns and the Read/Write signals. The comparator evaluates the response of the memory to the test signals.
Current MBIST architecture has three main components: a test access port (TAP), a controller, and an interface. MIST testing may also use analysis and testing tools that provide specific test functionality. These test tools may be developed to run on the same software platform as design tools and may incorporate proprietary testing operations and functions. In many situations the MBIST software tools rely on the common architecture supported by the computer-aided design tool. As a result, the MBIST logic is programmed to expect certain configuration settings. These configuration settings may be changed when a SoC has a de-featured memory. When this occurs, the installed MBIST logic software tools are not compatible with the de-featured memory. When the memory in a design undergoes changes in its configuration, the MBIST logic will also need to be redesigned from register transfer level insertion (RTL), synthesis and routing in order to be compatible with the new changes.
RTL is a design abstraction which models a synchronous digital circuit in terms of the flow of digital signals between hardware registers and logical operations performed on those signals. RTL abstraction may be used in hardware design description languages, such as Verilog, and VHDL to create high level representations of a circuit, from which lower-level representations and ultimately actual wiring can be derived. RTL focuses on describing the flow of signals between registers.
RTL is used in the logic design phase of the SoC design cycle. An RTL description is usually converted to a gate-level description of the circuit by a logic synthesis tool. The synthesis results are then used by placement and routing tools to create a physical layout. Logic simulation tools may use a design's RTL description to verify its correctness. When the RTL logic insertion must be re-done during a redesign, the MBIST logic testing flow must also be redesigned, significantly increasing costs. The configuration of the MBIST logic should be in accordance with the memory configuration for the test to be successful.
The ARM processor 104 interfaces with peripheral bridge 140, which also provides input and output interface with the system controller 110. The peripheral bridge communicates with multiple components using an application peripheral bus (APB) 142. An internal bus 138 operates in conjunction with the peripheral bridge 140 to communicate with additional devices within the SoC 100. The internal bus 138 may be an application specific bus (ASP) or an application handling bus (AHB). Memory controller 140 interfaces with ARM processor 104 using internal bus 138. The memory controller 140 also communicates with the external bus interface (EBI) 146. Memory controller 140 is also in communication with static random access memory (SRAM) 148, and flash memory 150. Flash memory 150 is in communication with flash programmer 154. The memory controller 144 is also in communication with peripheral data controller 152. Additional application specific logic 156 communicates with the internal bus 138 and may also have external connections. A second PIO 158 provides communication with an Ethernet medium access control (MAC) 160. The second PIO 158 also communicates with a universal asynchronous receiver/transmitter 162, a serial peripheral interface (SPI) 164, a two wire interface 166, and an analog to digital converter 168. These devices and interfaces connect through internal bus 138 with controller area network bus (CAN) 170, a universal serial bus (USB) devices 172, a pulse width modulator (PWM) controller 174, a synchro serial controller 176, and a timer/counter 178. These devices, CAN 170, USB device 172, PWM controller 174, synchro serial controller 176 and timer/counter 178 interface with third PIO 180, which provides external input and output. While these elements are typical of many SoCs, other devices may be incorporated, and some may not be included.
This difficulty may be overcome using an intelligent de-feature MBIST architecture. This architecture provides the flexibility to reuse the existing MBIST logic to test the de-featured memory and does not require any hardware changes. The architecture is in the form of a parameterized RTL and is capable of handling de-featuring by a number of levels. By 2 de-featuring takes a 2 MB memory and reduces it to a 1 MB memory. Similarly, by 4 de-featuring starts with a 2 MB memory and ends with a 512 KB memory. By 8 de-featuring starts with a 2 MB memory and ends with a 256 KB memory. By 16 de-featuring starts with a 2 MB memory and ends with a 128 KB memory.
The glue logic contained in IDMA logic 514 modifies the 9 bit address 512 coming from the MBIST interface 502 to match the de-featured configuration of memory 622 and any associated RAM memories. This configuration requires that the UserIR bit used in WTAP 504 be set to 1.
If WTAP 702 UserIRbit is high then it is applied to inverter 704, which drives the output of inverter 704 to a logic low, which is then applied to first AND gate 706 input. Addr[8] bit is applied to the other input of AND gate 706. The output of first AND gate 706 remains low, and addresses only the lower half of the memory under test.
If WTAP 702 UserIRbit is high then it is applied to second AND gate 708. Data bit [0] is applied to the other input of second AND gate 708, allowing the data bit to pass through second AND gate 708. Data control in the IDMA glue logic is based on the fact that every alternate data bit generated and expected by the interface is the same for all algorithms.
With WTAP 702 UserIRbit at logic low and applied to second AND gate 708 as an input, Data[0] is applied to second AND gate 708 on the second input. This blocks Data[0] from passing to the output of second AND gate 708.
When WTAP 702 UserIRbit is at logic low and is applied to multiplexer 710, then MBISTout[0] is applied to the output of multiplexer 710. In contrast, when WTAP UserIRbit is at logic high and is applied to multiplexer 710, the MBISTout[2] is applied to the output of mulitplxer 710.
The output of multiplexer 710 and MBISTout[31:1] are input to fixed input comparator 712. Fixed input comparator 712 is a 32-bit comparator and is used to check data. Fixed input comparator 712 expects every alternate data bit to be the same. However, bit 0 may cause problems. The multiplexer 710 lets MBISTout[0] go to the fixed input comparator 712. This prevents comparator failure when bit 0 is encountered. Other implementations may use different data and comparator sizes and still be within the scope of the description herein.
It is understood that the specific order or hierarchy of steps in the processes disclosed is an illustration of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged. The accompanying method claims present elements of the various steps in a sample order, and are not meant to be limited to the specific order or hierarchy presented.
The previous description is provided to enable any person skilled in the art to practice the various aspects described herein. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects. Thus, the claims are not intended to be limited to the aspects shown herein, but is to be accorded the full scope consistent with the language claims, wherein reference to an element in the singular is not intended to mean “one and only one” unless specifically so stated, but rather “one or more.” Unless specifically stated otherwise, the term “some” refers to one or more. All structural and functional equivalents to the elements of the various aspects described throughout this disclosure that are known or later come to be known to those of ordinary skill in the art are expressly incorporated herein by reference and are intended to be encompassed by the claims. Moreover, nothing disclosed herein is intended to be dedicated to the public regardless of whether such disclosure is explicitly recited in the claims. No claim element is to be construed as a means plus function unless the element is expressly recited using the phrase “means for.”
It is to be understood that the claims are not limited to the precise configuration and components illustrated above. Various modifications, changes and variations may be made in the arrangement, operation and details of the systems, methods, and apparatus described herein without departing from the scope of the claims.