Home

Design of an all-digital, reconfigurable sigma

image

Contents

1. Second Order Error Feed Back i Magnitude in dB Ein i eli esi iii FE ia f ENT 10 10 10 10 f y Frequency in Hz Figure 5 14 Comparison of first order and second order error feedback sigma delta modulator with OSR 64 input word length 16 and 2 bit quantization Figure 5 15 shows a comparison of first order models in which there is not much 5 7 Hardware Implementation Results 57 difference when the quantization bits Q are 2 First Order Signal Feedback Vs Error Feed Back OSR 64 Input Word Length 16 Q 2 100 T T T T First Order Signal Feedback Model First Order Error Feedback Model Magnitude in dB Frequency in Hz Figure 5 15 Comparison of First Order Signal and Error Feedback Sigma Delta Modulator with OSR 64 Input Word length 16 and 2 bit Quanti zation Similarly the comparison for second order signal feedback and error feedback model is given in figure 5 16 This comparison gives some better results for two modulators which shows that in the second order signal feedback modulator noise is pushed to higher frequencies to achieve better SNR Figure 5 16 shows that the signal feedback model gives better result at same input level than the error feedback model 5 7 Hardware Implementation Results The design described in chapter 2 is implemented in SoC Encounter a tool from Cadence Design Systems This section presents area and po
2. 50 5 5 Spectrum of output signal after anti aliasing filter 50 5 6 Spectrum of digital signal with 16 word length 51 5 7 Comparison of signal to noise ratio SNR and over sampling ratio 51 5 8 Comparison of signal to noise ratio SNR and word length NOB 52 5 9 Spectrum of first order signal feedback sigma delta modulator with OSR 64 word length 16 and 2 bit quantization 52 5 10 Spectrum of first order error feedback sigma delta modulator with OSR 64 word length 16 and 2 bit quantization 53 5 11 Spectrum of second order signal feedback sigma delta modulator with OSR 64 input word length 16 and 2 bit quantization 54 5 12 Spectrum of second order error feedback sigma delta modulator with OSR 64 input word length 16 and 2 bit quantization 55 5 13 Comparison of first order and second order signal feedback sigma delta modulator with OSR 64 input word length 16 and 2 bit quantization i c ag tg aS P eC SOS SAU Aue E rara aed 56 5 14 Comparison of first order and second order error feedback sigma delta modulator with OSR 64 input word length 16 and 2 bit quantization as VIS ue EL QU eT ad A 56 5 15 Comparison of First Order Signal and Error Feedback Sigma Delta Modulator with OSR 64 Input Word length 16 and 2 bit Quan tizatl hz o iwa A a pu AD DR ROS aote See 57 5 16 Comparison of second order signal and error feedback sigma delta modulator with OSR
3. Route Selection e Pre Route Clock Route Only u Post CTS Post Route Display Selection Display Clock Tree e All Leve Bottom Level non gated clock tree only Selected Level non gated clock tree only e Display Clock Phase Delay Display Min Max Paths Cancel Help Figure 6 24 Display clock tree window to display phase delay and clock tree If the phase delay is not optimized during the CTS process then different delays will be there in a design and are highlighted in different colors as shown in fig ure 6 25 All blocks in blue area have same clock phase delay which is also the phase of input clock But the blocks under the red area do not have the same phase delay as the blue ones and are critical as indicated by the color Equivalent commands to display clock phase delay are displayClockPhaseDelay clkRouteOnly displayClockPhaseDelay preRoute displayClockPhaseDelay postCTS displayClockPhaseDelay postRoute clearClockDisplay The last command is used to clear the clock phase delay displayed in the design post CTS Timing Optimization To remove difference in phase delay post CTS is performed by following steps mentioned in section 6 4 5 and selecting post CTS from figure 6 21 90 6 SoC Encounter Manual Figure 6 25 Clock phase delay variation is shown in different colors When post CTS is complete the console displays the results and improvements in worst negative slack
4. and Y 2 1 27 X z iz N z 2 14 Solving equations 2 14 and 2 15 yields the transfer function Y z g N z 2 15 X z 1 z1 14271 When we consider N z 0 in equation 2 15 and solve for Y z X z will give us X 1 231 10 Equation 2 16 shows that the modulator acts like a low pass filter for the input sig nal Similarly replacing X z with zero in equation 2 15 and solving for Y z N z yields in Y z _ 1 N z 1 z7 2 17 which realizes that the modulator is working as a high pass filter for the noise 14 2 Sigma Delta Modulators 2 3 Error Feedback Sigma Delta Modulators In error feedback model presented in Lovgren 2001 the quantization noise or quantization error is fed back and added to the input of the modulator as depicted in figure 2 7 In error feedback model quantizer input eg defines output word length for sigma delta modulator The complete flow of the error feedback model can be represented by eo XIn Yin Yin i Delay Figure 2 7 Error feedback sigma delta modulator X n X n Yo n 2 18 Y n X n eg 2 19 Y n X n Y n 2 20 and Y n Yi n 1 2 21 The z transform of above equations results in X z X z Yo z 2 22 Y z X1 2 eg 2 23 Y z X 2 Y 2 2 24 2 4 Second Order Signal Feedback Model 15 and Y z Y 2 Z 2 25 The output Y z is r
5. Core Utilization should be kept around 60 to 70 percent While defining core to IO boundary one thing should be kept in mind that power rails will be added later so leave some space for power rails in between core and IO boundary When all the parameters are setup click OK to get floorplan similar to figure 6 11 6 4 Cadence Encounter Manual 77 Specify Floorplan Basic Advanced Design Dimensions Specify By e Size Die lO Core Coordinates e Core Size by Aspect Ratio Ratio H W 1 e Core Utilization 0 6 Cell Utilization 0 699919 Dimension Nidtt 0 975 u Die Size by Core Margins by Core to IO Boundary u Core to Die Boundary Core to Left 5 Core to Top f 5 Core to Right 5 Core to Bottom 5 Die Size Calculation Use Max IO Height 2 Min IO Height Floorplan Origin at e Lower Left Corner w Center Unit Micron Apply Cancel Help Figure 6 10 Set up parameters for floor planning You may have noticed that the IO pins are not aligned as desired so change the IO assignment file according to the floorplan that is just setup Ruler can be used to measure sides and to define distance between IO pins Ruler is invoked by pressing k or clicking on ruler icon in top of Encounter menu Equivalent commands for the floorplan process are given here floorPlan site CORE r 1 0 8 3 0 5 0 3 0 5 0 The parameters used in floorplan command are defined as 1 Height Width Rati
6. 4 Figure 6 3 Parameters set up for clock specification Select the top design in logical hierarchy and open the compile window shown in figure 6 5 by Design Compile Design In window popped up un check the Exact Map box and keep the default op tions Just click OK to run the compiler Equivalent command to compile the design from console is compile map_effort medium area_effort medium When synthesizing large designs use medium area and map effort as the large effort may cause large delays in synthesizing Now the mapped schematic of any design can be viewed through schematic viewer Click on any design in logical hierarchy and click Create Design Schematic icon to view the schematic The design schematic is generated using standard cells defined in a netlist 6 3 6 Design Reports Different reports of the synthesized design can be generated in design compiler which are helpful to investigate the mapped design Different reports can be generated by selecting Design in top menu of design compiler The different reports available are Report Constraints Area Report Critical Path Report and Resource Usage Report Reports related to timing can be viewed by clicking Timing and then selecting a related report 6 3 Synthesis and Netlist Design Compiler 69 Design Constraints Current design digRfDacSdm _BitSplitter_1 Optimization constraints Constraint
7. 92 LIST OF TABLES xiii 5 6 5 7 6 1 6 2 Chip core area sme e RE a Li 58 Power utilization zos dete s ee DER E T 59 Registers indicated by elaborate process 66 Summary of optimized design after pre CTS 85 NOTATIONS Abbreviation SDM MSB LSB DRC DAC HVT LVT RTL CTS WNS LEF SNR OSR CT SOSDM Notation Significance Sigma Delta Modulator Most Significant Bit Least Significant Bit Design Rule Check Digital to Analog Converter High Voltage Temperature Low Voltage Temperature Register Transfer Language Clock Tree Synthesis Worst Negative Slack Library Exchange Format Signal to Noise Ratio Oversampling Ratio Clock Tree Second Order Sigma Delta Modulator XV Part I Background Introduction The sigma delta converters have been in use for many years but the recent ad vancement in the technology has made it possible to use them widely We can find the applications of these converters in homes such as communication sys tems consumer and professional audio and precision measurement devices One of the key properties of these converters is that they are the only one low cost conversion method which will provide a high dynamic range and flexibility in converting narrow band signals While understanding the operation of sigma delta converters the key areas which need to be addressed are oversampling interpolation digital filtering noise shaping and
8. Figure 4 8 Internal structure of stage0 sigma delta modulator 1 bit integrator which at the same time is accumulating the LSBs By following this methodology one can select between two types of integrators using a switch This switch is added between carry out and carry input signal as shown in figure 4 9b and is controlled by an input signal Consider in figure 4 9b the control signal of switch is set to high i e 1 The carry input of the 2 bit integrator will be connected to the output of 1 bit integra tor In this case the circuit will work as 3 bit integrator If required integrator is of 2 bits then the control of the switch is set to low voltage i e 0 Carry in of the integrator will be connected to the input carry in signal which is always set to zero In this way the circuit is disconnected from the 1 bit integrator and works as a 2 bit integrator When the lower integrator is disconnected there is a possibility of power loss if we leave the lower part connected to LSBs To reduce power loss the lower part should be completely disconnected from all sources like LSBs clock and power 4 5 4 Extension of Stage0 for Re Configurability Figure 4 10 shows StageN of overall SDM that is shown in figure 4 12 The StageN is basically not an SDM it is only used for the extension of the Stage0 SDM This stage is designed on the basis of integrator extension which was explained in section 4 5 3 4 5 Design of Re Configur
9. Solving 2 10 and 2 11 yields the transfer function 12 2 Sigma Delta Modulators 2 12 Figure 2 4 Model of Sigma Delta Modulator Indicating where the Integrator is Placed 2 2 2 Quantizer The next component which is a part of the first order sigma delta modulator is a quantizer The quantizer used in the modulator is shown in figure 2 5 In the model of sigma delta modulator we assume that the quantization noise is not correlated with the input signal Janssen E 2011 The quantizer can be modeled as a block that has a linear gain and independent noise source which adds quantization noise as shown in figure 2 5 Nin Xo n Xs n Y n Figure 2 5 Quantizer stage of SDM 2 2 3 Feedback Loop The last part of sigma delta modulator is a feedback loop Sigma delta modula tors modify the spectral properties of the quantization noise in such a way that the quantization noise is low in the band of interest The modulator also tries to move or shape the noise contents to higher frequencies and this noise shaping is achieved with the help of a negative feedback loop If the integrator in the signal feedback model is replaced with a filter having a transfer function z and the quantizer with N z as shown in figure 2 6 Janssen E 2011 then the transfer function for the modulator can be derived from 2 2 Signal Feedback Sigma Delta Modulators 13 Y z Y 2 X z Y z z N z 2 13
10. and in To Global Net field Then click Add to List and repeat same for gnd to tie it to a low voltage Then click Apply and close the window Equivalent commands are clearGlobalNets globalNetConnect vdd type pgpin pin vdd inst module override globalNetConnect gnd type pgpin pin gnd inst module override globalNetConnect vdd type tiehi pin vdd inst module override globalNetConnect gnd type tiehi pin gnd inst module override 6 4 Cadence Encounter Manual 79 u Global Net Connections MOP Connection List Power Ground Connection vad PIN vdd Module gnd PIN gnd Module vdd TIEHIL vdd Module Y Pin e Tie High u Tie Low Connect Instance Basename Pin Name s gnd Net Basename Scope Q single instance e Under Module Under Power Domain Under Region lx 0 x 1 lt Apply All To Global Net gnd Override prior connection Verbose Output E T 1 Update Delete Check Reset Cancel Help Figure 6 12 Global net connection window Adding Power Rails Power rails will be added around the core These rails are used to connect the stripes which will be placed through the rows of the core Open Add Rings window by Power Power Planning gt Add Ring y Net field of figure 6 13 defines nets that will be added to the rails In Nets field write gnd and vdd in order as the first one will be
11. it is unambiguous that signal feedback is preferable 5 6 5 Comparison of Modulators The noise shaping in case of a second order sigma delta modulator is more re fined as compared to a first order modulator and noise power will be pushed 56 5 Simulation Results away from lower frequencies or band of interest as shown in figure 5 13 for same number of quantization bits First Order Vs Second Order Signal Feed Back OSR 64 Input Word Length 16 Quantization Bits Q 2 100 T T T T First Order Signal Feed back A Second Order Signal Feed back 60 E Fgh a o E 7 S gt ob 4 40 10 Frequency in Hz Figure 5 13 Comparison of first order and second order signal feedback sigma delta modulator with OSR 64 input word length 16 and 2 bit quantization In figure 5 13 one can clearly see that the noise shaping is far better for the second order modulator than first order sigma delta modulator Better noise shaping means that the noise is more shaped in higher frequencies In spectrum of first order SDM noise components appear close to the baseband signal while in second order modulator noise components are pushed to higher frequencies Similarly comparison of the error feedback model is shown in figure 5 14 100 T T First Order Vs Second Order Error Feed Back OSR 64 Input Word Length 16 Q 2 T T First Order Error Feed Back
12. 2 rr rr rr rr een 34 4 5 4 Extension of Stage0 for Re Configurability 36 4 5 5 Pipelining for Higher Number of Bits 38 4 6 Modeling Language for SDM s some 2 esse sr os so ser 38 4 7 Test Methodology for Simulations 144124211 40 4 8 Testbench for Simulations LL 40 4 81 MATLAB Environment LL 42 4 8 2 Interfacess e V a de n RA Da 42 4 8 3 Cadence Environment Lua 1111 43 4 9 Conclusione Asa ee er a W ad e e TUS 44 V Simulation Results 5 Simulation Results 47 Dil Introduction xeu gt Rei Eu bens ss bud 47 5 2 Baseband Signal Generator some sees nennen 47 5 3 Interpolation susse 2483 a eee ea a 47 O A OR BE GK 49 DID DIBHIZA O a fa OE IE ie o 49 5 6 Sigma Delta Modulators 2 222 Connor 50 5 6 1 First Order Signal Feedback Model 52 5 6 2 First Order Error Feedback Model 53 5 6 3 Second Order Signal Feedback Model 54 5 6 4 Second Order Error Feedback Model 55 5 6 5 Comparison of Modulators 0 55 5 7 Hardware Implementation Results 57 5 7 1 Area CONSUME s RW ER dka RU ER 57 5 7 22 Power Utilization 4 2e ke a ed ados 59 5 8 Conclusioni con NA Bios tee an ats ale eene dS eR Rs 59 VI SoC Encounter Manual 6 SoC Encounter Manual 63 6 1 4 Introduction a avatar pepate ver namen SE t etii 63 6 2 Behavioral Modeling MODELSIM 63 6 3 Synthesis an
13. 3 2 In this way oversampling decreases the quantiza tion noise in the band of interest Figure 1 1 shows the concept of spreading the noise over a larger frequency range and a typical Nyquist type converter Jarman 1995 Fa Frequency of Interest Fc Band Of Interest Fs Frequency of Interest Fs Sampling Frequency Fc Band Of Interest Fs Sampling Frequency GESZER fm Noise gt Fo Fe Fs Frequency Fa Fo Fs Frequency a b Digital Low Pass Filter SNR Quantization Noise gt Figure 1 2 Filtering the quantization noise in higher frequencies One of the advantages of using oversampling ratio is that the image frequencies can be moved away from the signal of interest and then we can use a less complex low cost filter that has a wider transition band An essential factor that makes sigma delta modulator SDM more attractive is noise shaper or integrator which distributes the noise in such a way that is very low in the intended signal or at the lower frequencies as shown in figure 1 2a With the help of a digital low pass filter sharp cutoff edges at the band of inter est will be defined which will be helpful for removing out of band quantization noise and also the unwanted signals or images Figure 1 2b demonstrates the idea of digital filtering The sigma delta modulators tend to push the noise from the band of interest to a higher frequency band So the modulator acts like a low pass filter
14. Delta Modulator Reset Signal Figure 4 13 MODELSIM test bench The basic idea is to compare the outputs of two modulators one modulator is presented in this chapter and the other modulator is designed to test the func tionality of the modulator Both modulators have same inputs like clock signal reset carry in signals and also the input data One modulator is reconfigurable and the other is a static Figure 4 13 explains the testing methodology of the modulators in MODELSIM The reconfigurable modulator is controlled by con trol signals from test bench The outputs of both modulators are compared in test bench and a low signal 0 is generated if the outputs are equal and a high signal is generated if the outputs do not match 4 8 Testbench for Simulations In MODELSIM the working functionality of the model can only be verified but not the actual performance in a real time system These types of simulations are performed by importing the design to cadence environment The design can be imported in cadence by following instructions given in chap ter 6 So to verify the actual performance in a real time environment test bench of figure 4 14 is used The idea of using such test benches is to mix different environments like MATLAB and Cadence MATLAB is used to generate test vectors and to test corresponding output The cadence environment simulates the system using standard cell libraries 41 4 8 Testbench for Simulation
15. O URL f r elektronisk version http urn kb se resolve urn urn nbn se liu diva XXXXX Titel Title Design of an all digital reconfigurable sigma delta modulator F rfattare Sohaib A Qazi and S Asmat Ali Shah Author Sammanfattning Abstract This thesis presents a model of reconfigurable sigma delta modulator These modulators are intended for high speed digital Digital to Analog Converters The modulators are intended to reduce complexity of current steering DACs and also considered as a front end of data converters Quantization noise present in digital signal is pushed to higher frequencies by sigma delta modulators Noise in high band frequencies can be removed by a low pass filter A test methodology involving generation of baseband signal interpolation and digitization is opted Topologies tested in MATLAB include signal feedback and error feedback models of first order and second order sigma delta modulators Error feedback and signal feedback first order modulators performance is quite similar The SNR of a first order error feedback model is 52 3 dB and 55 9 dB for 1 and 2 quantization bits respectively In second order SDM signal feedback provides best performance with 80 dB SNR The other part of the thesis focuses on the implementation of the sigma delta modulator SDM using faster time to market approach SoC Encounter a tool from Cadence is the easiest way to do this job The modulato
16. Verilog Library Only Ignore Modules File Add Import Modules File Add Import Structural Modules As schematic and functional 8 Structural View Names Schematic schematic Netlist netlist Functional functional Symbol symbol Log File fverilogIn log Work Area tmp Name Map Table fverilogIn map table Overwrite Existing Views w Overwrite Symbol Views Created By Verilogin D Verilog Cell Modules 7 Create Symbol Only Import Import As Functional Cancel _Defaults_ Apply Load Save y Help Figure 6 33 Import netlist design in Cadence for simulations Part VII Conclusion and Future Work Conclusion and Future Work The goal of the thesis was to design an all digital re configurable sigma delta modulator The project was divided in sub modules to make things simpler during the project phase Different typologies of the sigma delta modulators like signal feedback and error feedback models were verified in MATLAB The signal feedback model provides best performance in terms of SNR as compared to error feedback model Modulators are also tested for different order of quantization levels like first order and second order modulators First order modulators are quite same in performance but the second order modulators are different The second part of the thesis was to implement sigma delta modulator in digital domain using SoC Encounter On the basis of the simulation results that were carried out in
17. WNS is seen Equivalent command for post CTS is optDesign postCTS outDir name of file where report will be saved Routing Design In this step all the wires and nets defined in Verilog netlist file will be generated and routed Start Nano Router using Route NanoRoute Route In fig ure 6 26 check the timing driven parameter If the effort is increased then the tool will put more effort in meeting the timing constraints For the time being the Effort can be left to its default value i e 5 Click OK to run the router The router will route wires to connect all the blocks and will also place the vias required to connect the metals A sample routed design is shown in figure 6 28 Equivalent commands to run the nanorouter are setNanoRouteMode routeWithTimingDriven true routeTdrEffort 5 routeDesign 6 4 Cadence Encounter Manual 91 NanoRoute Routing Phase Global Route Y Detail Route Start Iteration 0 End Iteration default Post Route Optimization _ Optimize Via _ Optimize Wire Concurrent Routing Features x Fix Antenna Insert Diodes Congestion Timing Effort 5 1 SMART SI Driven te SI S tim Litho Driven Post Route Litho Repair Routing Control Selected Nets Only Bottom Layer default Top Layer default ECO Route Area Route Area Job Control x Auto Stop Number of Local CPU S 1 Number of CUP s per Remote Machine 1 k Number of Remote Machine s 0 Set Mu
18. achieves more than 16 bit resolution IEEE Signal Processing Magazine 13 1 61 84 1996 Cited on page 15 113 114 Bibliography Murali S Atienza D De Micheli G Benini L Pullini A Angiolini F Bringing nocs to 65 nm IEEE Micro 27 5 75 85 2007 Cited on page 31 Synopsys SYN2TLF User Guide 2005 Cited on pages 72 and 73 Cadence Systems LEF DEF Language Reference Manual 5 4 edition 2003 Cited on page 72 SUN GUE NM t 6 T o 338 I a ZA da o Ves un Link pings universitet Upphovsr tt Detta dokument h lls tillg ngligt p Internet eller dess framtida ers ttare under 25 r fr n publiceringsdatum under f ruts ttning att inga extraordin ra omst ndigheter uppst r Tillg ng till dokumentet inneb r tillst nd f r var och en att l sa ladda ner skriva ut enstaka kopior f r enskilt bruk och att anv nda det of r ndrat f r icke kommersiell forskning och f r undervisning verf ring av upphovsr tten vid en senare tidpunkt kan inte upph va detta tillst nd All annan anv ndning av dokumentet kr ver upphovsmannens medgivande F r att garantera ktheten s kerheten och tillg ngligheten finns det l sningar av teknisk och administrativ art Upphovsmannens ideella r tt innefattar r tt att bli n mnd som upphovsman i den omfattning som god sed kr ver vid anv ndning av dokumentet p ovan beskrivna s tt samt skydd mot att dokumentet nd
19. check the linked libraries 6 3 4 Design Constraints Timing and area are two basic constraints required by almost every design If the design is clocked then the timing constraints are set before compiling Area 6 3 Synthesis and Netlist Design Compiler 67 constraints only define the minimum area that will be used while optimizing the design digRfDacSdm_BitSplitter_1 out 4 0 gt gt reset gt nl 7 0 Figure 6 2 Symbol of top level design schematic for sigma delta modulator To set timing constraints select top design model digrfDacSdm BitSplitter from logical hierarchy window Click Create Schematic icon to create a symbol of your design which will include all the input and output ports In design symbol click clock port and open Attributes Specify Clock A win dow will pop up where clock name period rising and falling edges are required Write clock name as specified in RTL design and specify a period of clock accord ing to the maximum frequency at which the design will be working Clock period field is defined in nano seconds in this manual this time scale is defined in cell libraries If design is to be operated at 2 GHz then specify 0 5 in period field Then the rising and falling edges have to be setup to complete the clock specifica tion When the desired duty cycle is 50 then rising edge should be set to 0 and falling edge should be at period 2 When the edges are
20. complexity of current steering DACs and also considered as a front end of data converters Quantization noise present in dig ital signal is pushed to higher frequencies by sigma delta modulators Noise in high band frequencies can be removed by a low pass filter A test methodology involving generation of baseband signal interpolation and digitization is opted Topologies tested in MATLAB include signal feedback and error feedback models of first order and second order sigma delta modulators Error feedback and signal feedback first order modulators performance is quite similar The SNR of a first order error feedback model is 52 3 dB and 55 9 dB for 1 and 2 quantization bits respectively In second order SDM signal feedback provides best performance with 80 dB SNR The other part of the thesis focuses on the implementation of the sigma delta modulator SDM using faster time to market approach SoC Encounter a tool from Cadence is the easiest way to do this job The modulators are implemented in 65 nm technology The reconfigurable sigma delta modulator is designed us ing Verilog HDL language Switches are introduced to control the reconfigurable SDM for different input word lengths Word length can vary from 0 to 4 bits Modulator is designed to work for frequencies of 2 GHz To netlist the design Design Compiler is used which is a tool from Synopsys The area of the chip reported by design compiler is 563 68 um When the design is
21. decimation which are discussed in chapter 2 4 4 A A Fa Frequency of Interest Fa Frequency of Interest Fs Sampling Frequency F Increased Sampling Frequency c x 5 Quantization Nojse Quantization Noise gt Fs Fs 2 Frequency Fo F _ Frequency a b Figure 1 1 Spread noise over wide range of frequencies a Typical Nyquist conversion b SDM noise spread 4 1 Introduction The interpolation will be carried out in two steps up sampling and filtering When the signal is oversampled it means that the sampling rate sampling fre quency has been increased by inserting zeros then the signal should be limited to a band by using a digital low pass filter The desired response of the digital filter should be set such that the output signal has same spectral contents as that of the input signal So the transfer function Hr f of an interpolation filter is characterized by d 0f f 1 1 0 Bi lt f lt Ue Where f is the sampling frequency and L is an up sampling factor By tak ing samples at a much higher rate we are not changing the signal and quantiza tion noise power however the quantization noise power is spread over a larger frequency range So it decreases the spectral density of the quantization noise Now if comparison is made with the original Nyquist rate the quantization noise power is reduced by 3 dB for every doubling of the oversampling ratio OSR as discussed in section 3
22. increase Increased word length will also affect the adder module The adder works on the logic of adding two bits and passes the carry to the next adder which might result in delayed carry propagation till the last stages of the adder Pipeline adders are used for high speed DSDM Bhansali P 2006 The pipeline adders may be introduced between SDM stages In this thesis the input word length is not large enough to consider this problem so the pipelining issue is not considered in this thesis work 4 6 Modeling Language for SDM The complete model of the modulator is designed in MODELSIM using RTL lan guage There are two basic modules subtractor and integrator for each stage in sigma delta modulator The integrators are further divided into delay elements and adders The division of the modules in different sub blocks made coding of modules easy 4 6 Modeling Language for SDM 39 SDM Stage 0 with feedback subtractor SDM Stage 2 without feedback subtractor SDM Stage N 1 without feedback subtractor Figure 4 12 Architecture of reconfigurable sigma delta modulator 40 4 Digital Modeling of SDM 4 7 Test Methodology for Simulations The design needs to be verified before exporting to cadence Model presented in section 4 5 4 is verified using a test bench in MODELSIM ModelSim TestBench pie x Reconfigurable Sigma Delta Modulator Clock Generation Comparison of Outputs Ctrl signals Reference Sigma
23. multiples of 128 MHz i e 128 MHz 256 MHz and so on 5 4 Filtering Now the interpolated signal is passed through a low pass filter which removes the images at multiples of the sampling frequency In order to keep noise floor to a minimum value a very high order filter is used The frequency response of a chosen low pass filter is shown in figure 5 4 and the output signal is shown in figure 5 5 where it is obvious that when the interpolated signal is passed through the low pass filter the replicas of base band signal at multiples of 128 MHz are suppressed to a minimum value From figure 5 4 one can see that the noise floor is below 300 dB for a filter order of 974 which is helpful in suppressing the images to a very low level Upsampled by a factor of 16 T T Magnitude in dB L fi L L fi m 5 5 2 25 1 13 frequency in Hz xi Figure 5 3 The baseband signal upsampled by a factor of 16 5 5 Digitization In the next step the interpolated signal is quantized into 16 bits which increases the noise floor to 100 dB The frequency spectrum of the digitized signal is shown in figure 5 6 The noise floor is reduced to 100 dB because the maximum allowed theoretical SNR for 16 bit signal is around 98 dB 50 5 Simulation Results Frequency Reponse of the FIR Filter T i Magnitude in dB a 8 450 h l h f o 1 15 2 25 frequency in Hz xu Figure 5 4 Frequency response of anti aliasing filter with orde
24. objects lt Block ring s around w User defined coordinates i Ring Configuration Top Bottom Left Right Layer MIH M2 V gt M2 V gt NARADA nt Scene MIH width 1 1 1 1 Spacing 0 16 0 16 0 16 0 16 Update Offset Center in channel WJ Specify Option Set Use option set Ey Variables Apply Defaults Cancel Help Figure 6 13 Set up parameters to place power rings around the core above In figure 6 15 power rails are shown Encounter s console can also be used to generate the power rails by using follow ing commands addRing spacing_bottom 0 16 spacing_top 0 16 spacing_right 0 16 spacing_left 0 16 width_left 1 width_bottom 1 width_top 1 width_right 1 layer_bottom M1 layer_top M1 layer_right M2 layer_left M2 center 1 around core offset_bottom 2 5 offset_left 2 5 offset_right 2 5 offset_top 2 5 nets gnd vdd Adding Stripes Power stripes are added across the core to ensure that power is properly divided throughout the core 6 4 Cadence Encounter Manual 81 a b Figure 6 14 Selecting power rails around the core a Worst selection b Best selection Before continuing to add the stripes necessary thing is to understand orientation of the rows In figure 6 16 observe that all the rows have straight line on one side and on the other side there is a cut mark on left side The straight indicates the vdd and the side with cut mark indic
25. placed 6 21 Design optimization window with pre CTS post CTS and post Route DP ET DX EccL Rc i WRON 6 22 Clock tree synthesis CTS window o o 6 23 Selecting buffers and inverters to generate clock tree specification S ctstch M6 uo a EEE en ww x eue rs ps 6 24 Display clock tree window to display phase delay and clock tree 6 25 Clock phase delay variation is shown in different colors 6 26 Nano router settings seen 6 27 Adding fillers in design a Selected fillers for placement b Filler select window a wa e se dae sen e ROG m RE 6 28 Complete routed design after nano router 6 29 Complete design with place amp routed and empty spaces filled 6 30 Settings for geometry verification LL 6 31 Verifying connectivity of design ss so ses ss ss ooo 6 32 Export design to a gds file 6 33 Import netlist design in Cadence for simulations List of Tables 5 1 Comparison of SNR for different quantization bits in first order signal feedback SDM 2 oo n 11 5 2 Comparison of SNR for different quantization bits in first order error feedback SDM we ww wow kwi A ROME X n 5 3 Comparison of SNR for different quantization bits in second order signal feedback SDM L a 2 0 none 5 4 Comparison of SNR for different quantization bits in second order error feedback SDM ius ri ene ee bee PA 5 5 Area of design netlist rss e
26. setup the portion below the edge specification field in figure 6 3 shows the clock which is specified by the settings described above It depends on the designer if he wants to have a duty cycle of 50 or not It is also possible to set a variable duty cycle Timing constraints are the most important constraints of all as without timing constraints there will be problems of synchronization When the timing con straints are met the design compiler tries to optimize the area To set the area constraints select the top cell in logical hierarchy window and open area con straints window by Attributes gt Optimization Constraints gt Design Constraints In figure 6 4 set Max Area field to zero which means that the design compiler will try to use minimum area possible Equivalent commands to set timing and area constraints are create clock name clk period 0 5 waveform 0 0 25 clk set max area 0 6 3 5 Compiling Design After specifying all the design constraints now the Verilog design is translated to a gate level netlist Compilation phase translates the generic gates defined in elaboration phase in logic gates from standard cell libraries 68 6 SoC Encounter Manual Specify Clock Clock name ck Port name clk Remove clock r Clock creation Period 0 5 Add edge pair Falling Remove edge pair Invert wave form 0 00 0 25 0 50 Don t touch network Fix hold Cancel Apply
27. the impulse train Now substituting value of r t from equation 3 2 in equation 3 4 will result in sampled signal in time domain as X t x X t t nT 3 5 n 00 In time domain these signals are multiplied while in frequency domain these signals are convolved For frequency domain analysis the Fourier transform is used and the Fourier transform of equation 3 5 is IRENE UN 7 av 3 6 and the Fourier transform of the impulse train is 00 r jQ 3 5 Q nQ 3 7 n oo Substituting value from equation 3 7 to equation 3 6 will result in 22 3 Processing Model for SDM co X jO 7 xit 0 3 8 n co Equation 3 8 defines the Fourier transform of input signal and shows that the images are replicated at integer multiples of sampling frequency The Fourier transform of the input signal is shown in figure 3 4 X t xUQ t gt 0 OQ E Figure 3 4 Input signal in time domain and frequency domain The mathematical behavior defined in equation 3 8 can be demonstrated graphi cally by figure 3 5 Observe input spectrum is repeating itself at integer multiples of sampling frequency Xo N Jo VON F 3 N 200 NEN AA My 0 o 2 2 0 0 210 0 2020 0 N N N Figure 3 5 Frequency spectrum of sampled data For sampling a signal there are some limitations and constraints If these limita tions and constraints are not satisfied then the r
28. the inner rail and the second will be the outer rail Like if gnd and vdd are mentioned then the inner rail will be gnd and outer will be vdd In Ring Configuration area Layer field is used to define the layers used for all four sides and which metal layers will be used default options are good Width filed defines the width of the power rails and the Spacing field defines distance between the power rails If the Offset is set to Centre in Channel this will place the power rails between the core and IO boundary Click on advanced tab which will show up a window similar to figure 6 14a Here one can select sides on which the rails will be placed If we want the rails to be placed on each side then set the blocks according to figure 6 14a This may not be the best option to add rails in a design as this could cause the power issues for blocks placed in upper left or bottom left corner of the cores so the better option is to choose the extension on all sides of the core as shown in figure 6 14b This means that the power pins will be available on all sides of the core and all blocks will share equal power Click OK to generate the power rails according to the properties that were set 80 6 SoC Encounter Manual Add Rings Basic Advanced Via Generation Net s gnd vdd A Ring Type e Core ring s contouring e Around core boundary Along VO boundary Exclude selected
29. to verify successful placement of the design After successful verification of the design final step is to export the design in gds file and netlist v file This new netlist also contains the inverters and buffers added in timing optimization process The gds file can be used to import layout in cadence and both netlist files can be used to import design schematic in cadence 4 3 Design Libraries While working with Encounter the choice of libraries is one of the critical steps of designing Several libraries are available in Encounter kit with different speci fications of power voltage speed and leakage some of the available libraries are GPHVT GPLVT GPSVT LPHVT LPLVT and LPSVT GP libraries are the fastest libraries while the LVT libraries provide good perfor mance at high data rates There is a trade off between speed and power leakage With increase in the speed the leakage will also be increased So the HVT options typically give best performance in terms of speed and power leakage Pullini A 2007 The modulators presented in this thesis are intended to be used with high speed applications Leakage is desired to be reduced for high speed applications so the libraries used in this thesis were from CORE65GPHVT library GP are the fastest and HVT will provide the best performance as compared with speed 32 4 Digital Modeling of SDM 4 4 Top Model of Sigma Delta Modulator The digital DACs need to operate at hi
30. value Unit Max area o Max dynamic power Max leakage power ae m Max total power m r Design rules Max fanout Max transition Cancel Apply Ak Figure 6 4 Setting design constraints for design 6 3 7 Verilog Netlist File In this step Verilog netlist file of mapped design is generated which contains the standard cells information This file can be used for post synthesis simulations and will also be the input of the SoC Encounter Tool To save a Verilog netlist file just click File Save As and save the file using v file extension Alternatively we can also save the netlist file using a command write format Verilog hierarchy output netlist_file_name v 6 3 8 Timing and Design Constraints File The synthesized netlist will be used for place and route So we have to gener ate SDF timing file and design constraints file for place and route tool SoC En counter These files can be generate by using write_sdf version 2 1 file_name sdf write_sdc nosplit file_name sdc A good practice is to save the design after each step which will be helpful in reloading the design at any desired stage The design can be saved by File Save As and saving the design as ddc file The equivalent command to save the design is write hierarchy format ddc output outputfile_name ddc 70 6 SoC Encounter Manual r Mapping options __ Comp
31. 012 x End VERIFY CONNECTIVITY Verification Complete 0 Viols 0 Wrngs CPU Time 0 00 00 0 MEM 1 000M 96 6 SoC Encounter Manual If one wants to have a detailed look into the warnings and errors then open viola tion browser from Tools Violation Browser In violation browser all violations are categorized according to the nature of the violation Violation browser can be used to point a specific violation in layout window Equivalent command to verify the geometry is verifyConnectivity type all report name_of_geometry_violation_report rpt Verify Connectivity This step makes sure that all the modules blocks are connected properly Open figure 6 31 by selecting Verify Verify Connectivity in main menu Select the default options which are selected in figure 6 31 Verify Connectivity Net Type All Regular Only Special Only Nets All Selected Named Check x Open x UnConnected Pin Unrouted Net Connectivity Loop w DanglingWire Antenna w Weakly Connected Pin Geometry Loop Geometry Connectivity _ Keep Previous Results TSV Die Abstract File Verify Connectivity Report cSdm_BitSplitter conn rpt el Report Limits Error 1000 Warning 50 Set Multiple CPU Apply Cancel Help Figure 6 31 Verifying connectivity of design A summary of violations will be displayed in console Equivalent command of connectivity verification is verifyConnectivity ty
32. 3 8 shows x n which is achieved through uniform sampling in which the sampling frequency is fs 1 T i e x n x nT From x n a new sequence is obtained in which the sampling frequency is L times higher than the uniform sampling i e Y m x mT L The sampling period for the signal x n was T and now after interpolation the sampling period for w m is reduced to T1 T L Lowenborg 2006 For frequency domain analysis the Fourier transform of w m is given by W el T m w m e OT 3 9 m co the Fourier transform of W n in terms of x n is represented as co W ei a x n e Jen 3 10 n oo and the Fourier transform of signal x n is given by co X eloT y x n e Jorn 3 11 n co Figure 3 9 from Lowenborg 2006 shows graphical steps involved in interpola tion initially the signal is interpolated by a factor of L and then digitally filtered 24 3 Processing Model for SDM x n x nT w m LL 0 T 2T 3T 4T ST a b Y m x Ty Jim m c Figure 3 8 Steps involved in interpolation with the help of low pass filter Up sampling is performed to increase the sampling frequency The process also increases signal to noise ratio SNR as defined as SNR 6 02 NOB 1 76 10 log OSR 3 12 where in equation 3 12 the term NOB is the number of quantization bits also defined as word length Oversampling ratio OSR can be defined as
33. 6 Parameter set up to add power stripes through the core allowJogging 1 Again the design should be saved when the power planning is done so save the design by saveDesign design_to_save_power enc 6 4 4 Placing Standard Cells In this step standard cells will be placed which are defined in Verilog netlist Click Place Place Standard Cells to open the window of figure 6 19 Click on Mode and check the timing driven placement in window that appears Click Ok to place the standard cells and change current view to physical view which will show the blocks placed in rows While placing standard cells Encounter also runs trial route So if one wants to see only the blocks placed as shown in figure 6 20 delete trial route using command deleteTrialRoute 84 6 SoC Encounter Manual ez esi Figure 6 17 Design including power stripes within core The design placement can be verified by Place Check Placement This gener ates a report indicating the number of cells placed number of unplaced cells and the density of the cells Equivalent commands to place standard cells are setPlaceMode timingDriven true placeDesign prePlaceOpt setDrawView place checkPlace 6 4 5 Timing Optimization pre CTS Timing Optimization To opt
34. 64 input word length 16 and 2 bit quan tizationi zelum e SERI peii tuper AA a A 58 6 1 Set up design parameters for analysis 65 6 2 Symbol of top level design schematic for sigma delta modulator 67 6 3 Parameters set up for clock specification 68 6 4 Setting design constraints for design 69 6 5 Compile window parameters o o nA 70 6 6 Gate level schematic of 4 bit sigma delta modulator 71 6 7 Data model of syn2tlf a 73 6 8 Design import window with parameters to set up to import design in Encounter eee da ES o S Sod kdo VL aed i 74 6 9 Design imported in Encounter with rows of the core area 75 6 10 Set up parameters for floor planning 1 14 1411 77 6 11 Complete floor planned design including IO ports in place 78 6 12 Global net connection window es 6 13 Set up parameters to place power rings around the core 6 14 Selecting power rails around the core a Worst selection b Best Selection is 2e Bit peg ZA Macs BOS ANA ne 6 15 Design with added rails around the core 1 1 6 16 Parameter set up to add power stripes through the core 6 17 Design including power stripes within core 6 18 SRoute window to route power nets 1 14411111 6 19 Placing standard cells in design 22222 nennen 6 20 Core area with standard cells
35. CORE65GPHVT 5 1 libs In libs folder there is a map file use this map file in Map File field to map the design to the desired technology library Clicking OK will generate the gds file Design can be exported to gds file using the following commands streamOut output eds file name gds mapFile path and file name if not in current directory map libName Library name in which design is imported in cadence units 1000 mode ALL The parameters used in streamout command area are Output gds file output gds file name gds Output map file path and file name if not in current directory map Library Name Library name in which design is imported in cadence 98 6 SoC Encounter Manual Units 1000 100 200 1000 2000 10000 20000 Mode ALL ALL FILLONLY NOFILL NOINSTANCES Export Placed and Routed Net list During CTS process some buffers and inverters were added in design to overcome the phase delay Fillers were also added to fill the empty spaces in design This means that the new design has some extra design cells than the one which was imported initially To save the place and routed netlist file including all fillers and clock buffers and inverters select File Save Netlist and uncheck the Include Leaf Cell Definition Click OK to save the netlist Equivalent command to run from console is saveNetlist excludeLeafCell name_of_palce_and_routed_netlist v Exp
36. D digRfDacSdm_fbadder_1bit v rtl digRfDacsdm_Integrator_LPD digRfDacSsdm_SDM_stageN v rtl digRfDacsdm_Integrator_LPD digRfDacsdm_SDM_1bit_wfb v Delete rtl digRfDacsdm_Integrator_LPD digRfDacsdm_SO_SDM v rtl digRfDacSdm_Integrator_LPD digRfDacSdm_BitSplitter v PELE Format Auto Work library WORK y Create new library if it does not exist OK Cancel A Figure 6 1 Set up design parameters for analysis Any warnings and errors will be displayed in console or log view The warning or error messages contain detailed description of errors or warnings Before con tinuing all the errors should be removed otherwise no design will be loaded in design compiler It is better to remove all the warnings in design also as compiler may create some extra hardware or latches which are not desirable Analysis can be initialized from console terminal using command analyze library WORK format Verilog VHDL Mention all Verilog files in top down order separated by a space 66 6 SoC Encounter Manual Table 6 1 Registers indicated by elaborate process Register Name Type Width Bus MB AR AS SR SS ST int_delay_in_reg Flip Flop 4 Y N N N N N N out_reg Flip Flop 1 N N N N N N N int_delayout_reg Flip Flop 3 Y N N N N N N int_delayout_reg Flip Flop 4 Y N N N N N N 6 3 2 Elaborate Design When the design is analyzed a pre synthesis of the analyzed design is required which is performed in elaboration phase Pre synt
37. Figure 6 30 shows the options available to verify Here different options are available like minimum width of metals minimum spacing between metals short circuits minimum cut and via enclosure etc Select the options to be verified and click OK In figure 6 30 the most common options are selected which are verified here Warnings and errors will be marked by white box in design Console results in esee Start VERIFY CONNECTIVITY Fre 6 4 Cadence Encounter Manual 95 ui Verify Geometry le Basic Advanced Verification Area e Entire area u Specify Dray Miew Ares 1 0 1 J Check Minimum Width x Minimum Spacing x Minimum Area x Same Net Spacing x Short Geometry Antenna x Cell Overlap Off Routing Grid Insufficient Metal Overlap w Off Manufacturing Grid x MinHole Y Implant Check x Minimum Cut Y MinStep Y Via Enclosure Allow w Pin In Blockage w Same Cell Violations Different Cell Violations Overlap of Pad Filler Cells Overlap of Routing Blockages And Pins Overlap of Routing Blockage And Cell Blockage Apply Reset Cancel Help Figure 6 30 Settings for geometry verification Start Time Thu Apr 26 10 55 32 2012 Design Name digRfDacSdm_BitSplitter Database Units 1000 Design Boundary 0 0000 0 0000 42 8500 38 6000 Error Limit 1000 Warning Limit 50 Check all nets Time Elapsed 0 00 00 0 Begin Summary Found no problems or warnings End Summary End Time Thu Apr 26 10 55 32 2
38. Input ui postRoute res 1 set rda Input ui shr scale 1 0 set rda Input ui rel c thresh 0 03 set rda Input ui tot c thresh 5 0 set rda Input ui cpl c thresh 3 0 set rda Input ui time unit none set rda Input ui cap unit set rda Input ui oa reflib set rda Input ui oa abstractname set rda Input ui in tran delay 0 1ps set rda Input ui oa layoutname 110 B Configuration File nn set rda Input ui sigstormlib un set rda_Input ui_cdb_file min mm set rda_Input ui_cdb_file max set rda Input ui cdb file m set rda Input ui xtwf file m set rda Input ui qxtech file m set rda Input ui qxlayermap file mm set rda_Input ui_qxlib_file set rda_Input ui_pwrnet vdd set rda_Input ui_gndnet gnd set rda_Input flip_first 1 set rda_Input double_back 1 set rda_Input assign_buffer 1 set rda_Input use_io_row_flow 0 un set rda Input ui qxconf file set rda_Input ui_pg_connections set rda_Input ui_gen_footprint 0 Clock Tree Synthesis File Generated by Cadence Encounter 10 10 p003_1 OS Linux x86_64 Host ID sob 00 edu isy liu se Generated on Thu Apr 26 10 43 43 2012 Design digRfDacSdm_BitSplitter Command clockDesign genSpecOnly digRfDacSdm ctstch Encounter R Clock Synthesis Technology File Format MacroModel Macro
39. Institutionen f r systemteknik Department of Electrical Engineering Examensarbete Design of an all digital reconfigurable sigma delta modulator Examensarbete utf rt i Elektroniksystem vid Tekniska h gskolan vid Link pings universitet av Sohaib A Qazi and S Asmat Ali Shah LiTH ISY EX 12 4557 SE Link ping 2012 Py Gs sa Link pings universitet TEKNISKA H GSKOLAN Department of Electrical Engineering Link pings tekniska h gskola Link pings universitet Link pings universitet SE 581 83 Link ping Sweden 581 83 Link ping Design of an all digital reconfigurable sigma delta modulator Examensarbete utf rt i Elektroniksystem vid Tekniska h gskolan vid Link pings universitet av Sohaib A Qazi and S Asmat Ali Shah LiTH ISY EX 12 4557 SE Handledare Nadeem Afzal ISY Link pings universitet Examinator Dr J Jacob Wikner ISY Link pings universitet Link ping 17 maj 2012 i QUOS UN Avdelning Institution Datum S J MN Division Department Date 3 a gt e fim E Avdelningen f r Elektroniksystem IN 3 Department of Electrical Engineering 2012 05 17 Pe SE 581 83 Link ping Sica H se A HOG Sprak Rapporttyp ISBN Language Report category E O Svenska Swedish O Licentiatavhandling ISRN m Engelska English m Examensarbete LiTH ISY EX 12 4557 SE O C uppsats Serietitel och serienummer ISSN O D uppsats Title of series numbering Di O vrig rapport
40. MATLAB signal feedback modulator is the appropriate choice to model it using Verilog HDL language for the hardware implementation The modulators were designed in 65 nm technology and re configurability of the modulator is designed using MODELSIM Designing a chip through SoC Encounter is less time consuming as compared to manual layout design methods so saving time saves money through this aspect designed chip would be cost efficient One of the other advantages of the re configurable sigma delta modulator is that by changing input word length of the sigma delta modulator will automatically adjust itself through different switches to meet the required specifications The disadvantage of using SoC Encounter is the chip area which is increased when an automatic layout is generated In the future one can work on power planning of the chip The addition of pipeline adders are suggested when the word length is increased 103 Cadence Design Systems Inc IO Assignment File Cadence R Encounter TM IO Assignments Version 2 Offset 9 75 Pin out 0 E 2 0 180 0 180 Offset 14 5 Pin out 1 E 20 180 0 180 Offset 19 25 Pin out 2 E 2 0 180 0 180 Offset 24 Pin out 3 E 2 0 180 0 180 Offset 28 75 Pin out 4 E 2 0 180 0 180 Offset 7 85 Pin in 0 W 2 0 180 0 180 Offset 10 7 Pin in 1 W 20 180 0 180 105 106 A IO Assignment File Offset 13 55 Pin in 2 W 2 0 180 0 180 Offset 16 4 Pin in 3
41. MHz where 128 MHz is the sampling frequency 5 3 Interpolation According to the design flow described in section 3 3 baseband signal is fed to the interpolation block which over samples the signal by a factor of L The in terpolation factor is varied from 2 to 16 as multiples of 2 In this case initial oversampling ratio OSR is set to 4 before interpolation 47 48 5 Simulation Results Analog Input Signal of Frequency 8000000 T T T Amplitude V I L L L i 520 530 540 550 560 570 Time t Figure 5 1 Baseband signal of frequency 8 MHz Frequency Spectrum of Analog Input Signal T T T T 100 E 150r a Magnitude in dB 200 4 250 4 300 4 L i L 1 6 8 10 12 14 frequency in Hz x10 350 z o N pul Figure 5 2 Frequency spectrum of input baseband signal with sampling frequency at 128 MHz 5 4 Filtering 49 The OSR at output of the interpolator should be equal to 64 To achieve this OSR i e 64 signal should be interpolated by a factor of 16 L 16 This OSR along with the interpolation factor of 16 will give the sampling frequency of 2 04 GHz for the modulator By varying the interpolation factor the sampling frequency is increased from 128 MHz to 2 048 GHz corresponding to the interpolation factor of 16 Figure 5 3 shows interpolated signal by a factor of 16 where one can see that orig inal signal base band will repeat itself at
42. Model pin pin maxRiseDelay lt minRiseDelay gt maxFallDelay lt minFallDelay gt lt inputCap gt Special Route Type RouteTypeName specialRoute TopPreferredLayer 4 BottomPreferredLayer 3 PreferredExtraSpace 1 End Regular Route Type RouteTypeName regularRoute TopPreferredLayer 4 BottomPreferredLayer 3 PreferredExtraSpace 1 111 112 C Clock Tree Synthesis File End Clock Group CIkGroup lt clockName gt Clock Root clk Clock Name clk Clock Period 0 5ns AutoCTSRootPin clk Period 0 5ns MaxDelay 0 01ns sdc driven default MinDelay Ons sdc driven default MaxSkew 20ps sdc driven default SinkMaxTran 200ps sdc driven default BufMax Tran 200ps sdc driven default Buffer HS65_GH_BFX106 HS65_GH_BFX13 HS65_GH_BFX142 HS65_GH_BFX18 HS65_GH_BFX2 HS65_GH_BFX213 HS65_GH_BFX22 HS65_GH_BFX27 HS65_GH_BFX284 HS65_GH_BFX31 HS65_GH_BFX35 HS65_GH_BFX4 HS65_GH_BFX40 HS65_GH_BFX44 HS65_GH_BFX49 HS65_GH_BFX53 HS65_GH_BFX62 HS65_GH_BFX7 HS65_GH_BFX71 HS65_GH_BFX9 HS65_GH_IVX106 HS65_GH_IVX13 HS65_GH_IVX142 NoGating NO DetailReport YES SetDPinAsSync NO SetloPinAsSync NO SetASyncSRPinAsSync NO SetTriStEnPinAsSync NO SetBBoxPinAsSync NO RouteClkNet YES PostOpt YES OptAddBuffer YES Route Type specialRoute LeafRouteType regularRoute END Bibliography Wikner J J Afzal N Study of modified noise shaper architectures for oversam pled sigma delta dacs NORCHIP 2010
43. ORE65GPHVT Select the following libraries from directory sw cadence libraries cmos065RF_534_IC615 010 CORE65GPHVT_5 1 libs Select the libraries as Link Library CORE65GPHVT_bc_1 02V_125C db Target Library CORE65GPHVT_bc_1 02V_125C db Symbol Library CORE65GPHVT sdb 6 3 Synthesis and Netlist Design Compiler 65 6 3 1 Analyze Design Every RTL code is not necessarily synthesizable even if it has passed the behav ioral simulations This could happen because of using statements that do not make any sense for synthesis or if some functions are used which are not synthe sizable So the better thing is to write a synthesizable code than using functions First task of synthesis is checking syntax of code Analysis phase compiles and checks whether the Verilog VHDL designs are synthesizable or not Designs must be analyzed in ascending order top design must be analyzed last Up down buttons can be used to arrange the designs in bottom up order Use Figure 6 1 as a reference where the top most design is at the bottom i e di gRfDacSdm_BitSpliter v When the designs are loaded press OK to analyze the modules this will also store design units in WORK directory L4 Analyze Designs x File names in analysis order rtl digRfDacsdm_Integrator_LPD digRfDacSdm_integrator_3bit v rtl digRfDacsdm_Integrator_LPD digRfDacSdm_integrator_2bit v rtl digRfDacsdm_Integrator_LPD digRfDacSdm_integrator_1bit v rtl digRfDacsdm_Integrator_LP
44. RC Mark Fixed HSI ILI Select H565_GH_FILLERPFP1 Li Fil Area Draw FILLERPFOP8 Apply Mode Cancel a CFILLERPFOPB4 Help Figure 6 27 Adding fillers in design a Selected fillers for placement b Filler select window cell first and select the smallest filler cell at the end Click OK to return to Add Filler window and again click OK to add fillers in design 6 4 Cadence Encounter Manual 93 SE G66 6 NN WD LNY Figure 6 28 Complete routed design after nano router 94 6 SoC Encounter Manual Figure 6 29 Complete design with place amp routed and empty spaces filled One can see that all the empty spaces in figure 6 29 will be filled with filler cells Equivalent commands to add fillers using Encounter s console are addFiller cell All filler cells that will be added will be listed here separated by a space prefix FILLER 6 4 7 Checking Design At this point the design is ready to be exported to a gds file but before the design is exported a verification of design should be performed There are several ways in which the design can be verified Verify Geometry In this step geometry of the design is verified
45. SoC Encounter Manual je Design Import alas Basic Advanced Netlist Verilog Files digRfDac5dm_BitSplitter_netlist v PS Top Cell Auto Assign By User digRfDacSdm_Bitsplitter v OA Technology Physical Libraries LEF Files 35LP_SF_BASIC_50A_ST_7M4X0Y2Z_soc lef _ OA Reference Libraries OA Abstract View Names OA Layout View Names Floorplan 10 Assignment File digRfbacSdm_Top_map io e Analysis Configuration MMMC View Definition File e Create Analysis Configuration Save _ Load Cancel Hel Figure 6 8 Design import window with parameters to set up to import de sign in Encounter Save the configuration file by clicking save button and choosing a suitable name Saving configuration file will save the time to go through above process all the time In future whenever it is required to import the same design just open the de sign import window and load the saved configuration by clicking Load button An example configuration file can be seen in appendix B You may have observed in this process that the design constraints SDC file and timing library format TLF file is not loaded because Encounter s version 10 0 does not have the option of loading the timing information files To load the tim ing files edit the configuration file Open configuration file in any available text editor Locate the property set rda Input ui timelib and write the tlf file in double quote
46. W 2 0 180 0 180 Offset 19 25 Pin in 4 W 2 0 180 0 180 Offset 22 1 Pin in 5 W 2 0 180 0 180 Offset 24 95 Pin in 6 W 2 0 180 0 180 Offset 27 8 Pin in 7 W 20 180 0 180 Offset 15 Pin reset N1 0 180 0 180 Offset 25 Pin clkN 1 0 180 0 180 Configuration File Generated by Cadence Encounter 10 10 p003_1 OS Linux x86_64 Host ID sob 00 edu isy liu se Generated on Mon Apr 16 11 51 38 2012 Design global rda_Input set cwd path_of_current_working_directory set rda_Input import_mode treatUndefinedCellAsBbox 0 keepEmptyModule 1 set rda_Input ui_netlist digRfDacSdm_Integrator_netlist_GPHVT v set rda_Input ui_netlisttype Verilog m set rda Input ui rtllist m set rda Input ui ilmdir t set rda Input ui ilmlist set rda Input ui ilmspef set rda Input ui fmdir set rda Input ui settop 0 set rda Input ui topcell mm set rda_Input ui_celllib 107 108 B Configuration File nn set rda_Input ui_iolib mm set rda_Input ui_areaiolib set rda_Input ui_blklib mm set rda_Input ui_kboxlib nn set rda_Input ui_gds_file set rda_Input ui_oa_oa2lefversion mm set rda_Input ui_view_definition_file set rda_Input ui_timelib max m set rda Input ui timelib min set rda Input ui timelib bin CORE65GPHVT bc 110V 125C tlf un set rda_Input ui_smodDef nn set rda Input ui smodData set rda Input u
47. Word length 16 120 Simulated Theoretical 115 110 105 SNR dB 100 95 90 0 10 20 30 40 50 60 70 Over Sampling Ratio OSR Figure 5 7 Comparison of signal to noise ratio SNR and over sampling ratio 52 5 Simulation Results Comparison of Signal to Noise Ratio and Input Word Length T T T T T Simulated Theoratica 400 Signal to Noise Ratio dB 0 I l I Input Word Length NOB Figure 5 8 Comparison of signal to noise ratio SNR and word length NOB 5 6 1 First Order Signal Feedback Model Initially a first order signal feedback topology is modeled for which the quanti zation bits Q is varied starting from 1 Increasing the Q factor increases the SNR and SNDR at the output because the Q factor will describe the number of bits which represent the output data By increasing the value of Q to 2 higher SNR can be achieved as shown in figure 5 9 where noise shaping is more refined in order to get better SNR Table 5 1 shows simulated and theoretical values of SNR and SNDR for different values of Q First Order Signal Feed Back OSR 64 Input Word Length 16 Q 2 T T T T 100 M m 2 2 8 5 E 8 Magnitude in dB o 20 40 iie epica EUNT NENNEN je Aa jj eel T 10 10 10 10 10 10 Frequency in Hz Figure 5 9 Spectrum of first order signal feedback sigma delt
48. _name_to_save_pre_CTS_report Clock Tree Synthesis When the tool places the standard cells it does not take into account the clock route So the delay in clock phase for different cells is not constant which may result in a faulty chip So we need to perform clock tree synthesis Clock tree synthesis needs a tree specification file which contains information Table 6 2 Summary of optimized design after pre CTS Setup mode all reg2reg in2reg WNS ns 0 093 0 093 0 106 TNS ns 0 000 0 000 0 000 Violating Paths 0 0 0 All Paths 16 12 16 Density 72 339906 Routing Overflow 0 00 and 0 00 V 86 6 SoC Encounter Manual Figure 6 20 Core area with standard cells placed about the tree synthesis If you don t have tree specification file then use En counter to create a sample specification file This sample file can be edited later accordingly for newer design requirements A sample tree specification file is listed in appendix C Click Clock Synthesize Clock Tree in main menu of Encounter window To generate new tree specification file click on Gen Spec in basic tab of fig ure 6 22 This will open a window which has an option of selecting the clock buffers and inverters which will be placed during clock tree synthesis Select all available clock buffers and inverter from C
49. a modulator with OSR 64 word length 16 and 2 bit quantization 5 6 Sigma Delta Modulators 53 Table 5 1 Comparison of SNR for different quantization bits in first order signal feedback SDM S No First Order Signal Feedback Model Q 1 Q 2 1 Theoretical SNR 56 79 62 81 2 Simulated SNR 52 32 55 95 3 SNDR 49 19 52 12 Table 5 1 concludes that increasing Q bits will increase the SNR and SNDR at the output Increasing one bit will increase theoretical SNR by a factor of 6 dB whereas the same increase in bits for simulated result reflects the increase of 3 dB 5 6 2 First Order Error Feedback Model Secondly an error feedback model is used instead of signal feedback and quan tization level is varied as in the previous case for which the quantization bits Q are 1 and 2 When the quantization bits Q are 2 frequency response is shown in figure 5 10 Increasing the Q factor increases the SNR and SNDR at the output Table 5 2 shows the simulated and theoretical values of the SNR and SNDR for different values of Q First Order Error Feed Back OSR 64 Input Word Length 16 Q 2 T 100 T T T sl ab LJ Lady 0 Magnitude in dB ai A DERM i pepa pena i i rea 10 10 10 10 Frequency In Hz Figure 5 10 Spectrum of first order error feedback sigma delta modulator with OSR 64 word length 16 and 2 bit quantization As far as the comparison of first order signal feedb
50. able Digital Sigma Delta Modulator 37 b Figure 4 9 Splitting 3 bit integrator in two stages one stage is 2 bit wide and other is 1 bit a Non controlled splitting b Controlled splitting This stage consists of two integrators shown in figure 4 10 These two integrators are single bit and are already explained in section 4 5 3 Combining all the blocks and sub modules that are explained here will give an N bit reconfigurable sigma delta modulator which is shown in figure 4 11 This module has all the input and output ports including control signals Figure 4 12 explains working of an N bit reconfigurable sigma delta modulator Input word is split into 1 bit wise signals which are fed to each stage of SDM The modulator is configured using switches connected between each stage and are controlled by a control signal Notice that one switch is required for each stage even for the last stage because if the last stage is not used then the carry in of the last stage should be disconnected from rest of the circuit 38 4 Digital Modeling of SDM Cino Cin1 Figure 4 10 Structure of stageN used for extension of stage0 for high order SDM in N ctrl N 1 co 1 Reconfigurable out Gil 1 Sigma Delta Modulator Figure 4 11 Top symbol of re configurable sigma delta modulator 4 5 5 Pipelining for Higher Number of Bits When the number of input bits i e word length increases the delay between SDM stages will also
51. ack and error feedback are con cerned the simulated SNR and SNDR are approximately same when the quanti zation bits are 1 and 2 Obviously theoretical values will be same for both the cases Next we employ the second order sigma delta modulators with error and signal feedback loops 54 5 Simulation Results Table 5 2 Comparison of SNR for different quantization bits in first order error feedback SDM S No First Order Error Feedback Model Q 1 Q 2 1 Theoretical SNR 56 79 62 81 2 Simulated SNR 52 34 55 98 3 SNDR 48 56 52 1 Second Order Signal Feed Back OSR 64 Input Word Length 16 Q 2 T T T T Magnitude in dB 1 T 1 1 i il iil 1 1 n L 1 1 di had L 40 7 10 10 10 10 10 Frequency in Hz Figure 5 11 Spectrum of second order signal feedback sigma delta modu lator with OSR 64 input word length 16 and 2 bit quantization 5 6 3 Second Order Signal Feedback Model In this section second order modulator models are implemented which have second order signal feedback and error feedback loops that has already been dis cussed in section 2 4 The digital signal is fed to a second order signal feedback model in which quantization bits Q are varied from 1 to 2 and corresponding frequency spectrum for 2 quantization bits is shown in figure 5 11 Table 5 3 shows simulated and theoretical values of the SNR and SNDR for different val ues of Q Table 5 3 Comparison of SNR for different quantizat
52. ates gnd Open the Add Stripes window as shown in figure 6 16 by Power Power Planning Add Stripe The better option is to add stripes one by one first vdd and then gnd So first select vdd in Nets field set width according to the design requirements The spacing is selected according to the width of the blocks defined in Encounter kit s lef file One can read the technology file to know the exact width of the blocks or can just measure the width of the rows Number of sets defines how many sets of vdd or vss will be added Stripes Boundary should be set to Core Ring as all the stripes will be con nected to the power rings around the core Similarly place of first and last stripe is also defined in field First Last Stripe One can measure the relative distance by the ruler to mention in this field Click OK to generate the power stripes similar to figure 6 17 Equivalent commands required to generate the stripes are addStripe max_same_layer_jog_length 6 number of sets 6 ybottom offset 0 25 ytop offset 0 25 spacing 2 merge stripes value 2 5 direction horizontal 82 6 SoC Encounter Manual Figure 6 15 Design with added rails around the core layer M1 width 0 5 nets vdd gnd Remember both stripes vdd and vss can be added at the sam
53. d asubtractOn cd Vue x Seed Oe dela WIE Wire ti Be Architecture of 1 bit subtractor module D Flip Flop used as delay element in integrator stage of sigma deltaumodulatorz prosa salite eee Ege Integrator corposo S SOY Re EA aa Internal structure of stage0 sigma delta modulator Splitting 3 bit integrator in two stages one stage is 2 bit wide and other is 1 bit a Non controlled splitting b Controlled splitting 4 11 Top symbol of re configurable sigma delta modulator 4 12 Architecture of reconfigurable sigma delta modulator 4 13 MODELSIM test bench een 4 14 Test methodology for re configurable SDM using MATLAB and Ca 4 15 MATLAB environment a Generate baseband signal b Post pro cessing after simulations 2 222 eee 10 11 12 12 13 14 15 20 20 21 22 22 23 23 24 25 30 32 33 34 35 35 36 36 37 38 38 39 40 41 LIST OF FIGURES xi 4 16 Interface between MATLAB and Cadence a Read in data from MATLAB b Write out data from Cadence 43 4 17 Test bench for real time simulations in Cadence 43 5 1 Baseband signal of frequency 8 MHZ 48 5 2 Frequency spectrum of input baseband signal with sampling fre quency at 128 MHZ Gy o gosc dde eee w eS ai uen A 48 5 3 The baseband signal upsampled by a factor of 16 49 5 4 Frequency response of anti aliasing filter with order of 974
54. d Netlist Design Compiler 64 63 1 AnalyzeDesign 2222 nommen 65 6 3 2 Elaborate Design LL 66 6 3 3 Linking Design 2s tears ga site RE reale 66 6 3 4 Design Constraints LL 66 6 3 5 Compiling Design Laura lees 67 6 3 6 Design Reports LL 68 6 3 7 Verilog Netlist File ic io e lios 69 6 3 8 Timing and Design Constraints File 69 6 4 Cadence Encounter Manual 70 6 41 Importing Design o 1 11 73 6 4 2 Floor Planning the Design i 144441111 76 6 4 3 Power Planning gt vr ed 77 6 4 4 Placing Standard Cells o ooo 83 6 4 5 Timing Optimization LL Learn 84 6 4 6 Finishing Design Lala oo 91 6 4 7 Checking Design e e 2 2 uo ue dy alle 94 6 4 8 Export Design LL 97 6 5 Import Design Netlist in Cadence 1 11441111 98 VII Conclusion and Future Work 7 Conclusion and Future Work 103 A IO Assignment File 105 B Configuration File 107 C Clock Tree Synthesis File 111 Bibliography 113 List of Figures 1 1 Spread noise over wide range of frequencies a Typical Nyquist conversion b SDM noise spread i 1412411111 3 1 2 Filtering the quantization noise in higher frequencies 4 LIST OF FIGURES 1 3 2 1 2 2 2 3 2 4 2 5 2 6 27 2 8 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 4 10 Structure of stageN
55. e time or one by one but the better option is to add them one after the other Routing Power Nets Now when all the power nets are setup then power structure has to be routed Click Route Special Route to open the SRoute window In figure 6 18 uncheck the Pad pins and Pad rings and click Ok to route the power struc ture Notice that here we have the option of limiting the routing layers It is also pos sible that the power routing is done using Encounter s console Equivalent com mands used for the power routing are sroute connect blockPin corePin floatingStripe blockPin useLef layerChangeRange M1 M4 nets gnd vdd 6 4 Cadence Encounter Manual 83 td Add Stripes CE Basic Advanced Via Generation Set Configuration Nets vdd gnd Layer MI Direction O vertical Horizontal Width 0 5 Spacing BIE Update Set Pattem u Set to set distance e Number of sets B Bumps u Over P G pins in laye p pin layer Max pin width Stripe Boundary e Core ring Pad ring er e Outer Design boundary w Create pir Each selected block domain fence All domains Specify rectangular area Specify rectilinear area First Last Stripe Start from e bottom top Relative from core or selected area Y from top 0 25 Y from bottom 0 25 Absolute locations Option Set Use option set Variables Apply Defaults Cancel Help Figure 6 1
56. econstruction of sampled signal is not possible One of the constraints is that the sampling frequency should be twice the highest frequency component of the input signal i e defined by the Nyquist criteria When the said condition is satisfied then resulted signal will look like as shown in figure 3 5 If this condition is not fulfilled then aliasing will occur and lower side band of the first spectrum will interfere with upper side band of the second spectrum lay ing near at integer multiples of sampling frequency and consequently the original information cannot be recovered as shown in figure 3 6 Interpolation consists of two steps first is up sampler in which continuous time signal sampled at a much higher rate than the Nyquist rate and second step is filtering Figure 3 7 shows the steps involved in interpolation Interpolation by a factor of L is performed by inserting L 1 zeros in between each pair of samples of the input signal Then a low pass filter is used to get the desired sample having pass band edge at pi L and filter will remove all mirrored frequency components of the signal Figure 3 8 presents the graphical 3 3 Interpolation 23 XGA A A 220 Q 0 Q 2 Q Figure 3 6 Concept of aliasing wim Filter Y m H z UpSample Figure 3 7 Interpolation concept of interpolation when a continuous time signal is interpolated by a factor of L equals to three Figure
57. ells List and add them to Selected Cells list by clicking add button In Output Specification file field write the name of the specification file Com pare settings with figure 6 23 and click OK to generate the specification file The control returns to the window of figure 6 22 verify that the file selected in file field is the same as the one just generated Click OK to run clock tree synthesis Equivalent commands to run CTS from console are createClockTreeSpec output cts_file_name cts bufferList add buffers and inverters separated by a space For example 6 4 Cadence Encounter Manual 87 Optimization Design Stage e Pre CT5 u Pos CTS Post Route Optimization Type x Setup Incremental e Design Rules Violations Max Cap x Max Tran Max Fanout Include SI 4 6IlOpfior Apply Mode Default Close Help Figure 6 21 Design optimization window with pre CTS post CTS and post Route options Synthesize Clock Tree Basic Advanced Clock Specification Files digRDacSdm ctstch Results Directory clock_report UD Apply Mode Load Spec Clear Spec Cancel Help Figure 6 22 Clock tree synthesis CTS window bufferList H565 LH CNBFY10 HS65_LH_CNBFY103 HS65_LH_CNBFY1 24 clockDesign specFile cts_file_name cts outDir path_ and_name_of_CTS_file_to_be_loaded When the CT synthesis is complete one would like to check what improvements CT synthesis have done to the de
58. epresented as Y z X z eg 1 z 2 26 2 4 Second Order Signal Feedback Model Figure 2 8 shows a second order signal feedback model in which two first order signal feedback models are cascaded In second order model two additional scal ing factors are involved i e two multipliers whose lengths can be varied from zero to one depending upon the requirements The transfer function for second order signal feedback model is given by Y z X 2 z E z 1 z y 2 27 The modulator for the second order apprehend that the signal transfer function is H z z and the noise transfer function is N z 1 z7 It is obvious from equation 2 27 that the noise suppression in case of the second order mod ulator is more in the lower frequency band and noise is amplified more outside the band of interest While comparing with first order noise power is pushed more outside the band of interest i e the signal band Figure 2 8 depicts two integrators used in the model where the transfer function of the first integrator is 1 1 z and the second integrator has the transfer function z 1 z Pervez M Aziz 1996 Figure 2 8 Second order signal feedback sigma delta modulator 16 2 Sigma Delta Modulators 2 5 Conclusion In this chapter different topologies of sigma delta modulators were discussed The discussion is based on a detailed analysis of various components within the sigma delta
59. f figure 4 16a This input data is fed to the sigma delta modulator The file reader also needs a clock of the same frequency as sampling frequency of the data as this clock also defines the data rate of the input signal The output of the sigma delta modulator is stored in a file using a file writer The file writer writes the data in text file and is read by MATLAB for post processing The file writer writes the data in binary form which should be kept in mind while reading the data in MATLAB Again the clock frequency of the file writer is also same as the sampling frequency of the input data 4 8 Testbench for Simulations 43 File Reader File Writer Interface Interface between between Matlab and Cadence and Cadence Matlab a b Figure 4 16 Interface between MATLAB and Cadence a Read in data from MATLAB b Write out data from Cadence 4 8 3 Cadence Environment In cadence real model of sigma delta modulator is simulated Carry signals de sign clock and the reset signals are generated in cadence The control signals generated in cadence enables the reconfigurability of the sigma delta modulator The control signal can select between 0 to 4 bits of sigma delta modulator to be tested Having control signals in place it is possible to use sigma delta modulator for 4 bit input or the modulator can be completely bypassed The input of the SDM comes from the interface part of the test bench a
60. for input signal figure 1 3a and a high pass filter for noise part as shown in figure 1 3b A detailed analysis of how the noise is pushed to higher frequencies is explained in chapter 2 Gain Gain gt gt Frequency Frequency a b Figure 1 3 Filtering technique used in modulator a High pass filter for baseband signal b Low pass filter for baseband signal Part II Sigma Delta Modulators Sigma Delta Modulators 2 1 Introduction Sigma delta modulators are considered to be at the front end of the data con verters Digitization is carried out in two steps i e sampling and quantization When a signal is digitized a quantization error is introduced Sigma delta modu lator moves the quantization noise to higher frequencies After the modulator a low pass filter can be used to extract the original signal This chapter will present a detailed discussion about the sigma delta modulators A generalized structure of this sigma delta modulator consists of a digital signal as an input an integrator a quantizer and a feedback loop as shown in figure 2 1 Input Output Quantizer Integrator Feedback Figure 2 1 Basic sigma delta modulator There are different topologies involved in sigma delta modulators like signal feedback and error feedback models Both topologies are discussed in detail in 9 10 2 Sigma Delta Modulators the following sections of this chapter 2 2 Signal Feedback S
61. gh frequencies For high speed operations it is critical to achieve high precision resolution and accuracy Resolution of the DACs depends on input word length of the DAC The complexity of a DAC greatly depends on number of current steering elements which will be used for the DAC Jui Yuan Yu 2006 The current steering elements are considered in this thesis as this thesis is a sub project of All Digital Current Steering DACs STUCK at Link ing University The number of current steering elements used in a DAC depends on input word length of the DAC Current steering elements are increased by power of 2 if number of bits are increased For a 8 bit word length DAC number of current steering elements will be 28 1 which are 255 D gt a o a Figure 4 2 Controlled re configurable sigma delta modulator SDM Digital DACs are hard to design with such a high number of elements because of the design complexity and area The model presented in this report reduces word length that will be the input of the current steering DACs In figure 4 2 a model is presented which will generate a weighted output with less number of bits Noli S 2009 The bit splitter shown in figure 4 2 is used to separate MSBs and LSBs Since this is a reconfigurable sigma delta modulator so the number of bits split will vary depending on the control signal The least significant bits can be varied from 0 to 4 which means tha
62. he second step is to band limit the signal using a digital low pass filter 3 3 1 Sampling Sampling is a process of converting a continuous time signal to a discrete time signal simply multiplying a continuous time signal to an impulse train will give sampled data The impulse train is defined mathematically as co Ar t a t nT 3 2 n 00 where delta function 6 t can be defined by the relation Fi rcg 3 3 0 elsewhere Impulse train in equation 3 2 is represented by delayed versions of delta func tion In the equation 3 2 n is integer value and T is the sampling period The process of sampling is shown in figure 3 3 A t Converting Impulse X n X nT X t to discrete time signal Figure 3 2 Process of sampling the signal Figure 3 2 demonstrates graphical model for sampling Figure 3 3 elaborates the graphical steps involved in sampling in order to achieve sampled data at the output 3 3 Interpolation 21 ul 4T 3T 2T T 0 T 2T 3T 4T Al X n X nT Z Converting Impulse to bu xP discrete time signal 0 T 2T 3T 4T 5T Figure 3 3 Graphical explanation of sampling process Figure 3 2 and figure 3 3 explains graphical steps involved in sampling For de tailed mathematical analysis sampled signal can be represented by Xs t X t r t 3 4 where X t is the sampled output X t is the continuous signal and r t is
63. hese power rails will be used for the power distribution along the core using power stripes The detailed discussion about the power plan ning is in chapter 6 Table 5 6 Chip core area Core Area Core Area including I O Height 29 um 39 um Width 32 um 42 um 5 8 Conclusion 59 5 7 2 Power Utilization The operating conditions of Encounter include 1 02 volt supply frequency of operation is 2 GHz and the temperature is 125 F The power utilization of the design is given in table 5 7 which is 219 1 mW The libraries used in this design are CORE65GPHVT for best speed and leakage performance Table 5 7 shows that the leakage power is minimized Charging and discharging of output capac itance causes the power loss which is known as switching power In the design presented here the switching power is also reduced that is around 31 of the total power Table 5 7 Power utilization Power W Percentage 96 Internal Power 0 2191 68 67 Switching Power 0 0999 31 33 Leakage Power 2 825 x 107 0 00088 Total Power 0 3191 5 8 Conclusion The comparison of different modulator topologies is made during this chapter The signal feedback models are more accurate than the error feedback models If the comparison is made with ascending order of the modulators then the second order modulators give better results than the first order modulator The digital model consumes 319 mW of power while the total re configurable s
64. hesis is to identify all the reg isters flip flops and gates that are necessary to be used with the design To run elaborate go to File Elaborate A window will pop up where library top design and parameters need to be spec ified Library will be set to default and the design field should select the top RTL design If generic VHDL design is used then its generic ports parameters will appear in parameters field By setting these parameters one can change the size of the design If Reanalyze out of date libraries field is checked all the design files which are modified after the analysis phase will be analyzed again The elaboration of design gives number of registers used in design that are dis played in console window In types column of table 6 1 only flip flops are mentioned no latches 6 3 3 Linking Design The design should be elaborated without any warnings of missing registers This means that any missing registers indicated by the design compiler should not be used If there are any registers then link the design to libraries according to the warnings displayed in console The design can be linked using File gt Link Design or through console using equivalent command set link_library link_library path_to_ db_library link After all the libraries db containing missing register definitions are linked the warnings should be removed If there are still warnings then modify the design or
65. i locvlib m set rda Input ui dpath set rda Input ui tech file set rda Input ui timingcon file full set rda Input ui timingcon file digRfDacSdm Top SDC sdc un set rda_Input ui_io_file digRfDacSdm_Integrator_map io set rda_Input ui_latency_file set rda Input ui scheduling file set rda Input ui buf footprint set rda Input ui delay footprint set rda Input ui inv footprint set rda Input ui leffile filel lef file2 lef file3 lef set rda Input ui cts cell footprint set rda Input ui cts cell list set rda Input ui core cntl aspect set rda Input ui aspect ratio 1 0 set rda Input ui core util 0 7 set rda Input ui core height set rda Input ui core width 109 set rda_Input ui_core_to_left 0 set rda_Input ui_core_to_right 0 set rda_Input ui_core_to_top 0 set rda_Input ui_core_to_bottom 0 set rda_Input ui_max_io_height 0 set rda_Input ui_row_height set rda_Input ui_isHorTrackHalfPitch 0 set rda_Input ui_isVerTrackHalfPitch 1 set rda_Input ui_ioOri RO set rda_Input ui_isOrigCenter 0 set rda_Input ui_isVerticalRow 0 set rda Input ui exc net set rda Input ui delay limit 1000 set rda Input ui net delay 1000 0ps set rda Input ui net load 0 5pf set rda Input ui captbl file set rda Input ui preRoute cap 1 set rda Input ui postRoute cap 1 set rda Input ui postRoute xcap 1 set rda Input ui preRoute res 1 set rda
66. igma Delta Modulators As depicted in figure 2 2 for signal feedback model output signal is fed back and subtracted from the input of the modulator The model for the signal feedback consists of an input signal X n eg defines the quantization bits and Y n is the output of the modulator Figure 2 2 First order sigma delta modulator The mathematical modeling of figure 2 2 is given by the following equations X ln X n Y n 2 1 X2 n Xi n Xo n 1 2 2 and Y n X n 1 eg 2 3 Taking the z transform of the equations 2 1 2 2 and 2 3 will give Xi z X z Y z 2 4 Xo z X1 2 X z z 2 5 and 2 2 Signal Feedback Sigma Delta Modulators 11 Y z X z z eQ 2 6 output respectively The output Y z of the model is calculated by solving the equations 2 4 2 5 and 2 6 in terms of X z and eg The output Y z is given by Y z Y z X 2 z eg 1 21 2 7 2 2 1 Accumulator An integrator shown in figure 2 3 consists of an adder and a delay element is a part of signal feedback model The adder accumulates delayed output with the next input of the sigma delta modulator X n X n Y n Figure 2 3 Integrator stage of sigma delta modulator The integrator can be described by the difference equations X n X n Y n 2 8 and Y n Xi n 1 2 9 Taking the z transform will result in Xi z X z Y z 2 10 and Y z Xi z z 2 11
67. igma delta modulator covers 563 um of area When the layout of the design is made using the SoC Encounter tool the area is increased because some area is occupied by the inverters and buffers which are added during timing optimization process Part VI SoC Encounter Manual SoC Encounter Manual 6 1 Introduction One aim of the thesis was to work on SoC Encounter to generate the layout This chapter presents a user manual for SoC Encounter which can be considered as one of the product of this thesis work This manual is only intended to be used in Institutionen f r Systemteknik ISY at Link ing University as the file paths mentioned in this manual are only intended for Link ping University s server 6 2 Behavioral Modeling MODELSIM This section presents a step by step guide to design a digital model using vsim MODELSIM Open MODELSIM using the command module load mentor modeltech1 0 0 vsim Create a new project by File New Project Make sure the project is created in a new directory If the directory is not present then create a new directory by mkdir digRfDacSdm_Top Better strategy is to work in a single directory so that one can keep track of all the designs So create a new project in the directory which is already created Modules and sub modules can be created using Verilog VHDL language Verilog 63 64 6 SoC Encounter Manual is used in this manual Before continuing to the synthesis of the de
68. ile options Iv Map design Top level Incremental mapping Exact map Ungroup Allow boundary conditior Map effort medium gt Scan Auto ungroup i y Area Area effort medium I Gate Cloc f 2 Power effort medium gt Delay r Design rule options Fix design rules and optimize mapping C Optimize mapping only C Fix design rules only C Fix hold time only Cancel Apply 4 Figure 6 5 Compile window parameters When it is desired to reload a saved design use File gt Read The equivalent command to read the design is read_file format ddc file_to_read ddc This entire process will generate the netlist file of the top module which is used for post synthesis simulations and place and route An SDF timing file and SDC file containing design constraints for place and route will also be the outcome of this process It also estimates the design s dynamic and static power consumption and required area for a design 6 4 Cadence Encounter Manual In this section all necessary steps are presented which are required to place and route the Verilog netlist using the place and route tool SoC Encounter from Cadence Design Systems Cadence SoC Encounter can be instantiated by using following commands setenv LM_LICENSE_FILE 1706 license isy liu se setenv DD_DONT_DO_OS_LOCKS set setenv PATH PATH sw cadence EDI101 tools bin sw cadence EDI101 bin xterm e encounter am
69. imize design for clock delays timing optimization is performed First step is to run pre CTS pre Clock Tree Synthesis Open the Optimization window by selecting Optimize Optimize Design and set the parameters as shown in figure 6 21 When pre CTS is completed Encounter s console gives a message similar to the one shown in table 6 2 6 4 Cadence Encounter Manual 85 Basic Advanced Via Generation Net s and vdd SRoute w Block Pins _ Pad Pins _ Pad Rings w Follow Pins Routing Control Layer Change Control Top Layer M Bottom Layer MI w Allow Jogging x Allow Layer Change Figure 6 18 SRoute window to route power nets e Run Full Placement Run Incremental Placement w Run Placement In Floorplan Mode Optimization Options x Include Pre Place Optimization Include In Place Optimization Number of Local CPU s 1 _Set Multiple CPU apply Mode Defaults Cancel Help Figure 6 19 Placing standard cells in design Slack of critical path in design is given by worst negative slack WNS If the value of the slack is negative then the timing constraints are not met and positive value means that the timing constraints are already met During pre CTS some standard cells may be replaced by newer ones to meet the timing constraints which may result in an increase or a decrease in density of the core Equivalent command to perform pre CTS is optDesign preCTS outDir file
70. implemented in SoC Encounter area of the chip is increased because the core utilization while designing is only 60 which is 556 8 um Remaining 40 area is used by buffers inverter and filler cells during clock tree synthesis The buffers and inverters are added to remove the clock phase delay between differ ent registers Power consumption of the chip is 319 mW Internal power of the modulators is 219 1 mW Switching power of output capacitances is 99 9 mW which is 31 of the total power consumed Main concern of the power loss is considered to be power leakage To reduce the leakage power and achieve high speed design CORE65GPHVT libraries are used Leakage power of the design is 2 825 uW which is 0 00088 of the total power iii Acknowledgments First of all all the praise and gratitude is for Allah SWT who gave us strength and courage to complete this thesis in time We would like to thank our supervisor Mr Nadeem Afzal who helped us through out our thesis work A special thanks to our examiner Dr J Jacob Wikner for his kind support throughout our thesis Mr J Jacob Wikner s several years of experience helped us to gain hands on experience on different tools The format of meetings was really very helpful to judge the progress of the thesis work We also thank our seniors for their kind support throughout this thesis We like to say thanks to our friends Muaz un Nabi Shehryar Khan Abdul Ma teen Malik Muhammad Suleman Khan a
71. ion bits in second order signal feedback SDM S No Second Order Signal Feedback Model Q 1 Q 2 1 Theoretical SNR 85 19 91 21 2 Simulated SNR 70 54 80 11 3 SNDR 69 51 78 69 5 6 Sigma Delta Modulators 55 Table 5 4 Comparison of SNR for different quantization bits in second order error feedback SDM S No Second Order Error Feedback Model Q 1 Q 2 1 Theoretical SNR 85 19 91 21 2 Simulated SNR 71 09 61 9 3 SNDR 69 92 60 67 The theoretical and simulated values of SNR and SNDR are presented in table 5 3 which depicts a relation of increasing Q bits will increase the SNR and SNDR at the modulator s output 5 6 4 Second Order Error Feedback Model Now we will present the results for a second order error feedback model by changing the quantization bit Q and the frequency spectrum for Q equals to 2 is shown in figure 5 12 Similarly theoretical and simulated values of SNR and SNDR are shown in table 5 4 100 Second Order Error Feed Back OSR 64 Input Word Length 16 Q 2 T Magnitude in dB ei i ig ini ier jesi pale i E 10 10 10 10 10 10 Frequency in Hz Figure 5 12 Spectrum of second order error feedback sigma delta modula tor with OSR 64 input word length 16 and 2 bit quantization The theoretical and simulated SNR and SNDR for second order error feedback model is given in table 5 4 for various quantization bits From these two tables Table 5 2 and Table 5 4
72. ion of the files that is prepared in previous section When all the specification files are ready then these files can be saved in a configuration file One can use this configuration file to load all the files using a single command through console The configuration file includes all the files created in section 6 2 and section 6 3 Select File gt Import Design which will open design import window as shown in figure 6 8 Fill out the design import form one by one First select the Verilog netlist file which contains the design to be placed and routed Click on browse button next to the LEF files field and select the required LEF files and remem ber to select the LEF files in order as mentioned in section 4 2 If the LEF files are loaded then there is no need of loading OA reference Libraries OA abstract View names and OA Layout view names In floorplan section select the IO as signment file which contains information about how the pins will be mapped in the design It is possible to load the IO assignment file after the floor planning step as it will be easy at that point to decide the placement of pins A sample IO file is shown in appendix A Now click the Advanced tab and select Power and write the power names Re member that power pin names should be the same as were defined in Encounter kit s technology file Otherwise Encounter will not be able to connect the global nets and route the power properly 74 6
73. lanning Routing Timing Standard Cell Design Optimization Placement Design Verification Export Design gds v Figure 4 1 Steps involved in designing layout using SoC Encounter 4 3 Design Libraries 31 file tlf which contains timing information of the standard cells available in current standard cells library provided by the foundry The last file used to im port design in Encounter is Library Export Format LEF file These files contain definitions of routing layers vias metal capacitances and design rules etc In the second step floor planning is performed While floor planning one should know available core size size of the chip and location of IO ports The floor plan defines outer boundaries of the chip being designed Power planning step defines how power will be distributed throughout the chip There are several ways to distribute power in chip which are explained in detail in section 6 4 3 of chapter 6 In the next step the standard cells are placed and optimized for timing Any differences in clock phase delays will be removed in this step by adding inverters and buffers in design The design is then routed and once again checked for the clock phase delays After routing and optimizing design for the timing constraints it is necessary to verify the design There are several verification options available like connectiv ity verification geometry verification and design rule check DRC verification
74. lef files are loaded in a specific order to load the correct technical information as mentioned in section 4 2 If the lef files are not in current working directory then complete path to the lef files should be provided All the LEF files are separated by a space Following command sets top design name 0 means that the tool will automati cally assign a name to the top design otherwise write the name of the top module used in RTL coding setUIVar rda_Input ui_settop 0 Following commands load the necessary files design netlist design constraints timing library format and IO assignment mentioned above setUIVar rda_Input ui_netlist netlist_file_name v 76 6 SoC Encounter Manual setUIVar rda_Input ui_timingcon_file design_constraints_file sdc setUIVar rda_Input ui_timelib timing_library_format_file tlf setUIVar rda_Input ui_io_file IO_assignment_file io After loading the configuration file or the parameters file which will load the design run the commitConfig to import the design Again the good practice is to save the design at each major step so that one can restore the design in future from a desired step The design can be saved by File Save Design or using this command in Encounter s console saveDesign design_name_to_save enc A naming convention for saving is better choice which will later be helpful in tracking stage of the design After import we can save the design with name inc
75. ltiple CPU Apply Attribute Mode Save Load Cancel Help gt Figure 6 26 Nano router settings Post Route CTS When the routing is complete CTS has to be performed for last time Post CTS can be initialized by selecting post Route from figure 6 21 or using the following command in Encounter s console optDesign postRoute outDir file name that will store post CTS report It should be observed that the worst negative slack WNS has been reduced which results in a better clock phase delay 6 4 6 Finishing Design Now we are moving to final steps of finishing the design Adding Fillers One may have noticed that there are some empty spaces in core area shown in fig ure 6 28 The empty spaces need to be filled using dummy cells called fillers To add fillers open add filler window of figure 6 27a by selecting Place Physi cal Cells gt Add Filler Click on select button next to the Cell Names s field in Add Filler window of figure 6 27a A new window will appear asking to select the filler cells that will be added to the design in this process Select the desired filler cells from Cell List and add them to Selected Cells List Remember to select the larger filler 92 6 SoC Encounter Manual Add Filler Select Filler Cells Cell Name s LLERPFP2 HS65_GH_FILLERPFP1 Select Selectable Cells List Sele Prefix FILLER ILLERPFPA F FI Power Domain No D
76. luding keyword import design_name_to_save_import enc The design can be restored by File Restore Design and selecting the appropriate design needs to be restored 6 4 2 Floor Planning the Design Floor plan defines the actual size of the core used number of rows that will be used by standard cells area of power rings and distance of core to IO boundaries Floor planning is also important as one can define the exact area of the chip used by design If the chip area is known then the floor planning is done according to the limitations of the available area Open the floor planning window as shown in figure 6 10 by Floorplan Specify Floorplan Normally if chip area is not provided then the core area is set by selecting Size in Design Dimensions Aspect ratio H W is ratio between height H and width W of the core area Aspect ratio 1 means that area of core will be a square and for a rectangle area choose 2 in aspect ratio field Core utilization defines the core area that will be used by the standard cell blocks defined in Verilog netlist Core utilization 1 means that hundred percent core will be used by the blocks That should not be the case as there should be some free space for power plan ning Timing optimization is the most critical part of the place and route which may also add inverters and buffers to remove the difference in clock delays be tween different blocks So the
77. modulators Part III Processing Model for SDM Processing Model for SDM 3 1 Introduction Testing and comparing results of the modulators are the important parts of this thesis Without verification of the modulators it is hard to choose between differ ent available modulator topologies This chapter presents a complete processing model for the modulators which includes baseband signal generation interpola tion of the signal digitizing up sampled signal and simulating the modulators 3 2 Signal Generation In signal generation block a continuous time coherent signal is generated and that signal can be characterized by X t Asin 2nft p 3 1 where A is the amplitude which defines voltage swing of sine function f is the frequency corresponding to the number of times a signal repeats itself in unit time and represents the phase of the signal There are some other parameters related to the signal one of them is bandwidth The bandwidth can also be de fined as range of frequencies an electronic signal uses over an electronic medium for its transmission 19 20 3 Processing Model for SDM Baseband UpSample Signal 1 Digitization Figure 3 1 Design flow for thesis 3 3 Interpolation Interpolation is a process of increasing the sampling frequency Interpolation consist of two steps first to increase input sampling rate by inserting zeros in between existing samples called as zero stuffing T
78. nd Muhammad Touqeer Pasha for proof reading our report At the end thanks to our family especially our parents with out their prayers and support this would not even happen Link ping May 2012 Sohaib A Qazi and S Asmat Ali Shah List of Figures List of Tables Notation I Background 1 Introduction II Sigma Delta Modulators 2 Sigma Delta Modulators 2 1 2 2 2 3 2 4 2 5 Introduction Signal Feedback Sigma Delta Modulators 2 2 1 Accumulator 2 2 2 Quantizer 2 2 3 Feedback Loop Error Feedback Sigma Delta Modulators Second Order Signal Feedback Model CONCLUSIONI uu 2 o ros oO PE III Processing Model for SDM 3 Processing Model for SDM 3 1 3 2 3 3 3 4 Introduction 4 4 sein Signal Generation o Interpolation llle 3 3 1 Sampling cdas a aa 3 3 2 Digitization Conclusion i pus fev co 75 wd vii Contents xii XV viii CONTENTS IV Digital Modelling of SDM 4 Digital Modeling of SDM 29 4 1 Introduction una kA S Rae used tete ALS a 29 4 2 SoC Encounter Design Flow eee 29 4 9 Design Libraries ci ua LEE FIRE WL Eee 31 4 4 Top Model of Sigma Delta Modulator 32 4 5 Design of Re Configurable Digital Sigma Delta Modulator 33 4 5 1 Subtractor Module 34 452 Delay Stage spora fa daw EA 34 4 5 3 Integrators for Stage
79. nd output of the sigma delta modulator is passed to other interface i e file writer Cadence Reconfigurable Sigma Delta Modulator Clock i Ctrl signals Reset Signal Figure 4 17 Test bench for real time simulations in Cadence 44 4 Digital Modeling of SDM 4 9 Conclusion This chapter presents the re configurable sigma delta modulator that can be used for variable input word lengths The SDM can be controlled by the input control signal A test methodology is also presented to check the working of sigma delta modulators for different environments like MODELSIM MATLAB and Cadence etc Part V Simulation Results Simulation Results 5 1 Introduction Up till now all the discussions were about selecting the right architecture for sigma delta modulators and to model that architecture using RTL language Test ing models for re configurable sigma delta modulators are presented This chap ter presents simulation results of different modulator topologies and hardware implementation results 5 2 Baseband Signal Generator A function generation block is described previously in section 3 2 which gen erates a coherent sine wave of 8 031250 MHz with fixed amplitude of 0 5 and bandwidth of 16 MHz as shown in figure 5 1 Frequency spectrum of the input coherent is shown in figure 5 2 In figure 5 2 the first harmonic is observed at 8 031250 MHz and the second har monic appears at 128 MHz 8 031250 MHz 119 968750
80. nverted and fed to the adder which is only 1 s com plement of the in signal In figure 4 5 the carry in signal Cj of the adder is set to 1 i e high voltage so that the inverted signal can be converted to 2 s complement The two s complement signal is added to input in to get the 2 bit subtracted output 4 5 2 Delay Stage The delay stage of an integrator is modeled as a D Flip Flop The reset signal is active high which means output of the flip flop will be set to zero when the reset signal is high otherwise will work normally A normal operation of a flip flop is to hold the input data for a single clock cycle and send to output when next positive clock edge is detected 4 5 3 Integrators for Stage0 The stage0 uses two types of integrators one is a 2 bit integrator and the other is a 3 bit integrator since 2 bit and 3 bit adders were used in integrators and are shown in figure 4 7a amp figure 4 7b The output of each integrator is accumulated with input at next clock cycle In integrator MSB is considered to be the carry bit and is not fed back to the adder 45 Design of Re Configurable Digital Sigma Delta Modulator 35 ini in Figure 4 5 Architecture of 1 bit subtractor module Delay Q rst Figure 4 6 D Flip Flop used as delay element in integrator stage of sigma delta modulator only the LSBs are accumulated at each clock cycle The output signal of first integrator i e 2 bit integrat
81. o 0 8 Core Utilization 3 Core to IO boundary 5 Core to IO boundary 3 Core to IO boundary 5 Core to IO boundary Core to Left Core to Top Core to Right Core to Bottom EBEN 6 4 3 Power Planning In power planning the power rails and stripes are added which connect the blocks to the power rails Although the Verilog netlist file does not contain the infor mation about supplies like vdd or gnd but the standard cells which will be added later have the power connections 78 6 SoC Encounter Manual I I I I i i i i i I I I I I I i amp i I i i i i i i i i i i i I I I I I I I I I I I i i i i i i I I I I ee ee be ee nn end me pm eb m een Figure 6 11 Complete floor planned design including IO ports in place Connecting Global Nets Standard cells include the power connections which are to be connected to global nets so the global nets need to be defined Open Global Net Connection win dow shown in figure 6 12 by selecting Power gt Connect Global Nets Click Pin in Connect section and write vdd in Pin Name field and also in To Global Net field then click Add to List To connect gnd to the global pins repeat the same Global pins need to be tied to some low high voltage Select Tie High in Connect section and write vdd in Pin Name
82. or and carry out of the integrator is input of the next stage 3 bit integrator The complete stage0 model is shown in figure 4 8 Stage0 SDM has a one bit output which is also final output of the overall sigma delta modulator The carry in signals for both integrator stages are set to low voltage for a sigma delta modulator for one bit input In case when input bits of SDM are more than one then the carry signals will be connected to the outputs of StageN When the required sigma delta modulator have more than one bit as input con sequently the delay between stages will increase Consider a case when the input is 2 bits wide in figure 4 8 then a 2 bit subtractor is used and the output of the subtractor will be 3 bits wide The two integrators required in this case will be 3 and 4 bits wide respectively If the modulator is designed using this strategy then it cannot be a reconfigurable SDM because the integrators cannot be controlled to operate with less number of bits So here we present a design where the SDM can be used for different input word lengths In figure 4 9a an equivalent integrator of figure 4 7b is shown The integrator of figure 4 9a is a combination of a 2 bit integrator and a single bit integrator The two bit integrator accumulates the MSBs combined with the carry signal from 36 4 Digital Modeling of SDM Figure 4 7 Internal structure of integrators a 2 bit integrator and b 3 bit integrator CinO Cin1
83. ort SDF Timing File To generate the SDF timing file open Timing Write SDF from main menu Uncheck the Ideal Clock field and click OK to generate the SDF timing file Following command can be used to generate SDF timing file from Encounter console write_sdf SDF_file_name sdf 6 5 Import Design Netlist in Cadence The design netlist can be imported to cadence environment to simulate the schematic level design Import the design using the following steps 1 Open cadence virtuoso window 2 Select File gt Import gt Netlist 3 Fill out the Verilog In window as shown in figure 6 33 4 Click OK to import schematic in cadence 6 5 Import Design Netlist in Cadence Import Options Global Net Options Schematic Generation Options File Filter Name digRfDacSdm BitSplitter v digRfDacSdm_BitSplitter ve digRfDacSdm BitSplitter SDC ddc 8 digRfDacSdm BitSplitter SDC sdc ddc digRfDacSdm BitSplitter SDC v digRfDacSdm BitSplitter netlist v site edu es EXJOBB digRf digRfDacSdm rtl digRfDacSdm_Top Target Library Name digRfDacSdm Browse Reference Libraries CORE6SGPHVT PRHS65 IO6SLPHVT SF 1V2 Verilog Files To Import j digRfDacSdm BitSplitter netlist v Add f Options Add v Options Add y Options Add Library Extension Library Pre Compilation Options Pre Compiled Verilog Library HDL View Name hdl Target Compile Library Name Browse Compile
84. p When Encounter is launched two different windows appear one is the GUI of Encounter and the other is Encounter s console The main focus of this tutorial is to use Encounter with GUI but equivalent commands will also be presented GUI is a better way to use Encounter for a new user because one can visualize 71 6 4 Cadence Encounter Manual 10 e jnpour ejjop euiSis 31q p JO JINEUWIDYDS AAI 9425 9 9 aounGrq Te Tee an e fou uj opp un Gia Zeno an 72 6 SoC Encounter Manual everything while designing For more advanced users scripts are recommended for more precise and accurate designs The main window has three different design views Floorplan Amoeba and Phys ical Floorplan view displays the core area power railings and the IO bound ary Global net connections are also displayed by the floorplan view Amoeba view displays standard cell boundaries which are placed inside the core area By amoeba view one can visualize the physical placement of all the modules in a design Physical view displays all the standard cell blocks and interconnection of the blocks When Encounter is invoked it creates two very useful files in current working directory One is encounter cmdx which stores all the executed commands If one is using GUI for designing all the e
85. pages 1 4 2010 Cited on page 24 Kennedy M P Bhansali P Hosseini K Performance analysis of low power high speed pipelined adders for digital sigma delta modulators Electronic Letters 42 25 1442 1444 2006 Cited on page 38 A R Duggal Calibration of delta sigma data converters in synchronous demod ulation sensing applications IEEE Sensors Journal 11 1 16 22 2011 Not cited Van Roermund A Janssen E Look Ahead Based Sigma Delta Modulation Analog Circuits and Signal Processing Springer 2011 ISBN 9789400713864 URL http books google se books id HJtrNwXKk6IC Cited on page 12 David Jarman A brief introduction to sigma delta conversion 1995 Cited on page 4 Chen Yi Lee Jui Yuan Yu Wan Chun Liao A mt cdma based wireless body area network for ubiquitous healthcare monitoring Biomedical Circuits and Sys tems Conference 2006 pages 98 101 2006 Cited on page 32 Marcus Lovgren Design of sigma delta modulators for oversampling digital to analog converters 2001 Cited on page 14 Per Lowenborg Mixed Signal Processing Systems 2nd edition 2006 Cited on page 23 Bonizzoni E Maloberti F Noli S Perez A P Sigma delta time interleaved current steering dac with dynamic elements matching 52nd IEEE International Mid west Symposium on Circuits and Systems 2009 MWSCAS 09 2009 Cited on page 32 Jan Van der Spiegel Pervez M Aziz Henrik V Sorensen An overview of sigma delta converters How a 1 bit adc
86. pe all error 1000 warning 50 Check DRC Before exporting the design to a GDS file the DRC should be checked using the following command in Encounter terminal checkDrc DRC errors in the design will be highlighted in physical window 6 4 Cadence Encounter Manual 97 6 4 8 Export Design Here design can be exported in several formats like gds file Verilog netlist design and the SDF timing file Export GDS File GDS file can be exported by opening GDS export window from File gt Save gt GDS OASIS Set all the fields as shown in figure 6 32 m GDS OASIS Export OX Output Format e GDSII 5tream OASIS Output File digRfbacSdm_GDS gds lolo Map File 5 010 COREGSS5GPHVT_5 1 libs COREBSGPHVT ptmap B Library Name digRiDacSdm m m x Structure Name digR DacSdm_BitSplitter Attach Instance Name to Attribute Number Attach Net Name to Attribute Number Merge Files E Uniquify Cell Names Stripes Write Die Area as Boundary Write abstract information for LEF Macros Units 1000 Mode ALL Apply Cancel Help Figure 6 32 Export design to a gds file Map file field is important because the design will be mapped to the technology i e cmos065 So the map file should be chosen from the directory where the standard cell libraries were placed Like in section 6 3 standard cell libraries were chosen from the path sw cadence libraries cmos065RF 534 IC615 010
87. quivalent commands are also generated and stored in the file The second file is encounter logx which has all the log information of the current Encounter s session Before continuing to import the design and routing stuff some files are prepared which have all definitions of standard cells Library Exchange Format LEF files clock buffers inverters Verilog netlist file IO mapping file timing information for the design to be imported and Timing Library Format tlf file The Verilog netlist file is generated in section 6 3 using design compiler LEF files are considered to be the most important as they have physical layout definitions for the standard cells used in design The LEF files contain information about metal and via layers and via generate rules Systems 2003 These LEF files provide an abstract view of the layout and the tool doesn t need to create the full layout it just creates the abstract layout Order of LEF files in which these files are loaded is very important Encounter kit s LEF file should be loaded first Secondly CORE library file which is used earlier in design compiler will be loaded At the end all other files which contain definitions of clock buffers clock inverters and fillers should be loaded Design constraints file SDC was also generated at the end of design synthesis in previous section Timing library file can be generated using syn2tlf tool from Synopsys Syn2tlf is a translator from Synop
88. r of 974 Up Sampled signal After filtering T T 100 Magnitude in dB 1 TE 2 25 frequency in Hz xi Figure 5 5 Spectrum of output signal after anti aliasing filter As shown in equation 3 12 in section 3 3 1 the SNR increases by a factor of 3 dB with increase in OSR as a multiple of 2 Figure 5 7 shows the direct relation of SNR and OSR The simulated SNR cannot exceed 98 dB because of quantization limitations as shown in figure 5 7 The equation depicting the relation between the number of quantization bits and SNR is given in section 3 3 2 From these equations observe that increasing the number of quantization bits improves the SNR Theoretically for each additional bit SNR increases by 6 dB Figure 5 8 shows the relationship of theoretical and simulated SNR when quan tization bits are varied After a certain limit there is no effect of increasing quan tization bits on the simulated SNR because of the tool limitations MATLAB can only work for words that are 44 bits wide 5 6 Sigma Delta Modulators The digitized signal is input of the sigma delta modulator as discussed in chapter 2 Different types of SDM are used to study their noise shaping behavior of the input signal 5 6 Sigma Delta Modulators 51 Digital signal 50 100 150 Magnitude in dB 200 250 0 0 5 1 1 5 2 25 frequency in Hz x 107 Figure 5 6 Spectrum of digital signal with 16 word length Sweeping OSR 8 64
89. ras eller presenteras i s dan form eller i s dant sammanhang som r kr nkande f r upphovsmannens litter ra eller konstn rliga anseende eller egenart F r ytterligare information om Link ping University Electronic Press se f rla gets hemsida http www ep liu se Copyright The publishers will keep this document online on the Internet or its possi ble replacement for a period of 25 years from the date of publication barring exceptional circumstances The online availability of the document implies a permanent permission for anyone to read to download to print out single copies for his her own use and to use it unchanged for any non commercial research and educational purpose Subsequent transfers of copyright cannot revoke this permission All other uses of the document are conditional on the consent of the copyright owner The publisher has taken technical and administrative measures to assure authenticity security and accessibility According to intellectual property law the author has the right to be men tioned when his her work is accessed as described above and to be protected against infringement For additional information about the Link ping University Electronic Press and its procedures for publication and for assurance of document integrity please refer to its www home page http www ep liu se Sohaib A Qazi and S Asmat Ali Shah
90. rs are implemented in 65 nm technology The re configurable sigma delta modulator is designed using Verilog HDL language Switches are introduced to control the reconfigurable SDM for different input word lengths Word length can vary from 0 to 4 bits Modulator is designed to work for frequencies of 2 GHz To netlist the design Design Compiler is used which is a tool from Synopsys The area of the chip reported by design compiler is 563 68 um When the design is imple mented in SoC Encounter area of the chip is increased because the core utilization while designing is only 60 which is 556 8 um Remaining 40 area is used by buffers inverter and filler cells during clock tree synthesis The buffers and inverters are added to remove the clock phase delay between different registers Power consumption of the chip is 319 mW Internal power of the modulators is 219 1 mW Switching power of output capacitances is 99 9 mW which is 31 of the total power consumed Main concern of the power loss is considered to be power leakage To reduce the leakage power and achieve high speed de sign CORE65GPHVT libraries are used Leakage power of the design is 2 825 uW which is 0 00088 of the total power Nyckelord Keywords problem l sning Abstract This thesis presents a model of reconfigurable sigma delta modulator These modulators are intended for high speed digital Digital to Analog Converters The modulators are intended to reduce
91. s Dy yxy U NOS jo andino was 40 yndjno azAjeuy qeren e uope pu JVILVIN Sursn WAS opqe1n8guoo o1 107 A3oJopoyJaut 1891 qEREW pue o2uape uaam eq 338491 JBIUM alld Jeusis yesoy Tur Aue sjeu3is 1439 101ejnpoW eyaq ew ls 9 qeun8uo ay aouape UOREJGUBD 22012 QUI Aue noms aJuapeJ pue qepen usam eq 338 4934 Japeay aji4 3114 pa ur eu31S 31045 uonejoua5 jeusis genen 42 4 Digital Modeling of SDM Matlab Matlab Analyze output of SDM Signal Generation Output of SDM in txt file Store Signal in txt file a b Figure 4 15 MATLAB environment a Generate baseband signal b Post processing after simulations 4 8 1 MATLAB Environment MATLAB is used to perform two tasks one is to generate the input signal and the other is to post process the output after simulations which is to test the output of the modulators As shown in figure 4 15a signal generation block will generate a digital base band signal As the modulator is intended to work for 2 GHz fre quency so the sampling frequency of the input signal is 2 GHz and the baseband signal is at 50 MHz The other task of MATLAB is to analyze the data after simulations in cadence The simulated output is read through a text file 4 8 2 Interfaces The interfaces shown in figure 4 16 provide a link between MATLAB and Ca dence Text file which has input data is read by file reader o
92. s like bin CORE65GPHVT bc 110V 125C tlf Remember to write complete path to the file if not located in current working directory To load design constraints SDC file locate the property set rda Input ui timingcon file and fill quotes with SDC file name with complete path After changing the config uration file save the file and click OK in the design import window The imported design in cadence will look like as shown in figure 6 9 A good practice is to read the log file at each step as errors and unwanted warn ings are hard to track later Log can be read from Encounter s console or from the file encounter logx generated in current working directory This report also includes equivalent commands which are helpful in complete 6 4 Cadence Encounter Manual 75 tty ttt Figure 6 9 Design imported in Encounter with rows of the core area process from importing the design till the exporting of the design All the equiv alent commands can be used to write scripts All the commands mentioned here can be executed through Encounter s console If the configuration file is already created then load the file using the command loadConfig config_file_name conf In case the configuration file is not available then parameters can be loaded man ually by these commands Load the LEF files by setUI Var rda Input ui_leffile file1 lef file2 lef file3 lef filex lef Again remember the
93. s thesis is to implement a reconfigurable sigma delta modulator in hardware The hardware implementation of sigma delta modulator means the design is implemented using automatically generated layouts The layout design is quite laborious which requires long design time if done man ually To skip the manual layout design process and minimize design effort a design tool from Cadence named SoC Encounter is used This tool minimizes the effort of layout design by automatically generating layout design from Verilog netlist 4 2 SoC Encounter Design Flow In this thesis a reconfigurable sigma delta modulator is designed which is a part of all digital DACs The sigma delta modulator is designed using RTL language i e Verilog SoC Encounter is then used to generate a layout design from Verilog netlist generated by a tool named Design Compiler The complete design flow of SoC Encounter is shown in figure 4 1 Encounter has three types of input files one is Verilog netlist file which is gen erated using a Design Compiler The Design Compiler is an RTL synthesis tool from Synopsys which is used to convert RTL design file into Verilog netlist The compiler takes care of the timing information and the standard cells that will be placed during layout generation process The second input is timing information 29 30 4 Digital Modeling of SDM Timing Library Files sdc tlf Technology Files lef Floor Planning Power P
94. sign Open the Clock tree Display by Clock gt Display Display Clock Tree to check the clock phase delay in different levels of CTS In figure 6 24 select the Display Clock Phase Delay in Display Selection area To see the clock phase delays for different CTS levels select CTS level from Route Selection field and click apply 88 6 SoC Encounter Manual Specify Buffer Inverter Cells List H565_GH_BFx106 H565_GH_BFX13 HS65_GH_BFX142 HS65_GH_BFX18 Generate Clock Spec Selected Cells H565_GH_BFX106 H565_GH_BFX13 HS65_GH_BFX142 H565_GH_BFX18 HS65_GH_BFX2 add H565_GH_BFX2 HS65_GH_BFX213 HS65_GH_BFX213 HS65_GH_BFX22 HS65 GH BFX22 HS85 GH BFX27 HS65 GH BFX27 HS65_GH_BFX284 HS65 GH BFX284 HSB85 GH BFX31 HS65 GH BFX31 HS65_GH_BFX35 HS65_GH_BFX35 HS65_GH_BFX4 HS65_GH_BFX4 HS65_GH_BFX40 HS65_GH_BFX40 HS65_GH_BFX44 HS65 GH BFX44 HS65_GH_BFX49 HS65_GH_BFX49 HS65_GH_BFX53 Delete HS65_GH_BFX53 HS65_GH_BF X62 H565_GH_BFX7 HS65_GH_BFX71 H565_GH_BFX62 H565_GH_BFX7 H565_GH_BFX71 HS65_GH_BFX9 ICRC MII RAIN lay H565_GH_BFX3 HERE CII Weta Output Specification File digRfDacSdm ctstch Figure 6 23 Selecting buffers and inverters to generate clock tree specifica tion ctstch file Apply Clear Boc Close Help 6 4 Cadence Encounter Manual 89 E Display Clock Tree al eat Clock Selection All Clock s y Selected Clock
95. sign verify the model using behavioral simulations in MODELSIM 6 3 Synthesis and Netlist Design Compiler In this section the design is synthesized and a netlist will be created using design compiler Design compiler can be launched by following instructions Open terminal window and go to project directory that is created for the Top model and create a new directory named synopsys using mkdir synopsys Copy 2010 12 file to synopsys directory by cp path_of_file_to_copy 2010 12 digRfDacSdm_Top synopsys module use digRfDacSdm_Top cd digRfDacSdm_Top module load synopsys 2010 12 design_vision When the compiler is launched the first and the most important task is to setup the default libraries The libraries can be chosen according to the requirements of your design The GP libraries are considered to be the fastest ones as compared to the LP Dif ferent options are available for GP and LP like HVT LVT and SVT There are tradeoffs between all available libraries LVT libraries give the best performance with high speed applications however the leakage is very high Typically HVT option is considered to have the best tradeoff between speed vs leakage more discussion has already been done in section 4 3 of chapter 4 To setup libraries open File gt Setup defaults Remember to update the libraries according to the file extensions mentioned in default field The best libraries for high speed and low leakage are C
96. sys to Timing Library Format TLF Syn2tlf is used to translate the Synopsys library to TLF This translator can also trans late table_lookup generic_cmos and cmos2 delay models to TLF s table model Synopsys 2005 One can generate the tlf file for the libraries used in synthesis process by running this command in terminal syn 2tlf input library to tlf translator lib Library input library to tlf translator lib is same library which was used to cre ate the synthesized netlist of the design In last section about generation of netlist file CORE65GPHVT_bc_1 02V_125C db is used so the same file will be used by translator Figure 6 7 shows the data model input and output of the translator Input file is a lib and the output is the corresponding tlf file The data model indicates that we have several options available for the translator The above com 6 4 Cadence Encounter Manual 73 mand is the simplest one to execute Detailed information about how to use the syn2tlf tool can be found in syn2tlf user guide Synopsys 2005 Command Line Options Synopsys Technology File lib Front End Back End Timing Library Format TLF File Log file syn2tlf log Figure 6 7 Data model of syn2tlf When all the design files are ready then one can start importing design power planning placing standard cells and routing the design 6 4 1 Importing Design Importing of design includes specificat
97. t the MSBs will be 8 to 4 respectively The sigma delta modulator will take the LSBs and will accumulate them to gen erate a weighted output In figure 4 8 there is only one delay element in critical path of second order sigma delta modulator This also means that the sigma delta modulator takes one extra clock cycle to accumulate and generate output The path of MSBs does not have any delay which causes the mismatch in phase delays To balance out this phase delay difference a delay is added in path of MSBs At the last stage MSBs and LSBs are added together to generate an output of MSB 1 bits the number of bits is quite less than the original number of bits So the number of current steering elements of DAC are reduced by 4 5 Design of Re Configurable Digital Sigma Delta Modulator 33 ElementsReduced 2NOB 1 gMSB41 4 1 The 1 in equation 4 1 comes from the fact that the LSBs are reduced to 1 The LSB requires only one current steering element in DAC So the total number of elements will be Numbero f Elements 2M5B 1 4 2 In figure 4 2 consider MSBs and LSBs are 4 so reduced number of elements for DAC are 32 4 5 Design of Re Configurable Digital Sigma Delta Modulator The sigma delta modulator presented in section 4 4 is reconfigurable which means that the length of the modulator can be controlled with the input control signal The purpose of this reconfigurable SDM is
98. the ratio between sampling frequency f pl and base band signal bandwidth Afzal N 2010 fsample CAES 2 Bandwidth 3 13 3 3 2 Digitization Digitization is the process of converting continuous time signal which can be considered as information or up sampled data into digital format In digital for mat input data up sampled is structured into discrete units of data that can be termed as bits and those bits can be separately addressed After up sampling and filtering the signal is digitized Afzal N 2010 states that the input word length NOB has a direct impact on signal to noise ratio SNR and the relation can be defined by 3 4 Conclusion 25 xe H m 2011 wl a mer IH e 7 a N zx JE Mo wi b pre ES W w c Figure 3 9 Interpolation and sampling a Baseband signal b Interpola tion c Recovered signal SNR 6 02 NOB 1 76 3 14 Equation 3 14 realizes the fact that if word length NOB is increased the SNR will increase by a factor of 6 dB 3 4 Conclusion In this chapter the process that defines the input signal to the sigma delta mod ulator is discussed in detail This process includes base band signal generation up sampling filtering and quantization Part IV Digital Modelling of SDM Digital Modeling of SDM 4 1 Introduction This chapter discusses digital modeling of the sigma delta modulators which are described in chapter 2 The aim of thi
99. to use same SDM for different input word lengths Functionality and design of the SDM is presented in this section The modulator can be divided in two major blocks as shown in figure 4 3 one is called stage0 sigma delta modulator and the other is stageN sigma delta modula tor SDM MSB a SDM Stage 0 with feedback subtractor SDM Stage 1 without feedback subtractor SDM Stage 2 without feedback subtractor SDM Stage N 1 without feedback subtractor Figure 4 3 Sub blocks of non configurable sigma delta modulator 34 4 Digital Modeling of SDM Stage0 of SDM has one bit input which is MSB of the input signal that is passed to the sigma delta modulator The stage0 of SDM shown in figure 4 4 has three sub modules named subtractor 2 bit integrator and last module is 3 bit integrator The accumulated output is fed back to the subtractor and is subtracted from the input signal The output of the subtractor is fed to a 2 bit accumulator which will accumulate the signal and result of accumulation is passed to a 3 bit integrator 1 2bit Integrator 3bit Integrator CinO Cin1 Figure 4 4 Architecture of stage0 sigma delta modulator with integrators and a subtractor 4 5 1 Subtractor Module The subtractor is modeled using simple 2 s complement logic In 2 s complement logic a subtractor is designed using an adder which is explained by Out in im in ing Cin 4 3 In equation 4 3 input in is i
100. used for extension of stage0 for high order SDM Filtering technique used in modulator a High pass filter for base band signal b Low pass filter for baseband signal Basic sigma delta modulator llle First order sigma delta modulator 1 1414111 Integrator stage of sigma delta modulator Model of Sigma Delta Modulator Indicating where the Integrator is Placed wsio 2 2 ur iS WEW a Quantizer stage of SDM 0 000 000 0040 Sigma delta modulator 2 2 2 Co nme Error feedback sigma delta modulator Second order signal feedback sigma delta modulator Design flow for thesis rr o rr rr rr ss Process of sampling the signal ss oso 4441414111 Graphical explanation of sampling process 1 Input signal in time domain and frequency domain Frequency spectrum of sampled data 1 11 11 Concept of aliasing o oo Interpolationi 02 0504 2 8 5 sus 25 eS ohm ha Steps involved in interpolation 2 22 222 Interpolation and sampling a Baseband signal b Interpolation c Recoveredsignal 2er Steps involved in designing layout using SoC Encounter Controlled re configurable sigma delta modulator SDM Sub blocks of non configurable sigma delta modulator Architecture of stage0 sigma delta modulator with integrators an
101. wer consumption results for the design 5 7 1 Area Consumed The area of design reported by design compiler is given in table 5 5 The combi national area is approximately 3 times bigger than the non combinational area which is clear from the design logic Table 5 5 Area of design netlist Combinational Non Combinational Total Area Area Area 435 76 127 92 563 68 58 5 Simulation Results Second Order Signal Feedback Vs Error Feed Back OSR 64 Input Word Length 16 Q 2 100 T T T T Second Order Signal Feedback Model 80 Second Order Error Feedback Model 60 a 5 Magnitude in dB 20 40 10 Frequency in Hz Figure 5 16 Comparison of second order signal and error feedback sigma delta modulator with OSR 64 input word length 16 and 2 bit quantiza tion The Floor planning is done by using 60 core utilization The core utilization is set to 60 because in sigma delta modulator there are lots of delay elements which require a clock signal to operate While routing the design clock tree synthesis CTS is performed to remove clock phase delays between different de lay elements The re configurable sigma delta modulator s core area and area including IO boundaries is shown in table 5 6 The core area including IO boundaries is greater which is obvious from the fact that the area between core and IO boundaries is used for power rails T

Download Pdf Manuals

image

Related Search

Related Contents

Bedienungsanleitung Kraftmessgerät FH  グラフィックオペレーションターミナル 三菱電機  MF-90-04X 取扱説明書  Apprentissage artificiel appliqué à la prévision de trajectoire d`avion  Pogo RipFlash Plus MP3 Player  WINdirect Moving head  

Copyright © All rights reserved.
Failed to retrieve file