Soft core

Introduction

Notlongago,AlteraofficiallylaunchedtheNiosIIseriesof32-bitRISCembeddedprocessors.TheNiosIIseriesofsoft-coreprocessorsareAltera'ssecond-generationFPGAembeddedprocessors.Itsperformanceexceeds200DMIPS,anditonlycosts35centstoimplementinAlteraFPGAs.Altera'sStratix,StratixGX,StratixII,andCycloneseriesFPGAsfullysupportNiosIIprocessors,andfutureFPGAdeviceswillalsosupportNiosII.

SinceAlteralaunchedthefirst16-bitNiosprocessorin2000,ithasdeliveredmorethan13,000Niosdevelopmentkits,andNioshasbecomethemostpopularsoft-coreprocessor.ThenewlylaunchedNiosIIseriesadoptsabrand-newarchitectureandhasahigherlevelofefficiencyandperformancethanthefirst-generationNios.Comparedwiththefirstgeneration,theNiosIIcoreoccupieslessthan50%ofFPGAresourcesonaverage,andthecomputingperformancehasdoubled.

TheNiosIIseriesincludes3products,namely:NiosII/f(fast)-thehighestsystemperformance,mediumFPGAusage;NiosII/s(standard)-highperformance,lowFPGAusage;NiosII/e(economic)-lowperformance,thelowestFPGAusage.These3productshavethebasicstructuralunitsofa32-bitprocessor-32-bitinstructionsize,32-bitdataandaddresspaths,32-bitgeneral-purposeregistersand32externalinterruptsources;usingthesameinstructionsetarchitecture(ISA),100%Compatiblewithbinarycode,designerscanchangetheCPUaccordingtochangesinsystemrequirementsandchoosethebestsolutionthatmeetsperformanceandcostwithoutaffectingtheexistingsoftwareinvestment.

Inparticular,theNiosIIseriessupportstheuseofdedicatedcommands.Thededicatedinstructionisahardwaremoduleaddedbytheuser,whichaddsanarithmeticlogicunit(ALU).Userscancreateupto256dedicatedinstructionsforeachNiosIIprocessorusedinthesystem,whichallowsdesignerstofine-tunethesystemhardwaretomeetperformancegoals.ThededicatedinstructionlogicisthesameastheNiosIIinstructionitself.Itcanfetchvalues​​fromuptotwosourceregistersandoptionallywritetheresultbacktothetargetregister.Atthesametime,theNiosIIseriessupportsmorethan60peripheraloptions.Developerscanchoosetherightperipheralsandgetthemostsuitablecombinationofprocessors,peripheralsandinterfaceswithouthavingtopayforsiliconfunctionsthatarenotusedatall.

TheNiosIIseriescanmeettheneedsofanyapplicationof32-bitembeddedmicroprocessors.Customerscantransplantthefirst-generationNiosprocessordesigntoacertainNiosIIprocessor.AlterawillsupportexistingFPGAsforalongtime.Thefirst-generationNiosprocessorintheseries.Inaddition,Alteraprovidesaone-clickmigrationoptionthatcanbeupgradedtotheNiosIIseries.NiosIIprocessorscanalsobeimplementedinHardCopydevices,andAlteraalsoprovidesASICtransplantationforsystemsbasedonNiosIIprocessors.

TheNiosIIprocessorhasacompletesoftwaredevelopmentkit,includingacompiler,integrateddevelopmentenvironment(IDE),JTAGdebugger,real-timeoperatingsystem(RTOS)andTCP/IPprotocolstack.ThedesignercanusetheSOPCBuildersystemdevelopmenttoolintheAlteraQuartusIIdevelopmentsoftwaretoeasilycreateadedicatedprocessorsystem,andcanaddthenumberofNiosIIprocessorcoresaccordingtotheneedsofthesystem.

TheNiosIIsoftwaredevelopmenttoolcanbeusedtobuildsoftwarefortheNiosIIsystem,thatis,one-clickautomaticgenerationofadedicatedC/C++operatingenvironmentsuitableforsystemhardware.NiosIIintegrateddevelopmentenvironment(IDE)providesmanysoftwaretemplatestosimplifyprojectsettings.Inaddition,theNiosIIdevelopmentkitincludestwothird-partyreal-timeoperatingsystems(RTOS)-MicroC/OS-II(Micrium),NucleusPlus(ATI/Mentor)andTCP/IPprotocolstackfornetworkapplications.

Foralongtime,thereasonwhyAlterahasbeenpursuingtheembeddedprocessorstrategyisthatastheapplicationofASICdevelopmentisincreasinglytroubledbycosts,OEMsareincreasinglyturningtoFPGAstobuildtheirownsystems.Mostofthesesystemsrequireaprocessor,andAlteraprovidesdesignerswithflexibleembeddedprocessorsolutionsoptimizedforFPGAsthatcanmeettheneedsofthe16-bitand32-bitembeddedprocessormarket.Itisestimatedthatby2007,themarketvaluewillreach11billionUSdollars.

