| 1 | |
| 2 | = Creating a netlist = |
| 3 | |
| 4 | DSX may be used as a simple SoCLib netlister. This is trivial: |
| 5 | |
| 6 | Create your architecture as usual: |
| 7 | |
| 8 | {{{ |
| 9 | import dsx |
| 10 | import soclib |
| 11 | |
| 12 | arch = soclib.Architecture(…) |
| 13 | |
| 14 | mt = arch.create('common:mapping_table', 'mapping_table', …) |
| 15 | |
| 16 | vgmn = arch.create('caba:vci_vgmn', 'vgmn0', …) |
| 17 | |
| 18 | xcache = arch.create('caba:vci_xcache_wrapper', …) |
| 19 | |
| 20 | vgmn.to_initiator.new() // xcache.vci |
| 21 | |
| 22 | … |
| 23 | }}} |
| 24 | |
| 25 | = Calling the driver = |
| 26 | |
| 27 | Then use the PfDriver() on the architecture object: |
| 28 | |
| 29 | {{{ |
| 30 | driver = soclib.PfDriver() |
| 31 | |
| 32 | arch.generate(driver) |
| 33 | }}} |
| 34 | |
| 35 | You're done. You now have a topcell, the associated system driver, and DSX even called |
| 36 | soclib-cc for you. |
| 37 | |
| 38 | = Changing output name = |
| 39 | |
| 40 | As for other driver, you may change the output directory with the `outdir=` parameter: |
| 41 | |
| 42 | {{{ |
| 43 | driver = soclib.PfDriver( outdir = "my_platform" ) |
| 44 | }}} |