Changes between Version 7 and Version 8 of Soclib Cc/And Modelsim


Ignore:
Timestamp:
May 19, 2010, 10:44:42 PM (14 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Soclib Cc/And Modelsim

    v7 v8  
    5353# Definition of the compiler used for ModelSim-usable SoCLib components.
    5454# We use sccom for components compilation and linkage, gcc/g++ for utilities
    55 config.toolchain_sccom = Config(
    56         base = config.toolchain,
     55config.modelsim_toolchain = Toolchain(
     56        parent = config.toolchain,
    5757        # Must use this.
    5858        tool_map = {
     
    7474# Definition of the ModelSim SystemC implementation. Must modify the
    7575# path according to the ModelSim current installation.
    76 config.systemc_sccom = Config(
    77         base = config.systemc,
     76config.libsystemc_modelsim = Library(
     77        name = 'systemc',
    7878        # This special vendor attributes enables some quirks in soclib-cc
    79         vendor = 'sccom',
     79        vendor = 'modelsim',
    8080        # This is the path of the produced .o files when compiled with sccom.
    8181        # You have to try it by hand, and adapt
    8282        sc_workpath = "work/_sc/linux_gcc-4.1.2",
    83         # Mandatory quirks
    84         dir = "",
    85         os = "",
     83        # Empty useless variables
    8684        libs = [],
    8785        # cflags have to be deducted from actual invocation
    8886        # Try using sccom -v by hand
    8987        cflags = ['-I/users/soft/mentor/modelsim-6.5c/modeltech/include/systemc',
    90                   '-I/users/soft/mentor/modelsim-6.5c/modeltech/include'],
     88                  '-I/users/soft/mentor/modelsim-6.5c/modeltech/include',
     89                  '-I'+config.path+'/soclib/lib/include'],
    9190        )
    9291
    9392# Definition of a new build environment, which can be referenced with 'soclib-cc -t'
    94 config.sccom = Config(
    95         base = config.build_env,
    96         toolchain = config.toolchain_sccom,
    97         systemc = config.systemc_sccom,
     93config.modelsim = BuildEnv(
     94        parent = config.build_env,
     95        toolchain = config.modelsim_toolchain,
     96        libraries = [config.libsystemc_modelsim],
    9897        # Where temporary files lies, beware that if you set a global path,
    9998        # you'll need a mechanism to make user-unique directories.
     
    165164   `.sd` metadata are needed (even for the VHDL/SystemC wrapper), see in tarball.
    166165{{{
    167  $ soclib-cc -1 caba:system_driver -t sccom -v -o sccom-link.o
     166 $ soclib-cc -1 caba:system_driver -t modelsim -v -o sccom-link.o
    168167}}}
    169168 * Open modelsim with the platform