Académique Documents
Professionnel Documents
Culture Documents
Theworldssmallest32bitCPUwithGCCtoolchain.
TheZPUisasmallCPUintwoways:ittakesupverylittleresourcesandthearchitectureitselfissmall.ThelattercanbeimportantwhenlearningaboutCPUarchitecturesand
implementingvariationsoftheZPUwhereaspectsofCPUdesignisexamined.InacademiastudentscanlearnVHDL,CPUarchitectureingeneralandcompleteexercisesin
thecourseofayear.
ThecurrentZPUinstructionsetandarchitecturehasnotchangedforthelastcoupleofyearsandcanbeconsideredquitestable.Thereisalotofdiscussionaboutvarious
modificationstotheZPUarchitectureinthezylinzpumailinglist,butcurrentlynoactualmodificationsareplannedastheimprovementsthathavebeenidentifiedarerelatively
slight(<30%performance/sizeimprovement).
ThereareahandfulofimplementationsoftheZPU.Mostoftheseusuallyhavesomestrongpointsandthereissomemovementinthedirectionofconsolidatingimprovements
intoafewofficiallyrecommendedZPUimplementations.
ForthosethatareinterestedintheZylinZPU,Irecommendjoininguponthezylinzpumailinglistandparticipatinginthediscussionthere.Thezylinzpuisafriendlyplace
wherepeopleofdifferentskills,hardware,software,toolsmeettoexchangeideasabouttheZPUandmicroprocessorarchitectureingeneral.
Sincerely,
yvindHarboe
ZylinAS
License
TheprojectincludesHDL,GCCtoolchainandeCosHAL.
TheZPUhasaBSDlicensefortheHDLandGPLfortherest.ThisallowsuserstoimplementanyversionoftheZPUtheywantincommercialproducts,butifimprovements
aredonetothearchitectureassuch,thentheyneedtobecontributedback.
PerJan1.2008,ZylinhastheCopyrightfortheZPU,i.e.ZylinisfreetodecidethattheZPUshallhaveaBSDlicenseforHDL+GPLfortherest.
Features
Smallsize:(Seeperformancesummary)
Codesize80%ofARMThumb
GCCtoolchain(GDB,newlib,libstdc+)
eCosembeddedoperatingsystemsupport
Status
HDLworks
GCCtoolchainworks
eCosHALworks
...butthereisalongTODOlist
Expectchurnasweconvergeontoashorterlistofimplementations.
Downloadsourcecode
TheZPUHDLsourcecodeisavailableasaGITrepositoryfromhttp://repo.or.cz/w/zpu.git.YoucandownloadthelatestsourcecodeasasnapshotwithoutinstallingGIT.
PreviouslytheZPUrepositorywashostedasaCVSrepositoryatwww.opencores.org,butthatZPUCVSrepositoryisthereonlyforhistoricalreferenceatthispoint.Once
www.opencores.orggrowsaGIThostingservice,theplanistoreplicatetheGITrepositorythere.
TheGCCZPUtoolchainisavailablefromhttp://repo.or.cz/w/zpugcc.git.TheZPUGCCtoolchainisBIG(over100MBytes).
GIT
FormoreadvanceduseofGIT,youwillneedtohitthebooksandreadupontheGITdocumentation.
Thatsaid,youcanask"silly"newbiequestionsaboutGITonthezylinzpumailinglistandyoushouldreceivesomefriendlyproddingintherightdirectionw.r.t.findingreading
material.
Gettinghelpmailinglist
Theplacetogethelpisthezylinzpumailinglist
TheZPUisanopensourceprojectandifyoudemonstratethatyouhavemadeanefforttoreadthedocumentationandgoogled,thenyouwillnormallygetsomehelpfromthis
listifyouaskclearquestions.
Architecture
TheZPUisazerooperand,orstackbasedCPU.Theopcodeshaveafixedwidthof8bits.
Example: