1# Copyright (c) 2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 32 unchanged lines hidden (view full) --- 41# The final hook to generate .ini files. Called from the user script 42# once the config is built. 43def instantiate(root): 44 # we need to fix the global frequency 45 ticks.fixGlobalFrequency() 46 47 root.unproxy_all() 48 |
49 if options.dump_config: 50 ini_file = file(os.path.join(options.outdir, options.dump_config), 'w') 51 root.print_ini(ini_file) 52 ini_file.close() |
53 54 # Initialize the global statistics 55 internal.stats.initSimStats() 56 57 # Create the C++ sim objects and connect ports 58 root.createCCObject() 59 root.connectPorts() 60 --- 127 unchanged lines hidden --- |