Theadvantageofusingsoft-coreprocessorsinFPGAsoverhard-coresisthathard-coreimplementationshavenoflexibilityandusuallycannotusethelatesttechnology.Asthesystembecomesmoreadvanced,solutionsbasedonstandardprocessorswillbeeliminated,whilesolutionsbasedonNiosIIprocessorsareconstructedbasedonHDLsourcecode,whichcanbemodifiedtomeetnewsystemrequirementsandavoidthefateofbeingeliminated.ByimplementingtheprocessorasanHDLIPcore,developerscanfullycustomizetheCPUandperipheralstoobtainaprocessorthatjustmeetstheneeds.

Features

TheNios®IIseriesofembeddedprocessorsarespeciallyoptimizedfortheintegratedapplicationsofAltera®FPGAsandProgrammableSystem-on-Chip(SOPC).Table1detailsthecharacteristicsoftheNiosIIsoft-coreembeddedprocessorseries.Formoregeneralinformation,pleaserefertotheNiosIIintroductionpage.

Table1.NiosIIembeddedprocessorseriesfeatures

Featuredescription

Designprocessandtools

DetailsofhardwaredevelopmenttoolsonthispageListedthedevelopmenttoolsusedtobuildtheNiosIIprocessorhardwaresystem.

SoftwaredevelopmenttoolsThispageprovidesinformationabouttheNiosIIintegrateddevelopmentenvironment(IDE),whichisanintegrateddevelopmentenvironmentwidelyusedbydevelopers,includingediting,compiling,anddebuggingapplicationsoftware..

DevelopmentkitAlteraanditspartnersprovidealargenumberofdevelopmentboardkitsthatusetheNiosIIseriesofembeddedprocessors.

System-leveldesignflowAltera’sSOPCBuildertoolprovidestheabilitytoquicklybuildSOPCsystems.ThisarchitecturecanincludeoneorseveralCPUs,providememoryinterfaces,peripheraldevices,andsysteminterconnectionlogic.system.

Architectureandfeatures

NiosIIprocessorcoreNiosIIprocessorseriesconsistsofthreedifferentcores,whichcanflexiblycontrolcostandperformance,thushavingawiderangeofapplications.

JTAGdebuggingmoduleTheJTAGdebuggingmoduleprovidestheon-chipcontrol,debuggingandcommunicationfunctionsoftheNiosIIprocessorthrougharemotePChost.ThisisaverycompetitivefeatureoftheNiosIIprocessor.

UserinstructionsDeveloperscanaddhardwaretotheNiosIICPUcoretoperformcomplexcomputingtasksandprovideaccelerationalgorithmsforsoftwarewithtighttimingrequirements.

PeripheralsandinterfacesTheNiosIIdevelopmentkitincludesasetofstandardperipheralequipmentlibraries,whichcanbeusedfreeofchargeinAltera'sFPGA.

Avalon™SwitchedBusTheAvalonSwitchedBusimplementsnetworkconnectionsbetweenprocessors,peripherals,andinterfacecircuits,andprovideshigh-bandwidthdatapaths,multiplechannels,andreal-timeprocessingcapabilities.AvalonswitchingbuscanbeautomaticallygeneratedbycallingSOPCBuilderdesignsoftware.

Designresources

NiosIIprocessorsupportNiosIIprocessorsupportpageprovidesavarietyofinformationhelpfultoNiosIIdesigners,includinglicenses,downloads,andreferencedesigns,Documentation,onlinedisplayandcommonproblems.

EmbeddedProcessorSolutionCenterTheEmbeddedProcessorSolutionCenterprovidesalotofinformationtohelpdevelopersimplementsystemdesignsusingAltera'sembeddedprocessors.Theavailableinformationincludesdevicesupport,softwaredevelopmenttools,peripheralequipmentandinterfaces,training,technicalsupportandmaterials.

NiosrenewalinformationTheNiosIIdevelopmentkitincludesaone-yearupgradelicensefortheCPU,peripherals,andembeddedsoftwaredevelopmenttools.(ThisdoesnotincludeQuartus®IIsoftwareupgrades.)CustomerscanorderadditionalinformationincludingNiosIIprocessorupgradeseachyearthroughtheNiosrenewalprogram.

NiosIIEmbeddedProcessorQuestionsandAnswersPageThispageprovidesfrequentlyaskedquestionsandanswersaboutAlteraNiosIIseriesembeddedprocessors.

TheexcellentcharacteristicsofStratix®IIdevicesandNiosIIprocessorseriesStratixIIdevicestructurecombinedwithNiosIIembeddedprocessorseriesprovideunparalleledprocessingcapabilitiestomeettheneedsofnetwork,communication,datasignalprocessing(DSP)application,massstorageandotherhighbandwidthsystemapplicationrequirements.

ThecombinationoftheexcellentfeaturesofStratixdevicesandNiosIIprocessorseriesStratixFPGAstructureandNiosIIembeddedprocessorprovideshighprocessingpowertomeettheneedsofhigh-bandwidthsystemapplications.

Cyclone™devicesandNiosIIprocessorseriesuseNiosIIembeddedprocessorseriesinCyclonedevices,reducingcosts,increasingflexibility,andprovidinglow-costdiscretemicroprocessorsinprice-sensitiveapplicationenvironmentsThedeviceprovidesanidealsubstitute.

Related Articles
TOP