Achronix Speedster22i User Macro Guide Manuel d'utilisateur Page 119

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 224
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 118
Memories BRAM80K
Speedster22i Macro Cell Library
AchronixSemiconductorProprietary PAGE 102
When the BRAM80K memory is configured with port widths of 9, 18, or 36 bits wide, the
initialmemorycontentsmay be defined by initializing the 256 256bitparameters initd_000
throughinitd_255andthe32256bitparametersinitp_00through initp_31.Eachninebit byte
is configured by programming the
bottom eight bits of the byte to consecutive bytes of the
initd_000throughinitd_255 parametersandprogrammingtheninthbittoconsecutivebitsof
theinitp_00throughinitp_32parameters.Theparitymemoryisalsoorganizedaslittleendian
withthefirstparitybitlocationm appedtobit0ofinitp_00
andthelastparitybitmappedto
thebit255ofinitp_31.
When the BRAM80K memory is configured with port widths of 10, 20, or 40 bits wide, the
initialmemorycontentsmay be defined by initializing the 256 256bitparameters initd_000
through initd_255, the 32 256bit parameters initp_00 through initp_31, and the 32 256bit
parametersinitpx_00throughinitpx_31.Each
tenbitbyteisconfiguredbyprogrammingthe
bottom eight bits of the byte to consecutive bytes of the initd_000 through initd_255
parameters,programmingtheninthbittoconsecutivebitsoftheinitp_00throughinitp_31
parameters and programming the tenth bit to consecutive bits of the initpx_00 through
initpx_31parameters.
Theextendedparitymemoryisalsoorganizedaslittleendianwiththe
firstparitybit(tenthbit)locationmappedtobit0ofinitpx_00andthelastparitybitmapped
tothebit255ofinitpx_31.
TheBRAM80 K memoryblock mayalternativelybeinitializedwith amemoryfileby setting
the mem_init_file to point to the path of a memory initialization file. The file format in the
lattercaseisdefinedbyhexadecimalentriesseparatedbywhitespace,wherethe whitespace
is de fined by spaces or
line separation. Each number is hexadecimal of width equal to the
maximum value amongst the parameters: porta_read_width, porta_write_width,
portb_read_width,portb_write_width.Anumberentrymaycontainunderscore(_)characters
amongstthedigits,forexample,A234_4567_33.Commentingisallowedfollowingadouble
slash (//) through to the end of the line. C
like commenting is also allowed where the
charactersbetweenthe/*and*/areignored.Thememoryisinitializedstartingwiththefirst
entryofthefileinitializingthememoryarraystartingwithaddresszero,movingupward.
Ifthemem_init_valueisdefined,theBRAM80Kwillbeinitializedwiththevaluesdefinedin
thefilepointedtobythe mem_init_fileparameter accordingtotheformat definedabove.If
themem_init_file isleftatthe defaultvalueof“”, the initial contentswillbedefinedbythe
values of the
initd_000‐initd_255, initp_00‐ini tp_31, and the initpx_00‐initpx_31
parameters.Ifthememoryinitializationparametersandthemem_init_fileparametersarenot
defined, the contents of the BRA M80K will not be initialized and the contents will be
unknownuntilthememorylocationsarewritten.
Vue de la page 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 223 224

Commentaires sur ces manuels

Pas de commentaire