ASAP Top

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

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

とりあえず何でもよし。 例えば僕は次の感じで書きました。

filememory.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://newsnviews.larsentoubro.com/Lists/Comments/ViewComment.aspx?ID=810 https://kdandan.blogspot.com/2023/12/orchid-restaurant-ajman.html https://docs.google.com/document/d/1rdp_fC1xT-xUTN8p0V_ZGgxBgWgB5EPpaeR9nur8gyE/edit?usp=sharing https://sites.google.com/view/orchidrestaurant/home https://www.slideshare.net/orchidrestaurant5 https://peatix.com/user/20146006/view https://jsfiddle.net/orchidrestaurant/szcadbhL/ https://www.4shared.com/u/Ikm_-Z-O/orchidrestaurant5.html https://considerate-onion-gm3nmq.mystrikingly.com/ https://www.tripadvisor.com/Profile/orchidrestaurant5 https://www.pexels.com/@orchid-restaurant-831723850/ https://jobs.thetab.com/profiles/4047112-orchid-restaurant https://www.coursera.org/user/a87b4506108387e557b95f80a0c7904a https://www.reddit.com/user/orchidrestaurant https://giphy.com/channel/orchidrestaurant https://www.evernote.com/shard/s552/sh/c08fb580-1bc0-84d0-b4d7-839b4c60c4f7/wphMVKLV3JeAMHf3Sw6eOjN995wC4k6qMKUvvVxUGZjWB_dHAzuQdjoxRg https://substack.com/profile/187315697-orchid-restaurant?utm_source=user-menu https://www.diigo.com/item/note/apwxj/c67e?k=e3e7a61b362f08ae5b66201a6a42623e https://hub.docker.com/u/orchidrestaurant https://orchidrestaurant5.wordpress.com/2023/12/05/6/ https://www.instapaper.com/p/13496874 https://digimac-technologies.mn.co/members/20539989 https://network-89730.mn.co/members/20540003 https://australian-school-holidays.mn.co/members/20540020 https://thinktrain.mn.co/members/20540022 https://regenerative-orthopedics-and-sports-medi.mn.co/members/20539993 https://snapped.mn.co/members/20540024 https://drujrake.mn.co/members/20540026 https://network-30.mn.co/members/20540027 https://wellbeingmatters.mn.co/members/20540030 https://www.metal-archives.com/users/orchidrestaurant https://island-card-451.notion.site/af3e502513b24e0583d16aa9bcf231cb?pvs=4 https://slides.com/orchidrestaurant https://www.pixiv.net/en/users/101115349 https://pxhere.com/en/photographer/4136898 https://als-organization-4.gitbook.io/untitled-11/ https://www.gta5-mods.com/users/orchidrestaurant https://www.adsoftheworld.com/users/25053ddb-543b-4842-9e46-ac816def6c79 https://pantip.com/profile/7874526#topics https://www.elephantjournal.com/profile/orchidrestaurant5/ https://worldcosplay.net/member/1673494 https://camp-fire.jp/profile/orchidrestaurant https://onmogul.com/orchidrestaurant https://penzu.com/p/200620122cb93ce0 https://www.longisland.com/profile/orchidrestaurant5 https://www.myminifactory.com/stories/orchid-restaurant-ajman-656efa903df03 https://community.atlassian.com/t5/user/viewprofilepage/user-id/5379572 https://community.tableau.com/s/profile/0058b00000I2MPO https://public.tableau.com/app/profile/orchid.restaurant/vizzes https://www.intensedebate.com/people/orchidrestauran https://www.zazzle.com/mbr/238755936387557727 https://heylink.me/orchidrestaurant/ https://visual.ly/users/orchidrestaurant/portfolio https://orchidrestaurant.contently.com/ https://app.roll20.net/users/12719515/orchid-r https://www.bitsdujour.com/profiles/Yo7GIN https://files.fm/orchidrestaurant5 https://chart-studio.plotly.com/~orchidrestaurant https://coolors.co/u/orchid_restaurant https://telegra.ph/Orchid-Restaurant---Ajman-12-05 https://www.speedrun.com/users/orchidrestaurant https://www.divephotoguide.com/user/orchidrestaurant https://www.sqlservercentral.com/forums/user/orchidrestaurant https://www.credly.com/users/orchidrestaurant http://id.kaywa.com/orchidrestaurant https://learningapps.org/my.php https://orchidrest.livejournal.com/profile https://www.renderosity.com/users/id:1430675 https://orchidrestaurant.gallery.ru/ https://notebook.zohopublic.com/public/notes/oizih4d0f14fe1f7748128c24e732dbaf8fd0 https://blip.fm/profile/orchidrestaurant/playlist https://ioby.org/users/orchidrestaurant5746004 https://www.inkitt.com/orchidrestaurant https://micro.blog/orchidrestaurant https://skitterphoto.com/photographers/79151/orchid-restaurant http://artistecard.com/orchidrestaurant5 https://www.outdoorproject.com/users/orchid-restaurant https://social.msdn.microsoft.com/Profile/Orchid%20Restaurant https://social.technet.microsoft.com/profile/Orchid%20Restaurant https://social.microsoft.com/profile/Orchid%20Restaurant https://solo.to/orchidrestaurant https://starity.hu/profil/410816-orchidrestaurant/ https://www.halosheaven.com/users/bestthings https://www.lookoutlanding.com/users/bestthings https://www.crawfishboxes.com/users/bestthings https://www.blessyouboys.com/users/bestthings https://www.letsgotribe.com/users/bestthings https://www.twinkietown.com/users/bestthings https://www.silverscreenandroll.com/users/bestthings https://www.royalsreview.com/users/bestthings https://www.catscratchreader.com/users/bestthings https://www.hothothoops.com/users/bestthings https://www.lonestarball.com/users/bestthings https://www.bluebirdbanter.com/users/bestthings https://www.camdenchat.com/users/bestthings https://www.draysbay.com/users/bestthings https://www.overthemonster.com/users/bestthings https://www.pinstripealley.com/users/bestthings https://www.azsnakepit.com/users/bestthings https://www.gaslampball.com/users/bestthings https://www.mccoveychronicles.com/users/bestthings https://www.purplerow.com/users/bestthings https://www.truebluela.com/users/bestthings https://www.bleedcubbieblue.com/users/bestthings https://www.southsidesox.com/users/bestthings https://www.redreporter.com/users/bestthings https://www.vivaelbirdos.com/users/bestthings https://www.amazinavenue.com/users/bestthings https://www.federalbaseball.com/users/bestthings https://www.managingmadrid.com/users/bestthings https://www.talkingchop.com/users/bestthings https://www.thegoodphight.com/users/bestthings https://www.beyondtheboxscore.com/users/bestthings https://www.faketeams.com/users/bestthings https://www.minorleagueball.com/users/bestthings https://www.intothecalderon.com/users/bestthings https://www.villarrealusa.com/users/bestthings https://www.blackwhitereadallover.com/users/bestthings https://www.chiesaditotti.com/users/bestthings https://www.serpentsofmadonnina.com/users/bestthings https://www.mlbdailydish.com/users/bestthings https://www.onceametro.com/users/bestthings https://www.rslsoapbox.com/users/bestthings https://www.sounderatheart.com/users/bestthings https://www.acmepackingcompany.com/users/bestthings https://www.dailynorseman.com/users/bestthings https://www.prideofdetroit.com/users/bestthings https://www.windycitygridiron.com/users/bestthings https://www.blogabull.com/users/bestthings https://www.canalstreetchronicles.com/users/bestthings https://www.thefalcoholic.com/users/bestthings https://www.fieldgulls.com/users/bestthings https://www.brewhoop.com/users/bestthings https://www.revengeofthebirds.com/users/bestthings https://www.turfshowtimes.com/users/bestthings https://www.buffalorumblings.com/users/bestthings https://www.ganggreennation.com/users/bestthings https://www.patspulpit.com/users/bestthings https://www.thephinsider.com/users/bestthings https://www.behindthesteelcurtain.com/users/bestthings https://www.cincyjungle.com/users/bestthings https://www.dawgsbynature.com/users/bestthings https://www.fearthesword.com/users/bestthings https://www.hottimeinoldtown.com/users/bestthings https://www.bigcatcountry.com/users/bestthings https://www.musiccitymiracles.com/users/bestthings https://www.stampedeblue.com/users/bestthings https://www.arrowheadpride.com/users/bestthings https://www.boltsfromtheblue.com/users/bestthings https://www.milehighreport.com/users/bestthings https://www.silverandblackpride.com/users/bestthings https://www.celticsblog.com/users/bestthings https://www.libertyballers.com/users/bestthings https://www.thebluetestament.com/users/bestthings https://www.netsdaily.com/users/bestthings https://www.postingandtoasting.com/users/bestthings https://www.indycornrows.com/users/bestthings https://www.atthehive.com/users/bestthings https://www.bulletsforever.com/users/bestthings https://www.detroitbadboys.com/users/bestthings https://www.mavsmoneyball.com/users/bestthings https://www.poundingtherock.com/users/bestthings https://www.bringonthecats.com/users/bestthings https://www.orlandopinstripedpost.com/users/bestthings https://www.peachtreehoops.com/users/bestthings https://www.grizzlybearblues.com/users/bestthings https://www.thebirdwrites.com/users/bestthings https://www.blazersedge.com/users/bestthings https://www.canishoopus.com/users/bestthings https://www.denverstiffs.com/users/bestthings https://www.slcdunk.com/users/bestthings https://www.welcometoloudcity.com/users/bestthings https://www.brightsideofthesun.com/users/bestthings https://www.goldenstateofmind.com/users/bestthings https://www.thedreamshake.com/users/bestthings https://www.silverscreenandroll.com/users/bestthings https://www.ridiculousupside.com/users/bestthings https://www.sonicsrising.com/users/bestthings https://www.burntorangenation.com/users/bestthings https://www.cowboysrideforfree.com/users/bestthings https://www.smokingmusket.com/users/bestthings https://www.vivathematadors.com/users/bestthings https://www.blueshirtbanter.com/users/bestthings https://www.swishappeal.com/users/bestthings https://www.widerightnattylite.com/users/bestthings https://www.addictedtoquack.com/users/bestthings https://www.crimsonandcreammachine.com/users/bestthings https://www.frogsowar.com/users/bestthings https://www.ourdailybears.com/users/bestthings https://www.rockchalktalk.com/users/bestthings https://www.azdesertswarm.com/users/bestthings https://www.cougcenter.com/users/bestthings https://www.houseofsparky.com/users/bestthings https://www.pacifictakes.com/users/bestthings https://www.ruleoftree.com/users/bestthings https://www.ralphiereport.com/users/bestthings https://www.uwdawgpound.com/users/bestthings https://www.blackheartgoldpants.com/users/bestthings https://www.conquestchronicles.com/users/bestthings https://www.hammerandrails.com/users/bestthings https://www.insidenu.com/users/bestthings https://www.landgrantholyland.com/users/bestthings https://www.maizenbrew.com/users/bestthings https://www.offtackleempire.com/users/bestthings https://www.onthebanks.com/users/bestthings https://www.wingingitinmotown.com/users/bestthings https://www.allaboutthejersey.com/users/bestthings https://www.nucksmisconduct.com/users/bestthings https://www.broadstreethockey.com/users/bestthings https://www.mountroyalsoccer.com/users/bestthings https://www.japersrink.com/users/bestthings https://www.lighthousehockey.com/users/bestthings https://www.pensburgh.com/users/bestthings https://www.testudotimes.com/users/bestthings https://www.thechampaignroom.com/users/bestthings https://www.crimsonquarry.com/users/bestthings https://www.aerocivil.gov.co/atencion/participacion/encuesta/Lists/EncuestaSatisfaccionTransporteAereo/DispForm.aspx?ID=159


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS