DepartmentofElectricalandComputerEngineeringVishalSaxena-1-SRAMStaticCharacterizationVishalSaxena,BoiseStateUniversity(vishalsaxena@boisestate.edu)VishalSaxena-2-SRAMReadStaticNoiseMargin(SNM)Duringreads,WLandBLareheldatVDDBreakthefeedbackfromthecross-coupledinvertersPlotvoltagetransfercharacteristics(VTC)oftheinverterinthehalfcircuitasshownbelow(V2vsV1)UsethisplottoformthebutterflycurvebyoverlappingtheVTCwithitsinverseRepresentsthetwohalvesdrivingeachotherReadSNMisthesideofthelargestsquarefittedinthebutterflycurveVishalSaxena-3-SRAMReadStaticNoiseMargin(SNM)Sinceit’sdifficultwithSpectretoplottheinverseofthecurveonthesamegraphImporttheV2vsV1inMATLABanddopost-processingtogeneratethebutterflycurveVishalSaxena-4-ReadSNMTestBenchVishalSaxena-5-ReadSNMTestBenchSelectandsavethetraceasa.csvfile,sayVout.csvStartMatlabinthesamedirectoryCanalsouseExcelEitherimportthe.csvfileandplotyourselvesORUsethescriptinthefollowingslidesVishalSaxena-6-MatlabScripttoplotButterflyCurves%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ScripttoplotSRAMButterflycurve%%SavethevinvsvoutDCsweepplotintheSpectreasa%CSVfile'Vout.csv'%RunthisscriptinthesamedirectoryastheCSVfile%Thefileusesthefunctionimportfile%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%importfile('Vout1.csv');%Changefilenameappropriately%vinisthefirstcolumnvin=data(:,1);%voutisthesecondcolumnvout=data(:,2);figure()plot(vin,vout);holdon;gridon;plot(vout,vin);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%VishalSaxena-7-MatlabImportfileFunction%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%functionimportfile(fileToRead1)%IMPORTFILE(FILETOREAD1)%Importsdatafromthespecifiedfile%FILETOREAD1:filetoread%ImportthefilenewData1=importdata(fileToRead1);%Createnewvariablesinthebaseworkspacefromthosefields.vars=fieldnames(newData1);fori=1:length(vars)assignin('base',vars{i},newData1.(vars{i}));End%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%VishalSaxena-8-ReadButterflyPlotFitthelargestsquareinthebutterflyTwostablestates(0and1)AhigherSNMindicatesbetterreadstabilityVishalSaxena-9-SRAMWriteNoiseMargin(WNM)Duringawrite,WLisatVDD,andthedataisdrivenontotheBLsBreakthefeedbackfromthecross-coupledinvertersPlotvoltagetransfercharacteristics(VTCs)oftheinverterinthehalfcircuitasshownbelow(V2vsV1andV1vsV2)Here,VTCsofthetwohalvesarenotthesameSinceoneoftheBLisdriventoVDDandotherto0(asymmetry).WriteNMisthesideofthelargestsquarefittedinbetweenthetwocurvesVishalSaxena-10-WriteNMTestBenchVishalSaxena-11-WriteButterflyPlotFitthelargestsquarebetweenthecurvesTwostablestates(0and1)AhigherWNMindicatesbetterwritestability