Wednesday, 12 February 2020

What are the deciding factors for a scan desgin

If u ask to do DFT implementation on a design, then what factors do we need consider mainly. While doing the DFT implementation designer need to have some knowledge on tester which will be used for testing IC.

  • Number of channels available on the tester
  • Memory size of the channel
  • Number of scan pins
  • The operational frquecny of the tester

This above facotrs must be considered while implementing the DFT on the design

Tuesday, 4 February 2020

DFT:Ad-hoc methods, Structured methods,Scan cell

Design for Testability (DFT) is required to guarantee the product quality, reliability, performances, etc. Design for Testability refers to those design techniques that

  • Enhances testability of device
  • Ease ability to generate vectors
  • Reduce test time
  • Reduce the cost involved during test

There are different methods to implement the DFT Logic for Digital circuits which are listed below

  • Ad-hoc methods: Good design practices learnt through experience and those methods are used as guidelines
    • Avoid combinational feedback
    • All flip flops must be initializable
    • Avoid redundant and large fanin gates
    • Provide test control for the signals which are not controllable
    • While designing test logic we have to consider the ATE requirements

Ad-hoc methods had few disadvantages, and these gives more advantage to Structured methods.

  • Disdvantages od ad-hoc DFT methods:
    • Experts and tools not always available
    • Test generation is often manual with no guarantee of high fault coverage
    • Design iterations may be necessary
  • Structured Methods: Structured DFT provides a more systematic and automatic approach to enhancing design testability. Structured DFT’s goal is to increase the controllability and observability of a circuit. Various methods exist for accomplishing this. The most common is the scan design technique, which modifies the internal sequential circuitry of the design.
    • Scan: In the design all the flip flops are converted to scan flip flop.
    • Boundary Scan
    • Built-in self-test

we have came across the scan flip flop, and you may be wondering, what would be the difference between a norml flip flop and a scan flip flop. Below pictorial representation give clear picture about a flop and scan flop.


TM represents Test Mode signal and this signal should be 1 during DFT testing and 0 for functional model.

Wednesday, 29 January 2020

CHISEL:Combinational circuits

Chisel uses the boolean algebra operators and arithmetic operators same as in c, java, scala, etc programming languages.

val sel = a & b

The keyword val is part of scala which is used to name the variables that have values that won’t change. And here it is used to name the chisel wire, sel, holding the output of the bitwise and operation. A signal can also first be defined as a Wire of some type. Afterward, we can assign a value to the wire with the  ‘:=’ update operator.

val sel = Wire(UInt()))
sel := a & b

Boolean operators

& —– represents bitwise AND operator
val and = a & b
| —– represents bitwise OR operator
val or = a | b
^ —– represents bitwise XOR operator
val xor = a ^ b
~ —– represents bitwise negation
val not = ~a

Arithmetic operations

+ —– Addition operation
val add = a + b
– —– Subtraction operation
val sub = a – b
* —– multiplication operation
val mul = a * b
/ —– division operation
val div = a / b
% —– modulo operation
val mod = a % b

OperatorDescriptionData Types
*        /         %Multiplication, division, modulusUInt, SInt
+       –Addition, subtractionUInt, SInt
===      =/=Equal, not equalUInt, SInt, returns Bool
>    >=    <=Comparison operationsUInt, SInt, returns Bool
<<      >>Shift left, shift rightUInt, SInt
~NOTUInt, SInt, Bool
&        |        ^AND, OR, XORUInt, SInt, Bool
!Logical NOTBool
&&      ||Logical AND, ORBool
Chisel defined hardware operators are show above

Wednesday, 22 January 2020

Vi Editor Series III

