6
After Login to the Linux machine follow the steps to work on Cadence nclaunch/ncsimulator: A word of caution, Linux is case sensitive so please mind the letter case and the spaces. A 1.   .. Let's Say we are here: [user@localhost ~]$ that is the prompt at current home directory for user. You will type commands after $ (don't type letter $) c Making a directory: make a directory at a place you would like to. Say, we are creating a directory on the Desktop (mind the case): mkdir Desktop/exercises. m 2. Change to this directory: cd Desktop/exercise prompt will change to [user@localhost exercise]$ this means we are in the exercise folder. t 3. now make the vhdl/verilog files in this directory in any text editor: like so: gedit (alternatively you can use vi editor) adder.vhd , start writing and save. l we are set to open Cadence tools: 4. First change to c shell by typing csh on command prompt ie. [user@localhost exercise]$csh 5. [user@localhost exercise]$source /cad/cadence/cshrc1 6. [user@localhost exercise]$nclaunch -new Click on Multi Step:

Cadence Nclaunch tutorial

Embed Size (px)

DESCRIPTION

tutorial NCSim

Citation preview

  • AfterLogintotheLinuxmachinefollowthestepstoworkonCadencenclaunch/ncsimulator:Awordofcaution,Linuxiscasesensitivesopleasemindthelettercaseandthespaces.A

    1...Let'sSaywearehere:[user@localhost~]$thatisthepromptatcurrenthomedirectoryforuser.Youwilltypecommandsafter$(don'ttypeletter$)c

    Makingadirectory:makeadirectoryataplaceyouwouldliketo.Say,wearecreatingadirectoryontheDesktop(mindthecase):mkdirDesktop/exercises.m

    2.Changetothisdirectory:cdDesktop/exercisepromptwillchangeto[user@localhostexercise]$thismeansweareintheexercisefolder.t

    3.nowmakethevhdl/verilogfilesinthisdirectoryinanytexteditor:likeso:gedit(alternativelyyoucanusevieditor)adder.vhd,startwritingandsave.l

    wearesettoopenCadencetools:4.Firstchangetocshellbytypingcshoncommandpromptie.

    [user@localhostexercise]$csh5. [user@localhostexercise]$source/cad/cadence/cshrc16. [user@localhostexercise]$nclaunchnew

    ClickonMultiStep:

  • click'createcds.libfile'

    ClickSaveandatnextwindowclick'OK',click'OK'oncemoreonthe'opendesigndirectory'window:

  • ThisistheNCLaunchmaininteractivewindow:Youwillseeyourvhdlfilesinthefilesbrowserontheleftandthereisalibrarybrowserontheright:

    CompiletheleafcellsFIRSTbyselectingitandclickingonVHDLbutton.Alternatively,youcandoubleclick.Compilealltheleafcells(VHDLfiles)FIRST.Nowcompilethetopmodule.Here,aluistheleafcellandalu_testisthetopcell(asalu_testcontainsalu).

    Aftercompilationthecellscanbeseeninthelibrarybrowserundertheyellowhat(thisistheworklibrary).

  • Elaborate:Nowyouelaborateyourdesignbyexpandingthe+ontheyellowhatandselectingandelaboratingthecompilesmodulesfromthere.Foreleborate,eitherrightclickandchoose'NCElab'orclicktheelaboratebutton.Youelaborateallthemodulesonebyonestartingfromtheleafmodulesfinallytothetopmodule.

    Ifyouhavedonethingsright,youwillseesomeentriesalreadypopulatedunder'snapshots'inthelibrarybrowse:

    CompileElaborate

    Elaboratethese

    SimulatetheseCompilethese

    fs

  • LaunchCadenceSimulatorNCSim:Forinstance,inthisexample,rightclickon'worklib.alu_test.vhdl'andselectNCSim(Wewillanalyze/simulatethissnapshot).Click'OK'onthenextwindow.

    Thiswillopenthesimulator/analyzertoolwindow.Rightclickthechipsign(WORKLIB.ALU_TEST(VHDL))intheDesignBrowser.Andselect'sendtowavefornwindow'.

    Sendthistowaveform

    fs

  • Thisopensthewaveformwindow:

    Nowifyouhavealreadymadeatestbench(whichinthiscasewealreadyhave,alu_test)youarejustclickawayfromthesimulationresults.

    Rightnexttotheplaybuttonthereisadownarrow,clickthisarrowanditwillshowsomenumeralvaluesay,10.Ifnot,typeinsomevalue.Thisvalueistheunitoftimethatyouwantyoursimulationtobecarriedout.

    Timeframeunit'fs'nexttothereddownarrowbuttondecidestheunit.Forthisinstance,theunitsarechosentobe'fs'andyouinserted10atthe'play'buttonsoitmeansthatthesimulationcanbecarriedouttill10fstime.Itwillendthereandifyouwanttorunanother10fswhatyoudoistojustclicktheplaybuttonagain.

    NCLaunchhasveryextensivehelponthedetailsonhowtousedifferenttoolsandwindows.Forfurtherdetailsclickonhelpintheextremerightcorner,selectthe'userguide'

    fs

    Play/RunButton