Merge pull request #103 from sprado/master

tests.py and simple test fixed
This commit is contained in:
fzeder
2016-08-26 15:46:12 +02:00
committed by GitHub Enterprise
2 changed files with 12 additions and 9 deletions

View File

@@ -147,6 +147,9 @@ class DramConfig(object):
return self.clk*(self.burstLength - 1)
elif (self.memoryType == "DDR4"):
return self.clk*self.burstLength/self.dataRate
else: #DEFAULT
return self.clk*self.burstLength/self.dataRate
def getReadAccessTime(self):
return self.burstLength/self.dataRate * dramconfig.clk

View File

@@ -1,25 +1,25 @@
Info: /OSCI/SystemC: Simulation stopped by user.
sim.dram0 Total Energy: 4307074.21 pJ
sim.dram0 Average Power: 12.62 mW
sim.dram0 Total Energy: 4300303.75 pJ
sim.dram0 Average Power: 12.60 mW
sim.dram0 Total Time: 340669248 ps
sim.dram0 AVG BW: 1.00 GiB/s (4.81 %)
sim.dram0 AVG BW/IDLE: 10.64 GiB/s (51.27 %)
sim.dram0 MAX BW: 20.75 GiB/s
sim.dram1 Total Energy: 2184238.16 pJ
sim.dram1 Average Power: 6.40 mW
sim.dram1 Total Energy: 2157481.55 pJ
sim.dram1 Average Power: 6.32 mW
sim.dram1 Total Time: 0 s
sim.dram1 AVG BW: -nan GiB/s (-nan %)
sim.dram1 AVG BW/IDLE: -nan GiB/s (-nan %)
sim.dram1 MAX BW: 20.75 GiB/s
sim.dram2 Total Energy: 4212328.28 pJ
sim.dram2 Average Power: 12.34 mW
sim.dram2 Total Energy: 4202780.15 pJ
sim.dram2 Average Power: 12.31 mW
sim.dram2 Total Time: 340115040 ps
sim.dram2 AVG BW: 0.75 GiB/s (3.63 %)
sim.dram2 AVG BW/IDLE: 15.65 GiB/s (75.44 %)
sim.dram2 MAX BW: 20.75 GiB/s
sim.dram3 Total Energy: 2319885.40 pJ
sim.dram3 Average Power: 6.80 mW
sim.dram3 Total Energy: 2293679.84 pJ
sim.dram3 Average Power: 6.72 mW
sim.dram3 Total Time: 312862464 ps
sim.dram3 AVG BW: 0.03 GiB/s (0.14 %)
sim.dram3 AVG BW/IDLE: 9.21 GiB/s (44.40 %)
sim.dram3 MAX BW: 20.75 GiB/s
sim.dram3 MAX BW: 20.75 GiB/s