Changes between Version 6 and Version 7 of Component/ARM7TDMI


Ignore:
Timestamp:
Jun 13, 2008, 1:08:31 PM (16 years ago)
Author:
gracia
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Component/ARM7TDMI

    v6 v7  
    1111Currently it only exists in bigendian form.
    1212
    13 = Component definition =
    14 
    15 Available in source:trunk/soclib/soclib/lib/arm7tdmi/metadata/arm7tdmi.sd
    16 
    17 == Usage ==
    18 
    19 ARM7TDMI has no parameters.
    20 {{{
    21 Uses('iss_wrapper', iss_t = 'common:arm7tdmi')
    22 }}}
     13= IMPORTANT: steps to apply before using the ARM7TDMI =
    2314
    2415Before compiling any SoClib simulator using the ARM7TDMI you will need to download the UNISIM ([http:\\www.unisim.org]) library (well, just a piece of it, the unisim_lib).
     
    3324 * svn import https://unisim.org/svn/devel/unisim_tools
    3425 * svn import https://unisim.org/svn/devel/unisim_simulators
     26
     27Finally 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
     31def _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
     51config.systemc = Config(
     52        base = config.systemc,
     53        dir = "${SYSTEMC}",
     54        os = _platform(),
     55        )
     56
     57config.my_toolchain = Config(
     58        base = config.toolchain,
     59        cflags = ['-ggdb', '-DSOCLIB', '-D__STDC_CONSTANT_MACROS', '-Wall', '-Wno-pmf-conversions'],
     60        )
     61
     62config.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
     71Available in source:trunk/soclib/soclib/lib/arm7tdmi/metadata/arm7tdmi.sd
     72
     73== Usage ==
     74
     75ARM7TDMI has no parameters.
     76{{{
     77Uses('iss_wrapper', iss_t = 'common:arm7tdmi')
     78}}}
    3579
    3680= ARM7TDMI Processor  ISS  Implementation =