Changes between Version 7 and Version 8 of Soclib Cc/And Modelsim
- Timestamp:
- May 19, 2010, 10:44:42 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Soclib Cc/And Modelsim
v7 v8 53 53 # Definition of the compiler used for ModelSim-usable SoCLib components. 54 54 # We use sccom for components compilation and linkage, gcc/g++ for utilities 55 config. toolchain_sccom = Config(56 base= config.toolchain,55 config.modelsim_toolchain = Toolchain( 56 parent = config.toolchain, 57 57 # Must use this. 58 58 tool_map = { … … 74 74 # Definition of the ModelSim SystemC implementation. Must modify the 75 75 # path according to the ModelSim current installation. 76 config. systemc_sccom = Config(77 base = config.systemc,76 config.libsystemc_modelsim = Library( 77 name = 'systemc', 78 78 # This special vendor attributes enables some quirks in soclib-cc 79 vendor = ' sccom',79 vendor = 'modelsim', 80 80 # This is the path of the produced .o files when compiled with sccom. 81 81 # You have to try it by hand, and adapt 82 82 sc_workpath = "work/_sc/linux_gcc-4.1.2", 83 # Mandatory quirks 84 dir = "", 85 os = "", 83 # Empty useless variables 86 84 libs = [], 87 85 # cflags have to be deducted from actual invocation 88 86 # Try using sccom -v by hand 89 87 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'], 91 90 ) 92 91 93 92 # 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,93 config.modelsim = BuildEnv( 94 parent = config.build_env, 95 toolchain = config.modelsim_toolchain, 96 libraries = [config.libsystemc_modelsim], 98 97 # Where temporary files lies, beware that if you set a global path, 99 98 # you'll need a mechanism to make user-unique directories. … … 165 164 `.sd` metadata are needed (even for the VHDL/SystemC wrapper), see in tarball. 166 165 {{{ 167 $ soclib-cc -1 caba:system_driver -t sccom -v -o sccom-link.o166 $ soclib-cc -1 caba:system_driver -t modelsim -v -o sccom-link.o 168 167 }}} 169 168 * Open modelsim with the platform