| 26 | |
| 27 | Finally you will have to set your soclib.conf file to compile correctly the ARM7TDMI component. Here you have an example of configuration: |
| 28 | {{{ |
| 29 | # -*- python -*- |
| 30 | |
| 31 | def _platform(): |
| 32 | """ |
| 33 | Retrieves platform information and make it look-like systemc's |
| 34 | lib-xxx thing. |
| 35 | |
| 36 | Working so far with: |
| 37 | * linux |
| 38 | * darwin |
| 39 | """ |
| 40 | import sys |
| 41 | pf = sys.platform |
| 42 | # Strip numeric suffix from platform name |
| 43 | while pf[-1] in "0123456789": |
| 44 | pf = pf[:-1] |
| 45 | |
| 46 | remap_pf = {'darwin':'macosx'} |
| 47 | if pf in remap_pf: |
| 48 | pf = remap_pf[pf] |
| 49 | return pf |
| 50 | |
| 51 | config.systemc = Config( |
| 52 | base = config.systemc, |
| 53 | dir = "${SYSTEMC}", |
| 54 | os = _platform(), |
| 55 | ) |
| 56 | |
| 57 | config.my_toolchain = Config( |
| 58 | base = config.toolchain, |
| 59 | cflags = ['-ggdb', '-DSOCLIB', '-D__STDC_CONSTANT_MACROS', '-Wall', '-Wno-pmf-conversions'], |
| 60 | ) |
| 61 | |
| 62 | config.default = Config( |
| 63 | base = config.build_env, |
| 64 | systemc = config.systemc, |
| 65 | toolchain = config.my_toolchain, |
| 66 | repos = "/tmp/build/sc", |
| 67 | ) |
| 68 | }}} |
| 69 | = Component definition = |
| 70 | |
| 71 | Available in source:trunk/soclib/soclib/lib/arm7tdmi/metadata/arm7tdmi.sd |
| 72 | |
| 73 | == Usage == |
| 74 | |
| 75 | ARM7TDMI has no parameters. |
| 76 | {{{ |
| 77 | Uses('iss_wrapper', iss_t = 'common:arm7tdmi') |
| 78 | }}} |