Below commands must be used in visual mode (ctrl+v)

  • Type  dw  to delete a word.
  • Type  d$   to delete to the end of the line.
  • Press  a  to append text.
  • Type  %  to find a matching ),], or } .
  • Type  :s/vlsispace_old/vlsispcae_new/g  to substitute ‘vlsispace_new‘ for ‘vlsispace_old‘ in the line
  • Type   :%s/vlsispace_old/vlsispcae_new/g  to change every occurrence in the whole file.
  • Type  :!     followed by an external command to execute that command.
  • CTRL+R a few times  to redo the commands.
  • Type CTRL+g to show your location in the file and the file status.
  • Type  CTRL+G  to move to a line in the file.
  • Press  G  to move you to the bottom of the file.
  • Type  gg  to move you to the start of the file.
  • Type  a  to insert text AFTER the cursor.
  • Type  A  to insert text after the end of the line.
  • Type a capital  R  to replace more than one character.
  • yw  yanks one word.
  • y  operator to copy text and  p  to paste it 
  • Type  o  to open a line BELOW the cursor and start Insert mode.    Type  O  to open a line ABOVE the cursor.
  • The  command moves to the end of a word.
  • Typing “:set xxx” sets the option “xxx”.  Some options are:
    • ic‘ ‘ignorecase’       ignore upper/lower case when searching
    • is‘ ‘incsearch’        show partial matches for a search phrase
    • hls‘ ‘hlsearch’        highlight all matching phrases
    •  You can either use the long or the short option name.
  • Prep-end “no” to switch an option off:   :set noic
  •  Vim has a comprehensive on-line help system.  To get started, try one of  these three:
    • press the <HELP> key (if you have one)
    • press the <F1> key (if you have one)
    • type   :help <ENTER>
  •  You can find help on just about any subject, by giving an argument to the  “:help” command.
    • :help w
    • :help c_CTRL-D 
    • :help insert-index 
    • :help user-manual 
    • :help vimrc-intro
  • There is a variable in VIM runtime..
    • $VIMRUNTIME/  ==> we can refer to this if want to know any vim  versions etc..
  • Command line completion with CTRL-D and <TAB>

Wednesday, 15 January 2020

Recovery Time, Removal Time

Recovery Time:
Recovery time is the minmium time that as asynchronous control signal must be stable before the clock active- edge transition. In other words, this check ensures that after the asynchronous signal become inactive, there is adequate time to recover so that the next active clock edge can be effective.

Consider the time as show in below figure, between an asynchronous reset becoming inactive and the clock active edge of a flip-flop. If the active clock edge occurs too soon after the release of reset, in this case the state of the flip-flop may be unknow. Therefore it is required to have minimum time for asynshronus control signal to become stable. Recovery time is similar to setup time.



Removal Time:
Removal time is the minimum length of time that an asynchronous control must be stable after the clock active edge transition. This check ensures that the active clock edge has no effect because the asynchronus control signal remains active until removal time after the active clock edge.

Consider the asynchronous control signal is released(becomes inactive) well after the active clock edge so that the clock edge can have no effect. Similar to hold check, it is minimum path check except that it is on an asynchronous pin of flip flop.




Wednesday, 8 January 2020

CHISEL:DATA TYPES

Chisel data types are used to specify the type of values held in the state elements or flowing on wires. Chisel defines the Bundles for making collection of values with named fields (Similar to Structs in other languages and Vecs for indexable collections of values. There are three data types (which represents the vector of bits) to describe the signals, combinational logic, registers.

  • Bits
  • UInt (Unsigned Integer)
  • SInt (Signed Integer)

UInt and SInt extends the Bits data type. The Chisel uses the two’s complement as signed integer representation. Definition for three data types as follows

Bits (8.W)  –> an 8 bit width Bits
UInt (8.W) –> an 8 bit width unsigned Integer
SInt (8.W) –> an 8 bit width Signed Integer

Example:

0.U    //defines the Unsigned Integer constant of 0
-3.S // defines the Signed Integer constant of -3

We can also define the Integer with width.

7.U(4.W)  // defines the Unsigned Integer of width 4
8.S(7.W) // Signed decimal 7 bit literal of type SInt

For constants defined in other bases than decimal, the constant is defined in a string with a preceding h for hexdecimal(base 16), o for octal(base 8), b for binary (base 2). In these case we omit the bit width and the chisel infers the minimum width to fit the constants in, in this below case width 8 will be considered.

hdf”.U    // Hexa decimal representation of 223
o337”.U  // Octal representation of 223
“b1101_1111”.U  // Binary representation of 223

Wednesday, 1 January 2020

Types of DFT Logic

Design for Testability circuit is used for controllability and observability of the design. The test logic is inserted in to the main core logic for testing the chip once it is manufactured. Types of DFT logic are

  • Logic BIST
    Build in self-test is inserted into the core logic design. This circuit is used to test the core logic.
  • MBIST
    Memory build in self-test is carried on the memory elements and this logic is used for testing memories
  • Boundary Scan
    In the board level Boundary Scan circuitry provides the access to the inputs and output ports of the chips. This circuitry not only does board level testing, it can also do circuit level such as BIST or internal scan and it can test board interconnection. To control all these operation, TAP controller was used.

Physical Cells :TAP CELLS, TIE CELLS, ENDCAP CELLS, DECAP CELLS

Tap Cells (Well Taps) :  These library cells connect the power and ground connections to the substrate and n­wells, respectively.  By plac...