Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
| 1 | m1nor - Flash a file to M1 NOR partition selected by the file name |
| 2 | ================================================================== |
| 3 | |
| 4 | During software development, one often need to update only the |
| 5 | content of a single partition. reflash_m1.sh is a bit unwieldy |
| 6 | for this kind of task. |
| 7 | |
| 8 | I've written a small script called m1nor that selects the target |
| 9 | partition based on the file name. E.g., m1nor flickernoise.fbi |
| 10 | would update the regular Flickernoise partition. |
| 11 | |
| 12 | The matching algorithm checks the beginning of the file name, |
| 13 | so names like flickernoise-test.fbi would also work. Furthermore, |
| 14 | it checks the file extension, so if you try to flash flickernoise |
| 15 | (ELF, for debugging) or flickernoise.bin (an intermediate form |
| 16 | unsuitable for booting from NOR), it will politely refuse to do |
| 17 | so. |
| 18 | |
| 19 | You need to have fjmem.bit somwehere. It searches for it under |
| 20 | $HOME/.qi/milkymist/, where reflash_m1.sh caches it. You can also |
| 21 | specify the location directly by setting the environment variable |
| 22 | FJMEM_BIT. |
| 23 | |
| 24 | |
| 25 | xdltap - Route nets from inside the FPGA to I/O pads |
| 26 | ==================================================== |
| 27 | |
| 28 | xdltap adds routes from signals inside the FPGA to I/O pads. It |
| 29 | does this by converting the .ncd file generated by synthesis |
| 30 | |
| 31 | xdltap signal=output ... [xdl-file] |
| 32 | |
| 33 | The path to the signal to be tapped has to be fully qualified. |
| 34 | Note that not all signals are listed in the .pcf file. Some may |
| 35 | only show up in .xdl |
| 36 | |
| 37 | The output is the name of a global net that has to be connected |
| 38 | to an input (!) pad. |
| 39 | |
| 40 | Signal names containing < and > can be written with { and }, to |
| 41 | avoid extra escaping for the shell. |
| 42 | |
| 43 | Since xdl chokes on its own .xdl files, xdlfixes applies a number |
| 44 | of ugly hacks to either avoid errors or to propagate them to a |
| 45 | later stage, where they can be ignored. |
| 46 | |
| 47 | Example: |
| 48 | |
| 49 | map ... foo.ngd # generates foo.ncd |
| 50 | xdl -ncd2xdl foo.ncd # generates foo.xdl |
| 51 | xdltap usb/sie/rx_pending=exp{8} foo.xdl | xdlfixes >foo-dbg.xdl |
| 52 | xdl -xdl2ncd foo-dbg.xdl # generates foo-dbg.ncd |
| 53 | par ... foo-dbg.ncd ... |
| 54 |
Branches:
master
