#author("2024-02-24T09:13:18+00:00","","")
#author("2024-10-10T03:20:45+00:00;2024-02-24T09:13:21+00:00","","")
[[ASAP Top]]

data2mem はビットファイルに含まれたBlockRAMの情報を編集して、
論理合成配置配線のプロセスなしにRAM/ROMの値を書き換えてくれる偉いコマンド。

しかしその実行プロセスが複雑なので、ここに使い方を示したい。

-メモリの書き方

とりあえず何でもよし。
例えば僕は次の感じで書きました。
#ref(memory.v)

-必要なファイル

1.bitfile~
2.*.ll~
3.*.syr~
4.*.ucf~
5.*.bmm~
6.*.mem~

 1.まずビットファイルを生成する。これはいうことないよね。

 2.3.4. *.llにはBlockRAMがどこに配置されたかの情報が示されているため、これを参照する。
 例えば
Bit  2235597 0x04000024   2285 Block=RAMB16_X1Y3 Latch=DOA6 Net=memOut<6> ~
Bit  2235611 0x04000024   2299 Block=RAMB16_X1Y3 Latch=DOA5 Net=memOut<5> ~
Bit  2235625 0x04000024   2313 Block=RAMB16_X1Y3 Latch=DOA4 Net=memOut<4> ~
Bit  2235653 0x04000024   2341 Block=RAMB16_X1Y3 Latch=DOA3 Net=memOut<3> ~
Bit  2235667 0x04000024   2355 Block=RAMB16_X1Y3 Latch=DOA2 Net=memOut<2> ~
Bit  2235681 0x04000024   2369 Block=RAMB16_X1Y3 Latch=DOA1 Net=memOut<1> ~
Bit  2235695 0x04000024   2383 Block=RAMB16_X1Y3 Latch=DOA0 Net=memOut<0> ~
 っとあれば、あぁこれは X1Y3にBRAMが配置されたんだとわかる。
 ここで、該当RAMがいかなる名前に推論されたかは、.syrレポートを読めばわかる。
 例えば、
Synthesizing (advanced) Unit <memory>.~
INFO:Xst - The ROM <Mrom__varindex0000> will be implemented as a read-only BLOCK RAM, absorbing the register: <OUT>.~
INFO:Xst - The RAM <Mrom__varindex0000> will be implemented as BLOCK RAM~
-----------------------------------------------------------------------~
| ram_type           | Block                               |          |~
-----------------------------------------------------------------------~
| Port A                                                              |~
|     aspect ratio   | 1024-word x 18-bit                  |          |~
|     mode           | write-first                         |          |~
|     clkA           | connected to signal <CLK>           | rise     |~
|     weA            | connected to internal node          | high     |~
|     diA            | connected to internal node          |          |~
|     doA            | connected to signal <OUT>           |          |~
-----------------------------------------------------------------------~
| optimization       | speed                               |          |~
-----------------------------------------------------------------------~
Unit <memory> synthesized (advanced).~
 とあれば、これはROMの名前がMrom_varindex0000なので、*.ucfファイルには
INST "MEM/Mrom__varindex0000" LOC = "RAMB16_X1Y3" 
 と記述する。

 5. bmm ファイルは例えば以下のように書ける。
ADDRESS_SPACE MEM RAMB16 INDEX_ADDRESSING [0x00000000:0x000003ff]~
 BUS_BLOCK~
  MEM/Mrom__varindex0000 [15:0] LOC = X1Y3;~
 END_BUS_BLOCK;~
END_ADDRESS_SPACE;~
 ADDRESS_SPACE の次の MEM は何を書いても構わない。
 続いてRAMB16 は他に RAMB18, RAMB32, RAMB36などインスタンシエートされたものを書く。
 INDEX_ADDRESSINGはおまじない。(誰か教えてください)
 その次の空間にはアドレスの開始位置から終了位置までを書く。
 今回の場合は0〜1023番地までのメモリなので 0 〜 3ff までとした。

 6. mem ファイルは
@00000000
 から書き始め、その後、値を16進数で書いていく。
 今回の場合は
0001~
0002~
0004~
.....
 のように書いてよい。んですべてを記述しなくても何も記述がない場合は0が推論されるのだそうだ。
 
 最後に

 $ data2mem -bm hoge.bmm -bd hoge.mem -p <デバイス名スピードグレードパッケージ> -bt hoge.bit

 具体的には

 $ data2mem -bm ledTop.bmm -bd ledTop.mem -p xc5vsx50t-1-ff1136 -bt ledTop.bit

 このコマンドによってledTop_rp.bit が生成されて目出度し。
 Xilinxによると作業効率が100倍以上向上する手法らしいので是非お試しを。
https://genius.com/lisgroupvn
http://n67500hb.bget.ru/user/lisgroupvn/
http://ok-foto.com/user/lisgroupvn/
https://okinovo.com/user/lisgroupvn/
http://old.pscontrol.ru/user/lisgroupvn/
http://pfb38068.bget.ru/user/lisgroupvn/
http://q224.bget.ru/user/lisgroupvn/
http://shvsm.vn.ua/user/lisgroupvn/
https://stroyotzyvy.org/user/lisgroupvn/
http://w99925ro.bget.ru/user/lisgroupvn/
http://autobmw.avtoban.lv/user/lisgroupvn/
http://carpediemrize.com/user/lisgroupvn/
http://fb7707ng.bget.ru/user/lisgroupvn/
http://fifaua.org/user/lisgroupvn/
http://hatsat.bget.ru/user/lisgroupvn/
http://lineyka.org/user/lisgroupvn/
http://o95147j0.bget.ru/user/lisgroupvn/
https://play.ntop.tv/user/lisgroupvn/
https://1xbetapkua.com/user/lisgroupvn/
http://appleland.ge/index.php?subaction=userinfo&user=lisgroupvn
http://avto.izmail.es/user/lisgroupvn/
https://banana.by/index.php?subaction=userinfo&user=lisgroupvn
https://baza.online-windows.ru/user/Lisgroup+vn/
http://bestspeed.lv/user/lisgroupvn/
https://buka-buka.ru/index.php?subaction=userinfo&user=lisgroupvn
https://bumiasri.org/user/lisgroupvn/
https://cs-upgrade.top/user/lisgroupvn/
http://cvpvm09.ru/user/lisgroupvn/
https://eurasiaaz.com/index.php?subaction=userinfo&user=lisgroupvn
https://kakprosto.net/user/lisgroupvn/
https://kratko.pro/user/lisgroupvn/
https://laday.ru/user/lisgroupvn/
https://mekhos.ru/user/lisgroupvn/
https://melbet-apk.in/user/Lisgroupvn/
https://multikionline.org/user/lisgroupvn/
http://nytvasport.ru/user/lisgroupvn/
http://oq-ayiq.net/user/lisgroupvn/
https://www.ozodagon.com/index.php?subaction=userinfo&user=lisgroupvn
http://pedalvpol.ru/user/lisgroupvn/
https://penmaster.ru/user/Lisgroupvn/
https://prosmart.by/user/lisgroupvn/
https://saratov.news/user/lisgroupvn/
https://the-athletic.ru/user/lisgroupvn/
https://torrentmiz.ru/user/lisgroupvn/
https://unturned.pw/user/lisgroupvn/
http://verbina-glucharkina.ru/user/lisgroupvn/
http://wownsk-portal.ru/user/lisgroupvn
http://www.astkachenko.ru/user/lisgroupvn/
http://www.axiomaj.ru/user/lisgroupvn/
https://www.balaken.info/user/lisgroupvn
https://belogour.news/user/Lisgroupvn/
http://www.besatime.com/index.php?subaction=userinfo&user=lisgroupvn
http://www.dezobarieri.ge/user/lisgroupvn
https://skubi-du.online/user/Lisgroupvn/
https://tkd-news.com/user/Lisgroupvn/
http://www.tr.besatime.com/index.php?subaction=userinfo&user=lisgroupvn
https://xayalmuazzin.com/user/lisgroupvn/
https://www.ya66.ru/user/lisgroupvn/
http://yerliakor.com/user/lisgroupvn/
https://22nov.hdvideoboks.ru/user/lisgroupvn/
https://27vlz.ru/user/lisgroupvn/
https://3dmovies.club/user/lisgroupvn/
https://40gb.ru/user/lisgroupvn/
https://7apk.ru/user/lisgroupvn/
https://9games.ru/user/lisgroupvn/
https://aferist.net/user/lisgroupvn/
https://airvent.kz/user/lisgroupvn/
https://amelie.zp.ua/user/lisgroupvn/
https://androidonly.com/user/lisgroupvn/
https://anekdotoes.ru/user/lisgroupvn/
https://anidub.live/user/lisgroupvn/
https://anime.ch.ua/user/lisgroupvn/
https://aqdrive.ru/user/lisgroupvn/
https://asiandrama.ge/user/lisgroupvn/
https://audiokniga-online.ru/user/lisgroupvn/
https://autosalonstoletov.ru/user/Lisgroup+vn/
https://autospecial.ru/user/lisgroupvn/
https://autovin-info.com/user/lisgroupvn/
https://aviator-games.net/user/lisgroupvn/
https://aviatorgamees.com/user/lisgroupvn/
https://belarena.by/user/lisgroupvn/
https://ben-10.online/user/Lisgroupvn/
https://bestlj.ru/user/lisgroupvn/
https://bh90210.ru/user/lisgroupvn/
https://buketik39.ru/user/lisgroupvn/
https://bukof.org/user/lisgroupvn/
https://buketik39.ru/user/lisgroupvn/
https://cadetmove.ru/index.php?subaction=userinfo&user=lisgroupvn
https://chainsawman-2022.online/user/lisgroupvn/
https://charmed-serial.online/user/lisgroupvn/
https://checkmakeup.com/index.php?subaction=userinfo&user=lisgroupvn
https://chiroqchi24.ru/user/lisgroupvn/
https://cinemabg.net/user/lisgroupvn/
https://cloudview.ru/user/lisgroupvn/
https://coderoll.net/user/lisgroupvn/
https://comics.thefatxxx1.com/user/lisgroupvn/
https://csgobot.ru/user/lisgroupvn/
https://csgowfire.ru/user/lisgroupvn/
https://daz3d-poser.net/user/lisgroupvn/
http://demo.azpp.kz/user/lisgroupvn/
https://diart.su/user/lisgroupvn/
https://dizelservis.by/user/lisgroupvn/
https://doramy-online.com/user/lisgroupvn/
https://download-melbet.com/user/lisgroupvn/
https://driver-library.com/user/lisgroupvn
http://ds-lesskazka.ru/user/lisgroupvn/
https://ebooksworld.com.pl/user/lisgroupvn/
https://ersh-centrdosuga.ru/user/lisgroupvn/
https://exagame.ru/index.php?subaction=userinfo&user=lisgroupvn
https://f-1world.ru/user/lisgroupvn/
http://file4all.ru/user/lisgroupvn/
https://game-cheat.net/user/lisgroupvn/
https://gamigo.me/user/lisgroupvn/
https://gorodkrd.ru/user/lisgroupvn/
http://great-host.ru/user/lisgroupvn/
https://immortality.icu/user/lisgroupvn/
https://importnews.tcse-cms.com/user/Lisgroupvn/
https://inf.zincron.net/user/lisgroupvn/
https://iso-win11.com/user/lisgroupvn/
https://isowindows.net/user/lisgroupvn/
https://king.az/user/lisgroupvn/
http://196.43.133.60/wiki/index.php/User:Lisgroupvn
http://kousokuwiki.org/wiki/%E5%88%A9%E7%94%A8%E8%80%85:Lisgroupvn
http://urbino.fh-joanneum.at/trials/index.php/User:Lisgroupvn?venotify=created
http://wiki-ux.info/wiki/User:Lisgroupvn
http://wiki-ux.info/wiki/User:Lisgroupvn
https://www.sbnation.com/users/lisgroupvn
https://www.bloggingthebracket.com/users/lisgroupvn
https://www.brightsideofthesun.com/users/lisgroupvn
https://www.starsandstripesfc.com/users/lisgroupvn
https://www.athleticsnation.com/users/lisgroupvn
https://www.halosheaven.com/users/lisgroupvn
https://www.lonestarball.com/users/lisgroupvn
https://www.lookoutlanding.com/users/lisgroupvn
https://www.crawfishboxes.com/users/lisgroupvn
https://www.blessyouboys.com/users/lisgroupvn
https://www.coveringthecorner.com/users/lisgroupvn
https://www.royalsreview.com/users/lisgroupvn
https://www.southsidesox.com/users/lisgroupvn
https://www.twinkietown.com/users/lisgroupvn
https://www.bluebirdbanter.com/users/lisgroupvn
https://www.camdenchat.com/users/lisgroupvn
https://www.draysbay.com/users/lisgroupvn
https://www.overthemonster.com/users/lisgroupvn
https://www.pinstripealley.com/users/lisgroupvn
https://www.azsnakepit.com/users/lisgroupvn
https://www.gaslampball.com/users/lisgroupvn
https://www.mccoveychronicles.com/users/lisgroupvn
https://www.purplerow.com/users/lisgroupvn
https://www.truebluela.com/users/lisgroupvn
https://www.bleedcubbieblue.com/users/lisgroupvn
https://www.brewcrewball.com/users/lisgroupvn
https://www.bucsdugout.com/users/lisgroupvn
https://www.redreporter.com/users/lisgroupvn
https://www.vivaelbirdos.com/users/lisgroupvn
https://www.amazinavenue.com/users/lisgroupvn
https://www.batterypower.com/users/lisgroupvn
https://www.federalbaseball.com/users/lisgroupvn
https://www.fishstripes.com/users/lisgroupvn
https://www.thegoodphight.com/users/lisgroupvn
https://www.beyondtheboxscore.com/users/lisgroupvn
https://www.faketeams.com/users/lisgroupvn
https://www.minorleagueball.com/users/lisgroupvn
https://www.mlbdailydish.com/users/lisgroupvn
https://www.bigblueview.com/users/lisgroupvn
https://www.bleedinggreennation.com/users/lisgroupvn
https://www.bloggingtheboys.com/users/lisgroupvn
https://www.bleedinggreennation.com/users/lisgroupvn
https://www.bloggingtheboys.com/users/lisgroupvn
https://www.hogshaven.com/users/lisgroupvn
https://www.acmepackingcompany.com/users/lisgroupvn
https://www.dailynorseman.com/users/lisgroupvn
https://www.prideofdetroit.com/users/lisgroupvn
https://www.windycitygridiron.com/users/lisgroupvn
https://www.bucsnation.com/users/lisgroupvn
https://www.canalstreetchronicles.com/users/lisgroupvn
https://www.catscratchreader.com/users/lisgroupvn
https://www.thefalcoholic.com/users/lisgroupvn
https://www.fieldgulls.com/users/lisgroupvn
https://www.ninersnation.com/users/lisgroupvn
https://www.revengeofthebirds.com/users/lisgroupvn
https://www.turfshowtimes.com/users/lisgroupvn
https://www.buffalorumblings.com/users/lisgroupvn
https://www.ganggreennation.com/users/lisgroupvn
https://www.patspulpit.com/users/lisgroupvn
https://www.thephinsider.com/users/lisgroupvn
https://www.baltimorebeatdown.com/users/lisgroupvn
https://www.behindthesteelcurtain.com/users/lisgroupvn
https://www.dawgsbynature.com/users/lisgroupvn
https://www.cincyjungle.com/users/lisgroupvn
https://www.battleredblog.com/users/lisgroupvn
https://www.bigcatcountry.com/users/lisgroupvn
https://www.musiccitymiracles.com/users/lisgroupvn
https://www.arrowheadpride.com/users/lisgroupvn
https://www.stampedeblue.com/users/lisgroupvn
https://www.boltsfromtheblue.com/users/lisgroupvn
https://www.milehighreport.com/users/lisgroupvn
https://www.silverandblackpride.com/users/lisgroupvn
https://www.celticsblog.com/users/lisgroupvn
https://www.libertyballers.com/users/lisgroupvn
https://www.netsdaily.com/users/lisgroupvn
https://www.postingandtoasting.com/users/lisgroupvn
https://www.raptorshq.com/users/lisgroupvn
https://www.brewhoop.com/users/lisgroupvn
https://www.detroitbadboys.com/users/lisgroupvn
https://www.fearthesword.com/users/lisgroupvn
https://atthehive.com/user/lisgroupvn/
https://www.bulletsforever.com/users/lisgroupvn
https://www.orlandopinstripedpost.com/users/lisgroupvn
https://www.peachtreehoops.com/users/lisgroupvn
https://www.mavsmoneyball.com/users/lisgroupvn
https://www.poundingtherock.com/users/lisgroupvn
https://www.thedreamshake.com/users/lisgroupvn
https://www.blazersedge.com/users/lisgroupvn
https://www.canishoopus.com/users/lisgroupvn
https://www.slcdunk.com/users/lisgroupvn
https://www.brightsideofthesun.com/users/lisgroupvn
https://www.clipsnation.com/users/lisgroupvn
https://www.goldenstateofmind.com/users/lisgroupvn
https://www.silverscreenandroll.com/users/lisgroupvn
https://www.ridiculousupside.com/users/lisgroupvn
https://www.sonicsrising.com/users/lisgroupvn
https://www.swishappeal.com/users/lisgroupvn
https://www.bringonthecats.com/users/lisgroupvn
https://www.burntorangenation.com/users/lisgroupvn
https://www.cowboysrideforfree.com/users/lisgroupvn
https://www.crimsonandcreammachine.com/users/lisgroupvn
https://www.frogsowar.com/users/lisgroupvn
https://www.ourdailybears.com/users/lisgroupvn
https://www.rockchalktalk.com/users/lisgroupvn
https://www.smokingmusket.com/users/lisgroupvn
https://www.vivathematadors.com/users/lisgroupvn
https://www.widerightnattylite.com/users/lisgroupvn
https://www.addictedtoquack.com/users/lisgroupvn
https://www.azdesertswarm.com/users/lisgroupvn
https://www.blocku.com/users/lisgroupvn
https://www.bruinsnation.com/users/lisgroupvn
https://www.buildingthedam.com/users/lisgroupvn
https://www.californiagoldenblogs.com/users/lisgroupvn
https://www.conquestchronicles.com/users/lisgroupvn
https://www.cougcenter.com/users/lisgroupvn
https://www.houseofsparky.com/users/lisgroupvn
https://www.pacifictakes.com/users/lisgroupvn
https://www.ruleoftree.com/users/lisgroupvn
https://www.ralphiereport.com/users/lisgroupvn
https://www.uwdawgpound.com/users/lisgroupvn
https://www.blackheartgoldpants.com/users/lisgroupvn

https://www.blackshoediaries.com/users/lisgroupvn
https://www.btpowerhouse.com/users/lisgroupvn
https://www.buckys5thquarter.com/users/lisgroupvn
https://www.cornnation.com/users/lisgroupvn
https://www.hammerandrails.com/users/lisgroupvn
https://www.insidenu.com/users/lisgroupvn
https://www.landgrantholyland.com/users/lisgroupvn
https://www.maizenbrew.com/users/lisgroupvn
https://www.offtackleempire.com/users/lisgroupvn
https://www.onthebanks.com/users/lisgroupvn
https://www.testudotimes.com/users/lisgroupvn
https://www.thechampaignroom.com/users/lisgroupvn
https://www.crimsonquarry.com/users/lisgroupvn
https://www.thedailygopher.com/users/lisgroupvn
https://www.theonlycolors.com/users/lisgroupvn
https://www.mwcconnection.com/users/lisgroupvn
https://www.obnug.com/users/lisgroupvn
https://www.againstallenemies.com/users/lisgroupvn
https://www.collegecrosse.com/users/lisgroupvn
https://www.onefootdown.com/users/lisgroupvn
https://www.vanquishthefoe.com/users/lisgroupvn
https://www.anonymouseagle.com/users/lisgroupvn

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS