config: ruby: rename _cpu_ruby_ports to _cpu_ports
authorNilay Vaish <nilay@cs.wisc.edu>
Thu, 20 Mar 2014 14:14:14 +0000 (09:14 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Thu, 20 Mar 2014 14:14:14 +0000 (09:14 -0500)
12 files changed:
configs/example/fs.py
configs/example/ruby_direct_test.py
configs/example/ruby_mem_test.py
configs/example/ruby_network_test.py
configs/example/ruby_random_test.py
configs/example/se.py
configs/ruby/Ruby.py
tests/configs/memtest-ruby.py
tests/configs/pc-simple-timing-ruby.py
tests/configs/rubytest-ruby.py
tests/configs/simple-timing-mp-ruby.py
tests/configs/simple-timing-ruby.py

index 6c71ef43209527208d869ce3ce45db44e0f3fc96..584748299777966180d814a11670e3796d48f0ed 100644 (file)
@@ -149,18 +149,18 @@ def build_test_system(np):
             cpu.createThreads()
             cpu.createInterruptController()
 
-            cpu.icache_port = test_sys.ruby._cpu_ruby_ports[i].slave
-            cpu.dcache_port = test_sys.ruby._cpu_ruby_ports[i].slave
+            cpu.icache_port = test_sys.ruby._cpu_ports[i].slave
+            cpu.dcache_port = test_sys.ruby._cpu_ports[i].slave
 
             if buildEnv['TARGET_ISA'] == "x86":
-                cpu.itb.walker.port = test_sys.ruby._cpu_ruby_ports[i].slave
-                cpu.dtb.walker.port = test_sys.ruby._cpu_ruby_ports[i].slave
+                cpu.itb.walker.port = test_sys.ruby._cpu_ports[i].slave
+                cpu.dtb.walker.port = test_sys.ruby._cpu_ports[i].slave
 
-                cpu.interrupts.pio = test_sys.ruby._cpu_ruby_ports[i].master
-                cpu.interrupts.int_master = test_sys.ruby._cpu_ruby_ports[i].slave
-                cpu.interrupts.int_slave = test_sys.ruby._cpu_ruby_ports[i].master
+                cpu.interrupts.pio = test_sys.ruby._cpu_ports[i].master
+                cpu.interrupts.int_master = test_sys.ruby._cpu_ports[i].slave
+                cpu.interrupts.int_slave = test_sys.ruby._cpu_ports[i].master
 
-            test_sys.ruby._cpu_ruby_ports[i].access_phys_mem = True
+            test_sys.ruby._cpu_ports[i].access_phys_mem = True
 
         # Create the appropriate memory controllers
         # and connect them to the IO bus
index f511b0139808ca1779c05efe2d067e86fff27c1b..36314fbfb39724c5692031bed0cf5a6b445b6f26 100644 (file)
@@ -115,9 +115,9 @@ Ruby.create_system(options, system)
 system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
                                         voltage_domain = system.voltage_domain)
 
-assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
+assert(options.num_cpus == len(system.ruby._cpu_ports))
 
-for ruby_port in system.ruby._cpu_ruby_ports:
+for ruby_port in system.ruby._cpu_ports:
     #
     # Tie the ruby tester ports to the ruby cpu ports
     #
index 064140064f80e9fe073802efb01da61d0b70f656..99f6f4a09b7e392b5984ddbad0f21042c49b2f5e 100644 (file)
@@ -144,26 +144,26 @@ system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
 #
 system.ruby.randomization = True
  
-assert(len(cpus) == len(system.ruby._cpu_ruby_ports))
+assert(len(cpus) == len(system.ruby._cpu_ports))
 
 for (i, cpu) in enumerate(cpus):
     #
     # Tie the cpu memtester ports to the correct system ports
     #
-    cpu.test = system.ruby._cpu_ruby_ports[i].slave
+    cpu.test = system.ruby._cpu_ports[i].slave
     cpu.functional = system.funcbus.slave
 
     #
     # Since the memtester is incredibly bursty, increase the deadlock
     # threshold to 5 million cycles
     #
-    system.ruby._cpu_ruby_ports[i].deadlock_threshold = 5000000
+    system.ruby._cpu_ports[i].deadlock_threshold = 5000000
 
     #
     # Ruby doesn't need the backing image of memory when running with
     # the tester.
     #
-    system.ruby._cpu_ruby_ports[i].access_phys_mem = False
+    system.ruby._cpu_ports[i].access_phys_mem = False
 
 for (i, dma) in enumerate(dmas):
     #
index e1ec325bb3d8a52ef6f43686bb15a80848513e4f..b9ca6ddf0c0bf46dc061b98d0e0eb87274c1b4c9 100644 (file)
@@ -120,7 +120,7 @@ system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
                                         voltage_domain = system.voltage_domain)
 
 i = 0
-for ruby_port in system.ruby._cpu_ruby_ports:
+for ruby_port in system.ruby._cpu_ports:
      #
      # Tie the cpu test ports to the ruby cpu port
      #
index 24c172b28a6551900753d2f34bf681525889c609..32d5cf34d8c2697bc44901d1e229a8d95ce4c3c1 100644 (file)
@@ -112,9 +112,9 @@ Ruby.create_system(options, system)
 system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
                                         voltage_domain = system.voltage_domain)
 
-assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
+assert(options.num_cpus == len(system.ruby._cpu_ports))
 
-tester.num_cpus = len(system.ruby._cpu_ruby_ports)
+tester.num_cpus = len(system.ruby._cpu_ports)
 
 #
 # The tester is most effective when randomization is turned on and
@@ -122,7 +122,7 @@ tester.num_cpus = len(system.ruby._cpu_ruby_ports)
 #
 system.ruby.randomization = True
 
-for ruby_port in system.ruby._cpu_ruby_ports:
+for ruby_port in system.ruby._cpu_ports:
     #
     # Tie the ruby tester ports to the ruby cpu read and write ports
     #
index 34a3f045eafa7d9af4c8f210beae48aa64e10915..92a950319119d02c65b7148dc926a8e2ed6f9141 100644 (file)
@@ -233,10 +233,10 @@ if options.ruby:
                               null = True)
     options.use_map = True
     Ruby.create_system(options, system)
-    assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
+    assert(options.num_cpus == len(system.ruby._cpu_ports))
 
     for i in xrange(np):
-        ruby_port = system.ruby._cpu_ruby_ports[i]
+        ruby_port = system.ruby._cpu_ports[i]
 
         # Create the interrupt controller and connect its ports to Ruby
         # Note that the interrupt controller is always present but only
index 75b891b1fbe1cd48e2b6c25a3608468b8ae34c35..5e987f0ac756e91c9a2e5c1db466ccee613ca7f9 100644 (file)
@@ -200,6 +200,6 @@ def create_system(options, system, piobus = None, dma_ports = []):
             if buildEnv['TARGET_ISA'] == "x86":
                 cpu_seq.pio_slave_port = piobus.master
 
-    ruby._cpu_ruby_ports = cpu_sequencers
+    ruby._cpu_ports = cpu_sequencers
     ruby.num_of_sequencers = len(cpu_sequencers)
     ruby.random_seed    = options.random_seed
index 8535a19a45be0770c83c24c27df7929f5b195b49..071f3a7b57e33e6d3e043acb53854ec2a9f86827 100644 (file)
@@ -104,9 +104,9 @@ Ruby.create_system(options, system)
 system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
                                         voltage_domain = system.voltage_domain)
 
-assert(len(cpus) == len(system.ruby._cpu_ruby_ports))
+assert(len(cpus) == len(system.ruby._cpu_ports))
 
-for (i, ruby_port) in enumerate(system.ruby._cpu_ruby_ports):
+for (i, ruby_port) in enumerate(system.ruby._cpu_ports):
      #
      # Tie the cpu test and functional ports to the ruby cpu ports and
      # physmem, respectively
index 3d1b783248b7ec62ee8a35cc720a8b9086e92b3a..2ac571c83f0816e93e98f448b04f6d97fa2e5a33 100644 (file)
@@ -78,16 +78,16 @@ for (i, cpu) in enumerate(system.cpu):
     # create the interrupt controller
     cpu.createInterruptController()
     # Tie the cpu ports to the correct ruby system ports
-    cpu.icache_port = system.ruby._cpu_ruby_ports[i].slave
-    cpu.dcache_port = system.ruby._cpu_ruby_ports[i].slave
-    cpu.itb.walker.port = system.ruby._cpu_ruby_ports[i].slave
-    cpu.dtb.walker.port = system.ruby._cpu_ruby_ports[i].slave
-    cpu.interrupts.pio = system.ruby._cpu_ruby_ports[i].master
-    cpu.interrupts.int_master = system.ruby._cpu_ruby_ports[i].slave
-    cpu.interrupts.int_slave = system.ruby._cpu_ruby_ports[i].master
+    cpu.icache_port = system.ruby._cpu_ports[i].slave
+    cpu.dcache_port = system.ruby._cpu_ports[i].slave
+    cpu.itb.walker.port = system.ruby._cpu_ports[i].slave
+    cpu.dtb.walker.port = system.ruby._cpu_ports[i].slave
+    cpu.interrupts.pio = system.ruby._cpu_ports[i].master
+    cpu.interrupts.int_master = system.ruby._cpu_ports[i].slave
+    cpu.interrupts.int_slave = system.ruby._cpu_ports[i].master
 
     # Set access_phys_mem to True for ruby port
-    system.ruby._cpu_ruby_ports[i].access_phys_mem = True
+    system.ruby._cpu_ports[i].access_phys_mem = True
 
 system.physmem = [DDR3_1600_x64(range = r)
                   for r in system.mem_ranges]
index 9fe85d14f1582429891d139d537d1e8e9486c002..f2c88c92b654f5287859d39e8a9e6b0fba07d953 100644 (file)
@@ -92,7 +92,7 @@ Ruby.create_system(options, system)
 system.ruby.clk_domain = SrcClockDomain(clock = '1GHz',
                                         voltage_domain = system.voltage_domain)
 
-assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
+assert(options.num_cpus == len(system.ruby._cpu_ports))
 
 #
 # The tester is most effective when randomization is turned on and
@@ -100,7 +100,7 @@ assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
 #
 system.ruby.randomization = True
 
-for ruby_port in system.ruby._cpu_ruby_ports:
+for ruby_port in system.ruby._cpu_ports:
     #
     # Tie the ruby tester ports to the ruby cpu read and write ports
     #
index 835428c3be6d7f9e9c7ee8bfa01d0126070e85a8..f7dfb5c5c0e998a2c70cab5ca32e5d620fcacb36 100644 (file)
@@ -83,7 +83,7 @@ Ruby.create_system(options, system)
 # Create a separate clock domain for Ruby
 system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock)
 
-assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
+assert(options.num_cpus == len(system.ruby._cpu_ports))
 
 for (i, cpu) in enumerate(system.cpu):
     # create the interrupt controller
@@ -92,7 +92,7 @@ for (i, cpu) in enumerate(system.cpu):
     #
     # Tie the cpu ports to the ruby cpu ports
     #
-    cpu.connectAllPorts(system.ruby._cpu_ruby_ports[i])
+    cpu.connectAllPorts(system.ruby._cpu_ports[i])
 
 # -----------------------
 # run simulation
index 94cb15ed45f0b4ac81b33e2dea1f99f5c68bcf7c..90af9c9202ca7e616e4dd93d15e60fc68397dcea 100644 (file)
@@ -85,7 +85,7 @@ Ruby.create_system(options, system)
 system.ruby.clk_domain = SrcClockDomain(clock = options.ruby_clock,
                                         voltage_domain = system.voltage_domain)
 
-assert(len(system.ruby._cpu_ruby_ports) == 1)
+assert(len(system.ruby._cpu_ports) == 1)
 
 # create the interrupt controller
 cpu.createInterruptController()
@@ -94,7 +94,7 @@ cpu.createInterruptController()
 # Tie the cpu cache ports to the ruby cpu ports and
 # physmem, respectively
 #
-cpu.connectAllPorts(system.ruby._cpu_ruby_ports[0])
+cpu.connectAllPorts(system.ruby._cpu_ports[0])
 
 # -----------------------
 # run simulation