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 ini_file = file(os.path.join(options.outdir, 'config.ini'), 'w')
50 root.print_ini(ini_file)
51 ini_file.close() # close config.ini
52
53 # Initialize the global statistics
54 internal.stats.initSimStats()
55
56 # Create the C++ sim objects and connect ports
57 root.createCCObject()
58 root.connectPorts()
59
--- 127 unchanged lines hidden ---
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 ini_file = file(os.path.join(options.outdir, 'config.ini'), 'w')
50 root.print_ini(ini_file)
51 ini_file.close() # close config.ini
52
53 # Initialize the global statistics
54 internal.stats.initSimStats()
55
56 # Create the C++ sim objects and connect ports
57 root.createCCObject()
58 root.connectPorts()
59
--- 127 unchanged lines hidden ---