l1_cntrl_nodes.append(l1_cntrl)
# Connect the L0 and L1 controllers
- l0_cntrl.bufferToL1 = l1_cntrl.bufferFromL0
- l0_cntrl.bufferFromL1 = l1_cntrl.bufferToL0
+ l0_cntrl.mandatoryQueue = MessageBuffer()
+ l0_cntrl.bufferToL1 = MessageBuffer(ordered = True)
+ l1_cntrl.bufferFromL0 = l0_cntrl.bufferToL1
+ l0_cntrl.bufferFromL1 = MessageBuffer(ordered = True)
+ l1_cntrl.bufferToL0 = l0_cntrl.bufferFromL1
# Connect the L1 controllers and the network
- l1_cntrl.requestToL2 = ruby_system.network.slave
- l1_cntrl.responseToL2 = ruby_system.network.slave
- l1_cntrl.unblockToL2 = ruby_system.network.slave
+ l1_cntrl.requestToL2 = MessageBuffer()
+ l1_cntrl.requestToL2.master = ruby_system.network.slave
+ l1_cntrl.responseToL2 = MessageBuffer()
+ l1_cntrl.responseToL2.master = ruby_system.network.slave
+ l1_cntrl.unblockToL2 = MessageBuffer()
+ l1_cntrl.unblockToL2.master = ruby_system.network.slave
- l1_cntrl.requestFromL2 = ruby_system.network.master
- l1_cntrl.responseFromL2 = ruby_system.network.master
+ l1_cntrl.requestFromL2 = MessageBuffer()
+ l1_cntrl.requestFromL2.slave = ruby_system.network.master
+ l1_cntrl.responseFromL2 = MessageBuffer()
+ l1_cntrl.responseFromL2.slave = ruby_system.network.master
for j in xrange(num_l2caches_per_cluster):
l2_cntrl_nodes.append(l2_cntrl)
# Connect the L2 controllers and the network
- l2_cntrl.DirRequestFromL2Cache = ruby_system.network.slave
- l2_cntrl.L1RequestFromL2Cache = ruby_system.network.slave
- l2_cntrl.responseFromL2Cache = ruby_system.network.slave
-
- l2_cntrl.unblockToL2Cache = ruby_system.network.master
- l2_cntrl.L1RequestToL2Cache = ruby_system.network.master
- l2_cntrl.responseToL2Cache = ruby_system.network.master
+ l2_cntrl.DirRequestFromL2Cache = MessageBuffer()
+ l2_cntrl.DirRequestFromL2Cache.master = ruby_system.network.slave
+ l2_cntrl.L1RequestFromL2Cache = MessageBuffer()
+ l2_cntrl.L1RequestFromL2Cache.master = ruby_system.network.slave
+ l2_cntrl.responseFromL2Cache = MessageBuffer()
+ l2_cntrl.responseFromL2Cache.master = ruby_system.network.slave
+
+ l2_cntrl.unblockToL2Cache = MessageBuffer()
+ l2_cntrl.unblockToL2Cache.slave = ruby_system.network.master
+ l2_cntrl.L1RequestToL2Cache = MessageBuffer()
+ l2_cntrl.L1RequestToL2Cache.slave = ruby_system.network.master
+ l2_cntrl.responseToL2Cache = MessageBuffer()
+ l2_cntrl.responseToL2Cache.slave = ruby_system.network.master
phys_mem_size = sum(map(lambda r: r.size(), system.mem_ranges))
assert(phys_mem_size % options.num_dirs == 0)
dir_cntrl_nodes.append(dir_cntrl)
# Connect the directory controllers and the network
- dir_cntrl.requestToDir = ruby_system.network.master
- dir_cntrl.responseToDir = ruby_system.network.master
- dir_cntrl.responseFromDir = ruby_system.network.slave
+ dir_cntrl.requestToDir = MessageBuffer()
+ dir_cntrl.requestToDir.slave = ruby_system.network.master
+ dir_cntrl.responseToDir = MessageBuffer()
+ dir_cntrl.responseToDir.slave = ruby_system.network.master
+ dir_cntrl.responseFromDir = MessageBuffer()
+ dir_cntrl.responseFromDir.master = ruby_system.network.slave
+ dir_cntrl.responseFromMemory = MessageBuffer()
for i, dma_port in enumerate(dma_ports):
#
dma_cntrl_nodes.append(dma_cntrl)
# Connect the dma controller to the network
- dma_cntrl.responseFromDir = ruby_system.network.master
- dma_cntrl.requestToDir = ruby_system.network.slave
+ dma_cntrl.mandatoryQueue = MessageBuffer()
+ dma_cntrl.responseFromDir = MessageBuffer(ordered = True)
+ dma_cntrl.responseFromDir.slave = ruby_system.network.master
+ dma_cntrl.requestToDir = MessageBuffer()
+ dma_cntrl.requestToDir.master = ruby_system.network.slave
all_cntrls = l0_cntrl_nodes + \
l1_cntrl_nodes + \
ruby_system.io_controller = io_controller
# Connect the dma controller to the network
- io_controller.responseFromDir = ruby_system.network.master
- io_controller.requestToDir = ruby_system.network.slave
+ io_controller.mandatoryQueue = MessageBuffer()
+ io_controller.responseFromDir = MessageBuffer(ordered = True)
+ io_controller.responseFromDir.slave = ruby_system.network.master
+ io_controller.requestToDir = MessageBuffer()
+ io_controller.requestToDir.master = ruby_system.network.slave
all_cntrls = all_cntrls + [io_controller]
l1_cntrl_nodes.append(l1_cntrl)
# Connect the L1 controllers and the network
- l1_cntrl.requestFromL1Cache = ruby_system.network.slave
- l1_cntrl.responseFromL1Cache = ruby_system.network.slave
- l1_cntrl.unblockFromL1Cache = ruby_system.network.slave
+ l1_cntrl.mandatoryQueue = MessageBuffer()
+ l1_cntrl.requestFromL1Cache = MessageBuffer()
+ l1_cntrl.requestFromL1Cache.master = ruby_system.network.slave
+ l1_cntrl.responseFromL1Cache = MessageBuffer()
+ l1_cntrl.responseFromL1Cache.master = ruby_system.network.slave
+ l1_cntrl.unblockFromL1Cache = MessageBuffer()
+ l1_cntrl.unblockFromL1Cache.master = ruby_system.network.slave
- l1_cntrl.requestToL1Cache = ruby_system.network.master
- l1_cntrl.responseToL1Cache = ruby_system.network.master
+ l1_cntrl.optionalQueue = MessageBuffer()
+
+ l1_cntrl.requestToL1Cache = MessageBuffer()
+ l1_cntrl.requestToL1Cache.slave = ruby_system.network.master
+ l1_cntrl.responseToL1Cache = MessageBuffer()
+ l1_cntrl.responseToL1Cache.slave = ruby_system.network.master
l2_index_start = block_size_bits + l2_bits
l2_cntrl_nodes.append(l2_cntrl)
# Connect the L2 controllers and the network
- l2_cntrl.DirRequestFromL2Cache = ruby_system.network.slave
- l2_cntrl.L1RequestFromL2Cache = ruby_system.network.slave
- l2_cntrl.responseFromL2Cache = ruby_system.network.slave
+ l2_cntrl.DirRequestFromL2Cache = MessageBuffer()
+ l2_cntrl.DirRequestFromL2Cache.master = ruby_system.network.slave
+ l2_cntrl.L1RequestFromL2Cache = MessageBuffer()
+ l2_cntrl.L1RequestFromL2Cache.master = ruby_system.network.slave
+ l2_cntrl.responseFromL2Cache = MessageBuffer()
+ l2_cntrl.responseFromL2Cache.master = ruby_system.network.slave
- l2_cntrl.unblockToL2Cache = ruby_system.network.master
- l2_cntrl.L1RequestToL2Cache = ruby_system.network.master
- l2_cntrl.responseToL2Cache = ruby_system.network.master
+ l2_cntrl.unblockToL2Cache = MessageBuffer()
+ l2_cntrl.unblockToL2Cache.slave = ruby_system.network.master
+ l2_cntrl.L1RequestToL2Cache = MessageBuffer()
+ l2_cntrl.L1RequestToL2Cache.slave = ruby_system.network.master
+ l2_cntrl.responseToL2Cache = MessageBuffer()
+ l2_cntrl.responseToL2Cache.slave = ruby_system.network.master
phys_mem_size = sum(map(lambda r: r.size(), system.mem_ranges))
dir_cntrl_nodes.append(dir_cntrl)
# Connect the directory controllers and the network
- dir_cntrl.requestToDir = ruby_system.network.master
- dir_cntrl.responseToDir = ruby_system.network.master
- dir_cntrl.responseFromDir = ruby_system.network.slave
+ dir_cntrl.requestToDir = MessageBuffer()
+ dir_cntrl.requestToDir.slave = ruby_system.network.master
+ dir_cntrl.responseToDir = MessageBuffer()
+ dir_cntrl.responseToDir.slave = ruby_system.network.master
+ dir_cntrl.responseFromDir = MessageBuffer()
+ dir_cntrl.responseFromDir.master = ruby_system.network.slave
+ dir_cntrl.responseFromMemory = MessageBuffer()
for i, dma_port in enumerate(dma_ports):
dma_cntrl_nodes.append(dma_cntrl)
# Connect the dma controller to the network
- dma_cntrl.responseFromDir = ruby_system.network.master
- dma_cntrl.requestToDir = ruby_system.network.slave
+ dma_cntrl.mandatoryQueue = MessageBuffer()
+ dma_cntrl.responseFromDir = MessageBuffer(ordered = True)
+ dma_cntrl.responseFromDir.slave = ruby_system.network.master
+ dma_cntrl.requestToDir = MessageBuffer()
+ dma_cntrl.requestToDir.master = ruby_system.network.slave
all_cntrls = l1_cntrl_nodes + \
l2_cntrl_nodes + \
ruby_system.io_controller = io_controller
# Connect the dma controller to the network
- io_controller.responseFromDir = ruby_system.network.master
- io_controller.requestToDir = ruby_system.network.slave
+ io_controller.mandatoryQueue = MessageBuffer()
+ io_controller.responseFromDir = MessageBuffer(ordered = True)
+ io_controller.responseFromDir.slave = ruby_system.network.master
+ io_controller.requestToDir = MessageBuffer()
+ io_controller.requestToDir.master = ruby_system.network.slave
all_cntrls = all_cntrls + [io_controller]
l1_cntrl_nodes.append(l1_cntrl)
# Connect the L1 controllers and the network
- l1_cntrl.requestFromCache = ruby_system.network.slave
- l1_cntrl.responseFromCache = ruby_system.network.slave
- l1_cntrl.forwardToCache = ruby_system.network.master
- l1_cntrl.responseToCache = ruby_system.network.master
-
+ l1_cntrl.mandatoryQueue = MessageBuffer()
+ l1_cntrl.requestFromCache = MessageBuffer(ordered = True)
+ l1_cntrl.requestFromCache.master = ruby_system.network.slave
+ l1_cntrl.responseFromCache = MessageBuffer(ordered = True)
+ l1_cntrl.responseFromCache.master = ruby_system.network.slave
+ l1_cntrl.forwardToCache = MessageBuffer(ordered = True)
+ l1_cntrl.forwardToCache.slave = ruby_system.network.master
+ l1_cntrl.responseToCache = MessageBuffer(ordered = True)
+ l1_cntrl.responseToCache.slave = ruby_system.network.master
phys_mem_size = sum(map(lambda r: r.size(), system.mem_ranges))
assert(phys_mem_size % options.num_dirs == 0)
dir_cntrl_nodes.append(dir_cntrl)
# Connect the directory controllers and the network
- dir_cntrl.requestToDir = ruby_system.network.master
- dir_cntrl.dmaRequestToDir = ruby_system.network.master
+ dir_cntrl.requestToDir = MessageBuffer(ordered = True)
+ dir_cntrl.requestToDir.slave = ruby_system.network.master
+ dir_cntrl.dmaRequestToDir = MessageBuffer(ordered = True)
+ dir_cntrl.dmaRequestToDir.slave = ruby_system.network.master
- dir_cntrl.responseFromDir = ruby_system.network.slave
- dir_cntrl.dmaResponseFromDir = ruby_system.network.slave
- dir_cntrl.forwardFromDir = ruby_system.network.slave
+ dir_cntrl.responseFromDir = MessageBuffer()
+ dir_cntrl.responseFromDir.master = ruby_system.network.slave
+ dir_cntrl.dmaResponseFromDir = MessageBuffer(ordered = True)
+ dir_cntrl.dmaResponseFromDir.master = ruby_system.network.slave
+ dir_cntrl.forwardFromDir = MessageBuffer()
+ dir_cntrl.forwardFromDir.master = ruby_system.network.slave
+ dir_cntrl.responseFromMemory = MessageBuffer()
for i, dma_port in enumerate(dma_ports):
dma_cntrl_nodes.append(dma_cntrl)
# Connect the directory controllers and the network
- dma_cntrl.requestToDir = ruby_system.network.slave
- dma_cntrl.responseFromDir = ruby_system.network.master
+ dma_cntrl.mandatoryQueue = MessageBuffer()
+ dma_cntrl.requestToDir = MessageBuffer()
+ dma_cntrl.requestToDir.master = ruby_system.network.slave
+ dma_cntrl.responseFromDir = MessageBuffer(ordered = True)
+ dma_cntrl.responseFromDir.slave = ruby_system.network.master
all_cntrls = l1_cntrl_nodes + dir_cntrl_nodes + dma_cntrl_nodes
ruby_system.io_controller = io_controller
# Connect the dma controller to the network
- io_controller.responseFromDir = ruby_system.network.master
- io_controller.requestToDir = ruby_system.network.slave
+ io_controller.mandatoryQueue = MessageBuffer()
+ io_controller.requestToDir = MessageBuffer()
+ io_controller.requestToDir.master = ruby_system.network.slave
+ io_controller.responseFromDir = MessageBuffer(ordered = True)
+ io_controller.responseFromDir.slave = ruby_system.network.master
all_cntrls = all_cntrls + [io_controller]
l1_cntrl_nodes.append(l1_cntrl)
# Connect the L1 controllers and the network
- l1_cntrl.requestFromL1Cache = ruby_system.network.slave
- l1_cntrl.responseFromL1Cache = ruby_system.network.slave
- l1_cntrl.requestToL1Cache = ruby_system.network.master
- l1_cntrl.responseToL1Cache = ruby_system.network.master
+ l1_cntrl.mandatoryQueue = MessageBuffer()
+ l1_cntrl.requestFromL1Cache = MessageBuffer()
+ l1_cntrl.requestFromL1Cache.master = ruby_system.network.slave
+ l1_cntrl.responseFromL1Cache = MessageBuffer()
+ l1_cntrl.responseFromL1Cache.master = ruby_system.network.slave
+ l1_cntrl.requestToL1Cache = MessageBuffer()
+ l1_cntrl.requestToL1Cache.slave = ruby_system.network.master
+ l1_cntrl.responseToL1Cache = MessageBuffer()
+ l1_cntrl.responseToL1Cache.slave = ruby_system.network.master
+ l1_cntrl.triggerQueue = MessageBuffer(ordered = True)
l2_index_start = block_size_bits + l2_bits
l2_cntrl_nodes.append(l2_cntrl)
# Connect the L2 controllers and the network
- l2_cntrl.GlobalRequestFromL2Cache = ruby_system.network.slave
- l2_cntrl.L1RequestFromL2Cache = ruby_system.network.slave
- l2_cntrl.responseFromL2Cache = ruby_system.network.slave
-
- l2_cntrl.GlobalRequestToL2Cache = ruby_system.network.master
- l2_cntrl.L1RequestToL2Cache = ruby_system.network.master
- l2_cntrl.responseToL2Cache = ruby_system.network.master
+ l2_cntrl.GlobalRequestFromL2Cache = MessageBuffer()
+ l2_cntrl.GlobalRequestFromL2Cache.master = ruby_system.network.slave
+ l2_cntrl.L1RequestFromL2Cache = MessageBuffer()
+ l2_cntrl.L1RequestFromL2Cache.master = ruby_system.network.slave
+ l2_cntrl.responseFromL2Cache = MessageBuffer()
+ l2_cntrl.responseFromL2Cache.master = ruby_system.network.slave
+
+ l2_cntrl.GlobalRequestToL2Cache = MessageBuffer()
+ l2_cntrl.GlobalRequestToL2Cache.slave = ruby_system.network.master
+ l2_cntrl.L1RequestToL2Cache = MessageBuffer()
+ l2_cntrl.L1RequestToL2Cache.slave = ruby_system.network.master
+ l2_cntrl.responseToL2Cache = MessageBuffer()
+ l2_cntrl.responseToL2Cache.slave = ruby_system.network.master
+ l2_cntrl.triggerQueue = MessageBuffer(ordered = True)
phys_mem_size = sum(map(lambda r: r.size(), system.mem_ranges))
dir_cntrl_nodes.append(dir_cntrl)
# Connect the directory controllers and the network
- dir_cntrl.requestToDir = ruby_system.network.master
- dir_cntrl.responseToDir = ruby_system.network.master
- dir_cntrl.responseFromDir = ruby_system.network.slave
- dir_cntrl.forwardFromDir = ruby_system.network.slave
+ dir_cntrl.requestToDir = MessageBuffer()
+ dir_cntrl.requestToDir.slave = ruby_system.network.master
+ dir_cntrl.responseToDir = MessageBuffer()
+ dir_cntrl.responseToDir.slave = ruby_system.network.master
+ dir_cntrl.responseFromDir = MessageBuffer()
+ dir_cntrl.responseFromDir.master = ruby_system.network.slave
+ dir_cntrl.forwardFromDir = MessageBuffer()
+ dir_cntrl.forwardFromDir.master = ruby_system.network.slave
+ dir_cntrl.responseFromMemory = MessageBuffer()
for i, dma_port in enumerate(dma_ports):
dma_cntrl_nodes.append(dma_cntrl)
# Connect the dma controller to the network
- dma_cntrl.responseFromDir = ruby_system.network.master
- dma_cntrl.reqToDir = ruby_system.network.slave
- dma_cntrl.respToDir = ruby_system.network.slave
+ dma_cntrl.mandatoryQueue = MessageBuffer()
+ dma_cntrl.responseFromDir = MessageBuffer()
+ dma_cntrl.responseFromDir.slave = ruby_system.network.master
+ dma_cntrl.reqToDir = MessageBuffer()
+ dma_cntrl.reqToDir.master = ruby_system.network.slave
+ dma_cntrl.respToDir = MessageBuffer()
+ dma_cntrl.respToDir.master = ruby_system.network.slave
+ dma_cntrl.triggerQueue = MessageBuffer(ordered = True)
all_cntrls = l1_cntrl_nodes + \
ruby_system.io_controller = io_controller
# Connect the dma controller to the network
- io_controller.responseFromDir = ruby_system.network.master
- io_controller.reqToDir = ruby_system.network.slave
- io_controller.respToDir = ruby_system.network.slave
+ io_controller.mandatoryQueue = MessageBuffer()
+ io_controller.responseFromDir = MessageBuffer()
+ io_controller.responseFromDir.slave = ruby_system.network.master
+ io_controller.reqToDir = MessageBuffer()
+ io_controller.reqToDir.master = ruby_system.network.slave
+ io_controller.respToDir = MessageBuffer()
+ io_controller.respToDir.master = ruby_system.network.slave
+ io_controller.triggerQueue = MessageBuffer(ordered = True)
all_cntrls = all_cntrls + [io_controller]
l1_cntrl_nodes.append(l1_cntrl)
# Connect the L1 controllers and the network
- l1_cntrl.requestFromL1Cache = ruby_system.network.slave
- l1_cntrl.responseFromL1Cache = ruby_system.network.slave
- l1_cntrl.persistentFromL1Cache = ruby_system.network.slave
-
- l1_cntrl.requestToL1Cache = ruby_system.network.master
- l1_cntrl.responseToL1Cache = ruby_system.network.master
- l1_cntrl.persistentToL1Cache = ruby_system.network.master
+ l1_cntrl.requestFromL1Cache = MessageBuffer()
+ l1_cntrl.requestFromL1Cache.master = ruby_system.network.slave
+ l1_cntrl.responseFromL1Cache = MessageBuffer()
+ l1_cntrl.responseFromL1Cache.master = ruby_system.network.slave
+ l1_cntrl.persistentFromL1Cache = MessageBuffer(ordered = True)
+ l1_cntrl.persistentFromL1Cache.master = ruby_system.network.slave
+
+ l1_cntrl.mandatoryQueue = MessageBuffer()
+ l1_cntrl.requestToL1Cache = MessageBuffer()
+ l1_cntrl.requestToL1Cache.slave = ruby_system.network.master
+ l1_cntrl.responseToL1Cache = MessageBuffer()
+ l1_cntrl.responseToL1Cache.slave = ruby_system.network.master
+ l1_cntrl.persistentToL1Cache = MessageBuffer(ordered = True)
+ l1_cntrl.persistentToL1Cache.slave = ruby_system.network.master
l2_index_start = block_size_bits + l2_bits
l2_cntrl_nodes.append(l2_cntrl)
# Connect the L2 controllers and the network
- l2_cntrl.GlobalRequestFromL2Cache = ruby_system.network.slave
- l2_cntrl.L1RequestFromL2Cache = ruby_system.network.slave
- l2_cntrl.responseFromL2Cache = ruby_system.network.slave
-
- l2_cntrl.GlobalRequestToL2Cache = ruby_system.network.master
- l2_cntrl.L1RequestToL2Cache = ruby_system.network.master
- l2_cntrl.responseToL2Cache = ruby_system.network.master
- l2_cntrl.persistentToL2Cache = ruby_system.network.master
+ l2_cntrl.GlobalRequestFromL2Cache = MessageBuffer()
+ l2_cntrl.GlobalRequestFromL2Cache.master = ruby_system.network.slave
+ l2_cntrl.L1RequestFromL2Cache = MessageBuffer()
+ l2_cntrl.L1RequestFromL2Cache.master = ruby_system.network.slave
+ l2_cntrl.responseFromL2Cache = MessageBuffer()
+ l2_cntrl.responseFromL2Cache.master = ruby_system.network.slave
+
+ l2_cntrl.GlobalRequestToL2Cache = MessageBuffer()
+ l2_cntrl.GlobalRequestToL2Cache.slave = ruby_system.network.master
+ l2_cntrl.L1RequestToL2Cache = MessageBuffer()
+ l2_cntrl.L1RequestToL2Cache.slave = ruby_system.network.master
+ l2_cntrl.responseToL2Cache = MessageBuffer()
+ l2_cntrl.responseToL2Cache.slave = ruby_system.network.master
+ l2_cntrl.persistentToL2Cache = MessageBuffer(ordered = True)
+ l2_cntrl.persistentToL2Cache.slave = ruby_system.network.master
phys_mem_size = sum(map(lambda r: r.size(), system.mem_ranges))
dir_cntrl_nodes.append(dir_cntrl)
# Connect the directory controllers and the network
- dir_cntrl.requestToDir = ruby_system.network.master
- dir_cntrl.responseToDir = ruby_system.network.master
- dir_cntrl.persistentToDir = ruby_system.network.master
- dir_cntrl.dmaRequestToDir = ruby_system.network.master
-
- dir_cntrl.requestFromDir = ruby_system.network.slave
- dir_cntrl.responseFromDir = ruby_system.network.slave
- dir_cntrl.persistentFromDir = ruby_system.network.slave
- dir_cntrl.dmaResponseFromDir = ruby_system.network.slave
+ dir_cntrl.requestToDir = MessageBuffer()
+ dir_cntrl.requestToDir.slave = ruby_system.network.master
+ dir_cntrl.responseToDir = MessageBuffer()
+ dir_cntrl.responseToDir.slave = ruby_system.network.master
+ dir_cntrl.persistentToDir = MessageBuffer(ordered = True)
+ dir_cntrl.persistentToDir.slave = ruby_system.network.master
+ dir_cntrl.dmaRequestToDir = MessageBuffer(ordered = True)
+ dir_cntrl.dmaRequestToDir.slave = ruby_system.network.master
+
+ dir_cntrl.requestFromDir = MessageBuffer()
+ dir_cntrl.requestFromDir.master = ruby_system.network.slave
+ dir_cntrl.responseFromDir = MessageBuffer()
+ dir_cntrl.responseFromDir.master = ruby_system.network.slave
+ dir_cntrl.persistentFromDir = MessageBuffer(ordered = True)
+ dir_cntrl.persistentFromDir.master = ruby_system.network.slave
+ dir_cntrl.dmaResponseFromDir = MessageBuffer(ordered = True)
+ dir_cntrl.dmaResponseFromDir.master = ruby_system.network.slave
+ dir_cntrl.responseFromMemory = MessageBuffer()
for i, dma_port in enumerate(dma_ports):
dma_cntrl_nodes.append(dma_cntrl)
# Connect the dma controller to the network
- dma_cntrl.responseFromDir = ruby_system.network.master
- dma_cntrl.reqToDirectory = ruby_system.network.slave
+ dma_cntrl.mandatoryQueue = MessageBuffer()
+ dma_cntrl.responseFromDir = MessageBuffer(ordered = True)
+ dma_cntrl.responseFromDir.slave = ruby_system.network.master
+ dma_cntrl.reqToDirectory = MessageBuffer()
+ dma_cntrl.reqToDirectory.master = ruby_system.network.slave
all_cntrls = l1_cntrl_nodes + \
l2_cntrl_nodes + \
ruby_system.io_controller = io_controller
# Connect the dma controller to the network
- io_controller.responseFromDir = ruby_system.network.master
- io_controller.reqToDirectory = ruby_system.network.slave
+ io_controller.mandatoryQueue = MessageBuffer()
+ io_controller.responseFromDir = MessageBuffer(ordered = True)
+ io_controller.responseFromDir.slave = ruby_system.network.master
+ io_controller.reqToDirectory = MessageBuffer()
+ io_controller.reqToDirectory.master = ruby_system.network.slave
all_cntrls = all_cntrls + [io_controller]
# Connect the L1 controller and the network
# Connect the buffers from the controller to network
- l1_cntrl.requestFromCache = ruby_system.network.slave
- l1_cntrl.responseFromCache = ruby_system.network.slave
- l1_cntrl.unblockFromCache = ruby_system.network.slave
+ l1_cntrl.requestFromCache = MessageBuffer()
+ l1_cntrl.requestFromCache.master = ruby_system.network.slave
+ l1_cntrl.responseFromCache = MessageBuffer()
+ l1_cntrl.responseFromCache.master = ruby_system.network.slave
+ l1_cntrl.unblockFromCache = MessageBuffer()
+ l1_cntrl.unblockFromCache.master = ruby_system.network.slave
+
+ l1_cntrl.triggerQueue = MessageBuffer()
# Connect the buffers from the network to the controller
- l1_cntrl.forwardToCache = ruby_system.network.master
- l1_cntrl.responseToCache = ruby_system.network.master
+ l1_cntrl.mandatoryQueue = MessageBuffer()
+ l1_cntrl.forwardToCache = MessageBuffer()
+ l1_cntrl.forwardToCache.slave = ruby_system.network.master
+ l1_cntrl.responseToCache = MessageBuffer()
+ l1_cntrl.responseToCache.slave = ruby_system.network.master
phys_mem_size = sum(map(lambda r: r.size(), system.mem_ranges))
dir_cntrl_nodes.append(dir_cntrl)
# Connect the directory controller to the network
- dir_cntrl.forwardFromDir = ruby_system.network.slave
- dir_cntrl.responseFromDir = ruby_system.network.slave
- dir_cntrl.dmaResponseFromDir = ruby_system.network.slave
-
- dir_cntrl.unblockToDir = ruby_system.network.master
- dir_cntrl.responseToDir = ruby_system.network.master
- dir_cntrl.requestToDir = ruby_system.network.master
- dir_cntrl.dmaRequestToDir = ruby_system.network.master
+ dir_cntrl.forwardFromDir = MessageBuffer()
+ dir_cntrl.forwardFromDir.master = ruby_system.network.slave
+ dir_cntrl.responseFromDir = MessageBuffer()
+ dir_cntrl.responseFromDir.master = ruby_system.network.slave
+ dir_cntrl.dmaResponseFromDir = MessageBuffer(ordered = True)
+ dir_cntrl.dmaResponseFromDir.master = ruby_system.network.slave
+
+ dir_cntrl.triggerQueue = MessageBuffer(ordered = True)
+
+ dir_cntrl.unblockToDir = MessageBuffer()
+ dir_cntrl.unblockToDir.slave = ruby_system.network.master
+ dir_cntrl.responseToDir = MessageBuffer()
+ dir_cntrl.responseToDir.slave = ruby_system.network.master
+ dir_cntrl.requestToDir = MessageBuffer()
+ dir_cntrl.requestToDir.slave = ruby_system.network.master
+ dir_cntrl.dmaRequestToDir = MessageBuffer(ordered = True)
+ dir_cntrl.dmaRequestToDir.slave = ruby_system.network.master
+ dir_cntrl.responseFromMemory = MessageBuffer()
for i, dma_port in enumerate(dma_ports):
dma_cntrl.recycle_latency = options.recycle_latency
# Connect the dma controller to the network
- dma_cntrl.responseFromDir = ruby_system.network.master
- dma_cntrl.requestToDir = ruby_system.network.slave
+ dma_cntrl.responseFromDir = MessageBuffer(ordered = True)
+ dma_cntrl.responseFromDir.slave = ruby_system.network.master
+ dma_cntrl.requestToDir = MessageBuffer()
+ dma_cntrl.requestToDir.master = ruby_system.network.slave
+ dma_cntrl.mandatoryQueue = MessageBuffer()
all_cntrls = l1_cntrl_nodes + dir_cntrl_nodes + dma_cntrl_nodes
ruby_system.io_controller = io_controller
# Connect the dma controller to the network
- io_controller.responseFromDir = ruby_system.network.master
- io_controller.requestToDir = ruby_system.network.slave
+ io_controller.responseFromDir = MessageBuffer(ordered = True)
+ io_controller.responseFromDir.slave = ruby_system.network.master
+ io_controller.requestToDir = MessageBuffer()
+ io_controller.requestToDir.master = ruby_system.network.slave
+ io_controller.mandatoryQueue = MessageBuffer()
all_cntrls = all_cntrls + [io_controller]
l1_cntrl_nodes.append(l1_cntrl)
# Connect the L1 controllers and the network
- l1_cntrl.requestFromCache = ruby_system.network.slave
- l1_cntrl.responseFromCache = ruby_system.network.slave
- l1_cntrl.forwardFromCache = ruby_system.network.slave
+ l1_cntrl.mandatoryQueue = MessageBuffer()
+ l1_cntrl.requestFromCache = MessageBuffer()
+ l1_cntrl.responseFromCache = MessageBuffer()
+ l1_cntrl.forwardFromCache = MessageBuffer()
phys_mem_size = sum(map(lambda r: r.size(), system.mem_ranges))
dir_cntrl_nodes.append(dir_cntrl)
# Connect the directory controllers and the network
- dir_cntrl.requestToDir = ruby_system.network.master
- dir_cntrl.forwardToDir = ruby_system.network.master
- dir_cntrl.responseToDir = ruby_system.network.master
+ dir_cntrl.requestToDir = MessageBuffer()
+ dir_cntrl.forwardToDir = MessageBuffer()
+ dir_cntrl.responseToDir = MessageBuffer()
all_cntrls = l1_cntrl_nodes + dir_cntrl_nodes
bool send_evictions;
// From this node's L0 cache to the network
- MessageBuffer * bufferToL1, network="To", ordered="true";
+ MessageBuffer * bufferToL1, network="To";
// To this node's L0 cache FROM the network
- MessageBuffer * bufferFromL1, network="From", ordered="true";
+ MessageBuffer * bufferFromL1, network="From";
{
// Message queue between this controller and the processor
- MessageBuffer mandatoryQueue, ordered="false";
+ MessageBuffer mandatoryQueue;
// STATES
state_declaration(State, desc="Cache states", default="L0Cache_State_I") {
// Message Buffers between the L1 and the L0 Cache
// From the L1 cache to the L0 cache
- MessageBuffer * bufferToL0, network="To", ordered="true";
+ MessageBuffer * bufferToL0, network="To";
// From the L0 cache to the L1 cache
- MessageBuffer * bufferFromL0, network="From", ordered="true";
+ MessageBuffer * bufferFromL0, network="From";
// Message queue from this L1 cache TO the network / L2
MessageBuffer * requestToL2, network="To", virtual_network="0",
- ordered="false", vnet_type="request";
+ vnet_type="request";
MessageBuffer * responseToL2, network="To", virtual_network="1",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * unblockToL2, network="To", virtual_network="2",
- ordered="false", vnet_type="unblock";
+ vnet_type="unblock";
// To this L1 cache FROM the network / L2
MessageBuffer * requestFromL2, network="From", virtual_network="2",
- ordered="false", vnet_type="request";
+ vnet_type="request";
MessageBuffer * responseFromL2, network="From", virtual_network="1",
- ordered="false", vnet_type="response";
+ vnet_type="response";
{
// STATES
// a local L1 -> this L2 bank, currently ordered with directory forwarded requests
MessageBuffer * requestFromL1Cache, network="To", virtual_network="0",
- ordered="false", vnet_type="request";
+ vnet_type="request";
// a local L1 -> this L2 bank
MessageBuffer * responseFromL1Cache, network="To", virtual_network="1",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * unblockFromL1Cache, network="To", virtual_network="2",
- ordered="false", vnet_type="unblock";
+ vnet_type="unblock";
// To this node's L1 cache FROM the network
// a L2 bank -> this L1
MessageBuffer * requestToL1Cache, network="From", virtual_network="2",
- ordered="false", vnet_type="request";
+ vnet_type="request";
// a L2 bank -> this L1
MessageBuffer * responseToL1Cache, network="From", virtual_network="1",
- ordered="false", vnet_type="response";
+ vnet_type="response";
{
// Request Buffer for prefetches
- MessageBuffer optionalQueue, ordered="false";
+ MessageBuffer optionalQueue;
// STATES
state_declaration(State, desc="Cache states", default="L1Cache_State_I") {
TBETable TBEs, template="<L1Cache_TBE>", constructor="m_number_of_TBEs";
- MessageBuffer mandatoryQueue, ordered="false";
+ MessageBuffer mandatoryQueue;
int l2_select_low_bit, default="RubySystem::getBlockSizeBits()";
// Message Queues
// From local bank of L2 cache TO the network
MessageBuffer * DirRequestFromL2Cache, network="To", virtual_network="0",
- ordered="false", vnet_type="request"; // this L2 bank -> Memory
+ vnet_type="request"; // this L2 bank -> Memory
MessageBuffer * L1RequestFromL2Cache, network="To", virtual_network="2",
- ordered="false", vnet_type="request"; // this L2 bank -> a local L1
+ vnet_type="request"; // this L2 bank -> a local L1
MessageBuffer * responseFromL2Cache, network="To", virtual_network="1",
- ordered="false", vnet_type="response"; // this L2 bank -> a local L1 || Memory
+ vnet_type="response"; // this L2 bank -> a local L1 || Memory
// FROM the network to this local bank of L2 cache
MessageBuffer * unblockToL2Cache, network="From", virtual_network="2",
- ordered="false", vnet_type="unblock"; // a local L1 || Memory -> this L2 bank
+ vnet_type="unblock"; // a local L1 || Memory -> this L2 bank
MessageBuffer * L1RequestToL2Cache, network="From", virtual_network="0",
- ordered="false", vnet_type="request"; // a local L1 -> this L2 bank
+ vnet_type="request"; // a local L1 -> this L2 bank
MessageBuffer * responseToL2Cache, network="From", virtual_network="1",
- ordered="false", vnet_type="response"; // a local L1 || Memory -> this L2 bank
+ vnet_type="response"; // a local L1 || Memory -> this L2 bank
{
// STATES
state_declaration(State, desc="L2 Cache states", default="L2Cache_State_NP") {
Cycles directory_latency := 6;
MessageBuffer * requestToDir, network="From", virtual_network="0",
- ordered="false", vnet_type="request";
+ vnet_type="request";
MessageBuffer * responseToDir, network="From", virtual_network="1",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * responseFromDir, network="To", virtual_network="1",
- ordered="false", vnet_type="response";
+ vnet_type="response";
{
// STATES
state_declaration(State, desc="Directory states", default="Directory_State_I") {
(type == CoherenceRequestType:GETX);
}
+ MessageBuffer responseFromMemory;
// ** OUT_PORTS **
out_port(responseNetwork_out, ResponseMsg, responseFromDir);
Cycles request_latency := 6;
MessageBuffer * responseFromDir, network="From", virtual_network="1",
- ordered="true", vnet_type="response";
+ vnet_type="response";
MessageBuffer * requestToDir, network="To", virtual_network="0",
- ordered="false", vnet_type="request";
+ vnet_type="request";
{
state_declaration(State, desc="DMA states", default="DMA_State_READY") {
READY, AccessPermission:Invalid, desc="Ready to accept a new request";
Ack, desc="DMA write to memory completed";
}
- MessageBuffer mandatoryQueue, ordered="false";
+ MessageBuffer mandatoryQueue;
State cur_state;
State getState(Address addr) {
// NETWORK BUFFERS
MessageBuffer * requestFromCache, network="To", virtual_network="2",
- ordered="true", vnet_type="request";
+ vnet_type="request";
MessageBuffer * responseFromCache, network="To", virtual_network="4",
- ordered="true", vnet_type="response";
+ vnet_type="response";
MessageBuffer * forwardToCache, network="From", virtual_network="3",
- ordered="true", vnet_type="forward";
+ vnet_type="forward";
MessageBuffer * responseToCache, network="From", virtual_network="4",
- ordered="true", vnet_type="response";
+ vnet_type="response";
{
// STATES
state_declaration(State, desc="Cache states") {
// STRUCTURE DEFINITIONS
- MessageBuffer mandatoryQueue, ordered="false";
+ MessageBuffer mandatoryQueue;
// CacheEntry
structure(Entry, desc="...", interface="AbstractCacheEntry") {
Cycles to_memory_controller_latency := 1;
MessageBuffer * forwardFromDir, network="To", virtual_network="3",
- ordered="false", vnet_type="forward";
+ vnet_type="forward";
MessageBuffer * responseFromDir, network="To", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * dmaResponseFromDir, network="To", virtual_network="1",
- ordered="true", vnet_type="response";
+ vnet_type="response";
MessageBuffer * requestToDir, network="From", virtual_network="2",
- ordered="true", vnet_type="request";
+ vnet_type="request";
MessageBuffer * dmaRequestToDir, network="From", virtual_network="0",
- ordered="true", vnet_type="request";
+ vnet_type="request";
{
// STATES
state_declaration(State, desc="Directory states", default="Directory_State_I") {
return num_functional_writes;
}
+ MessageBuffer responseFromMemory;
+
// ** OUT_PORTS **
out_port(forwardNetwork_out, RequestMsg, forwardFromDir);
out_port(responseNetwork_out, ResponseMsg, responseFromDir);
Cycles request_latency := 6;
MessageBuffer * responseFromDir, network="From", virtual_network="1",
- ordered="true", vnet_type="response";
+ vnet_type="response";
MessageBuffer * requestToDir, network="To", virtual_network="0",
- ordered="false", vnet_type="request";
+ vnet_type="request";
{
state_declaration(State, desc="DMA states", default="DMA_State_READY") {
READY, AccessPermission:Invalid, desc="Ready to accept a new request";
Ack, desc="DMA write to memory completed";
}
- MessageBuffer mandatoryQueue, ordered="false";
+ MessageBuffer mandatoryQueue;
State cur_state;
State getState(Address addr) {
// From this node's L1 cache TO the network
// a local L1 -> this L2 bank, currently ordered with directory forwarded requests
MessageBuffer * requestFromL1Cache, network="To", virtual_network="0",
- ordered="false", vnet_type="request";
+ vnet_type="request";
// a local L1 -> this L2 bank
MessageBuffer * responseFromL1Cache, network="To", virtual_network="2",
- ordered="false", vnet_type="response";
+ vnet_type="response";
// To this node's L1 cache FROM the network
// a L2 bank -> this L1
MessageBuffer * requestToL1Cache, network="From", virtual_network="0",
- ordered="false", vnet_type="request";
+ vnet_type="request";
// a L2 bank -> this L1
MessageBuffer * responseToL1Cache, network="From", virtual_network="2",
- ordered="false", vnet_type="response";
+ vnet_type="response";
{
// STATES
state_declaration(State, desc="Cache states", default="L1Cache_State_I") {
void set_tbe(TBE b);
void unset_tbe();
- MessageBuffer mandatoryQueue, ordered="false", abstract_chip_ptr="true";
+ MessageBuffer mandatoryQueue, abstract_chip_ptr="true";
TBETable TBEs, template="<L1Cache_TBE>", constructor="m_number_of_TBEs";
TimerTable useTimerTable;
}
}
- MessageBuffer triggerQueue, ordered="true";
+ MessageBuffer triggerQueue;
// ** OUT_PORTS **
// L2 BANK QUEUES
// From local bank of L2 cache TO the network
MessageBuffer * L1RequestFromL2Cache, network="To", virtual_network="0",
- ordered="false", vnet_type="request"; // this L2 bank -> a local L1
+ vnet_type="request"; // this L2 bank -> a local L1
MessageBuffer * GlobalRequestFromL2Cache, network="To", virtual_network="1",
- ordered="false", vnet_type="request"; // this L2 bank -> mod-directory
+ vnet_type="request"; // this L2 bank -> mod-directory
MessageBuffer * responseFromL2Cache, network="To", virtual_network="2",
- ordered="false", vnet_type="response"; // this L2 bank -> a local L1 || mod-directory
+ vnet_type="response"; // this L2 bank -> a local L1 || mod-directory
// FROM the network to this local bank of L2 cache
MessageBuffer * L1RequestToL2Cache, network="From", virtual_network="0",
- ordered="false", vnet_type="request"; // a local L1 -> this L2 bank, Lets try this???
+ vnet_type="request"; // a local L1 -> this L2 bank, Lets try this???
MessageBuffer * GlobalRequestToL2Cache, network="From", virtual_network="1",
- ordered="false", vnet_type="request"; // mod-directory -> this L2 bank
+ vnet_type="request"; // mod-directory -> this L2 bank
MessageBuffer * responseToL2Cache, network="From", virtual_network="2",
- ordered="false", vnet_type="response"; // a local L1 || mod-directory -> this L2 bank
+ vnet_type="response"; // a local L1 || mod-directory -> this L2 bank
{
// STATES
return num_functional_writes;
}
- MessageBuffer triggerQueue, ordered="true";
+ MessageBuffer triggerQueue;
out_port(globalRequestNetwork_out, RequestMsg, GlobalRequestFromL2Cache);
out_port(localRequestNetwork_out, RequestMsg, L1RequestFromL2Cache);
// Message Queues
MessageBuffer * requestToDir, network="From", virtual_network="1",
- ordered="false", vnet_type="request"; // a mod-L2 bank -> this Dir
+ vnet_type="request"; // a mod-L2 bank -> this Dir
MessageBuffer * responseToDir, network="From", virtual_network="2",
- ordered="false", vnet_type="response"; // a mod-L2 bank -> this Dir
+ vnet_type="response"; // a mod-L2 bank -> this Dir
MessageBuffer * forwardFromDir, network="To", virtual_network="1",
- ordered="false", vnet_type="forward";
+ vnet_type="forward";
MessageBuffer * responseFromDir, network="To", virtual_network="2",
- ordered="false", vnet_type="response"; // Dir -> mod-L2 bank
+ vnet_type="response"; // Dir -> mod-L2 bank
{
// STATES
return false;
}
+ MessageBuffer responseFromMemory;
// ** OUT_PORTS **
out_port(forwardNetwork_out, RequestMsg, forwardFromDir);
Cycles response_latency := 14;
MessageBuffer * responseFromDir, network="From", virtual_network="2",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * reqToDir, network="To", virtual_network="1",
- ordered="false", vnet_type="request";
+ vnet_type="request";
MessageBuffer * respToDir, network="To", virtual_network="2",
- ordered="false", vnet_type="dmaresponse";
+ vnet_type="dmaresponse";
{
state_declaration(State, desc="DMA states", default="DMA_State_READY") {
bool isPresent(Address);
}
- MessageBuffer mandatoryQueue, ordered="false";
- MessageBuffer triggerQueue, ordered="true";
+ MessageBuffer mandatoryQueue;
+ MessageBuffer triggerQueue;
TBETable TBEs, template="<DMA_TBE>", constructor="m_number_of_TBEs";
State cur_state;
// a local L1 -> this L2 bank
MessageBuffer * responseFromL1Cache, network="To", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * persistentFromL1Cache, network="To", virtual_network="3",
- ordered="true", vnet_type="persistent";
+ vnet_type="persistent";
// a local L1 -> this L2 bank, currently ordered with directory forwarded requests
MessageBuffer * requestFromL1Cache, network="To", virtual_network="1",
- ordered="false", vnet_type="request";
+ vnet_type="request";
// To this node's L1 cache FROM the network
// a L2 bank -> this L1
MessageBuffer * responseToL1Cache, network="From", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * persistentToL1Cache, network="From", virtual_network="3",
- ordered="true", vnet_type="persistent";
+ vnet_type="persistent";
// a L2 bank -> this L1
MessageBuffer * requestToL1Cache, network="From", virtual_network="1",
- ordered="false", vnet_type="request";
+ vnet_type="request";
{
// STATES
TBETable L1_TBEs, template="<L1Cache_TBE>", constructor="m_number_of_TBEs";
- MessageBuffer mandatoryQueue, ordered="false", abstract_chip_ptr="true";
+ MessageBuffer mandatoryQueue, abstract_chip_ptr="true";
bool starving, default="false";
int l2_select_low_bit, default="RubySystem::getBlockSizeBits()";
// this L2 bank -> a local L1 || mod-directory
MessageBuffer * responseFromL2Cache, network="To", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
// this L2 bank -> mod-directory
MessageBuffer * GlobalRequestFromL2Cache, network="To", virtual_network="2",
- ordered="false", vnet_type="request";
+ vnet_type="request";
// this L2 bank -> a local L1
MessageBuffer * L1RequestFromL2Cache, network="To", virtual_network="1",
- ordered="false", vnet_type="request";
+ vnet_type="request";
// FROM the network to this local bank of L2 cache
// a local L1 || mod-directory -> this L2 bank
MessageBuffer * responseToL2Cache, network="From", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * persistentToL2Cache, network="From", virtual_network="3",
- ordered="true", vnet_type="persistent";
+ vnet_type="persistent";
// mod-directory -> this L2 bank
MessageBuffer * GlobalRequestToL2Cache, network="From", virtual_network="2",
- ordered="false", vnet_type="request";
+ vnet_type="request";
// a local L1 -> this L2 bank
MessageBuffer * L1RequestToL2Cache, network="From", virtual_network="1",
- ordered="false", vnet_type="request";
+ vnet_type="request";
{
// STATES
// Message Queues from dir to other controllers / network
MessageBuffer * dmaResponseFromDir, network="To", virtual_network="5",
- ordered="true", vnet_type="response";
+ vnet_type="response";
MessageBuffer * responseFromDir, network="To", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * persistentFromDir, network="To", virtual_network="3",
- ordered="true", vnet_type="persistent";
+ vnet_type="persistent";
MessageBuffer * requestFromDir, network="To", virtual_network="1",
- ordered="false", vnet_type="request";
+ vnet_type="request";
// Message Queues to dir from other controllers / network
MessageBuffer * responseToDir, network="From", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * persistentToDir, network="From", virtual_network="3",
- ordered="true", vnet_type="persistent";
+ vnet_type="persistent";
MessageBuffer * requestToDir, network="From", virtual_network="2",
- ordered="false", vnet_type="request";
+ vnet_type="request";
MessageBuffer * dmaRequestToDir, network="From", virtual_network="0",
- ordered="true", vnet_type="request";
+ vnet_type="request";
{
// STATES
return num_functional_writes;
}
+ MessageBuffer responseFromMemory;
+
// ** OUT_PORTS **
out_port(responseNetwork_out, ResponseMsg, responseFromDir);
out_port(persistentNetwork_out, PersistentMsg, persistentFromDir);
// Messsage Queues
MessageBuffer * responseFromDir, network="From", virtual_network="5",
- ordered="true", vnet_type="response";
+ vnet_type="response";
MessageBuffer * reqToDirectory, network="To", virtual_network="0",
- ordered="false", vnet_type="request";
+ vnet_type="request";
{
state_declaration(State, desc="DMA states", default="DMA_State_READY") {
Ack, desc="DMA write to memory completed";
}
- MessageBuffer mandatoryQueue, ordered="false";
+ MessageBuffer mandatoryQueue;
State cur_state;
State getState(Address addr) {
// NETWORK BUFFERS
MessageBuffer * requestFromCache, network="To", virtual_network="2",
- ordered="false", vnet_type="request";
+ vnet_type="request";
MessageBuffer * responseFromCache, network="To", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * unblockFromCache, network="To", virtual_network="5",
- ordered="false", vnet_type="unblock";
+ vnet_type="unblock";
MessageBuffer * forwardToCache, network="From", virtual_network="3",
- ordered="false", vnet_type="forward";
+ vnet_type="forward";
MessageBuffer * responseToCache, network="From", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
{
// STATES
state_declaration(State, desc="Cache states", default="L1Cache_State_I") {
// STRUCTURE DEFINITIONS
- MessageBuffer mandatoryQueue, ordered="false";
+ MessageBuffer mandatoryQueue;
// CacheEntry
structure(Entry, desc="...", interface="AbstractCacheEntry") {
return cache_entry.AtomicAccessed;
}
- MessageBuffer triggerQueue, ordered="false";
+ MessageBuffer triggerQueue;
// ** OUT_PORTS **
bool full_bit_dir_enabled := "False";
MessageBuffer * forwardFromDir, network="To", virtual_network="3",
- ordered="false", vnet_type="forward";
+ vnet_type="forward";
MessageBuffer * responseFromDir, network="To", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
// For a finite buffered network, note that the DMA response network only
// works at this relatively lower numbered (lower priority) virtual network
// because the trigger queue decouples cache responses from DMA responses.
MessageBuffer * dmaResponseFromDir, network="To", virtual_network="1",
- ordered="true", vnet_type="response";
+ vnet_type="response";
MessageBuffer * unblockToDir, network="From", virtual_network="5",
- ordered="false", vnet_type="unblock";
+ vnet_type="unblock";
MessageBuffer * responseToDir, network="From", virtual_network="4",
- ordered="false", vnet_type="response";
+ vnet_type="response";
MessageBuffer * requestToDir, network="From", virtual_network="2",
- ordered="false", vnet_type="request", recycle_latency="1";
+ vnet_type="request";
MessageBuffer * dmaRequestToDir, network="From", virtual_network="0",
- ordered="true", vnet_type="request";
+ vnet_type="request";
{
// STATES
state_declaration(State, desc="Directory states", default="Directory_State_E") {
}
}
- MessageBuffer triggerQueue, ordered="true";
+ MessageBuffer triggerQueue;
+ MessageBuffer responseFromMemory;
// ** OUT_PORTS **
out_port(requestQueue_out, ResponseMsg, requestToDir); // For recycling requests
Cycles request_latency := 6;
MessageBuffer * responseFromDir, network="From", virtual_network="1",
- ordered="true", vnet_type="response";
+ vnet_type="response";
MessageBuffer * requestToDir, network="To", virtual_network="0",
- ordered="false", vnet_type="request";
+ vnet_type="request";
{
state_declaration(State, desc="DMA states", default="DMA_State_READY") {
READY, AccessPermission:Invalid, desc="Ready to accept a new request";
Ack, desc="DMA write to memory completed";
}
- MessageBuffer mandatoryQueue, ordered="false";
+ MessageBuffer mandatoryQueue;
State cur_state;
State getState(Address addr) {
// NETWORK BUFFERS
MessageBuffer * requestFromCache, network="To", virtual_network="0",
- ordered="false", vnet_type = "request";
+ vnet_type = "request";
MessageBuffer * forwardFromCache, network="To", virtual_network="1",
- ordered="false", vnet_type = "forward";
+ vnet_type = "forward";
MessageBuffer * responseFromCache, network="To", virtual_network="2",
- ordered="false", vnet_type = "response";
+ vnet_type = "response";
{
// STATES
state_declaration(State, desc="Cache states", default="L1Cache_State_I") {
// STRUCTURE DEFINITIONS
- MessageBuffer mandatoryQueue, ordered="false";
+ MessageBuffer mandatoryQueue;
DataBlock dummyData;
machine(Directory, "Network_test Directory")
: MessageBuffer * requestToDir, network="From", virtual_network="0",
- ordered="false", vnet_type = "request";
+ vnet_type = "request";
MessageBuffer * forwardToDir, network="From", virtual_network="1",
- ordered="false", vnet_type = "forward";
+ vnet_type = "forward";
MessageBuffer * responseToDir, network="From", virtual_network="2",
- ordered="false", vnet_type = "response";
+ vnet_type = "response";
{
// STATES
state_declaration(State, desc="Directory states", default="Directory_State_I") {