ruby: remove extra whitespace and correct misspelled words
This commit is contained in:
@@ -44,12 +44,12 @@ def define_options(parser):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def create_system(options, full_system, system, dma_ports, ruby_system):
|
def create_system(options, full_system, system, dma_ports, ruby_system):
|
||||||
|
|
||||||
if buildEnv['PROTOCOL'] != 'MI_example':
|
if buildEnv['PROTOCOL'] != 'MI_example':
|
||||||
panic("This script requires the MI_example protocol to be built.")
|
panic("This script requires the MI_example protocol to be built.")
|
||||||
|
|
||||||
cpu_sequencers = []
|
cpu_sequencers = []
|
||||||
|
|
||||||
#
|
#
|
||||||
# The ruby network creation expects the list of nodes in the system to be
|
# The ruby network creation expects the list of nodes in the system to be
|
||||||
# consistent with the NetDest list. Therefore the l1 controller nodes must be
|
# consistent with the NetDest list. Therefore the l1 controller nodes must be
|
||||||
@@ -143,7 +143,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
#
|
#
|
||||||
dma_seq = DMASequencer(version = i,
|
dma_seq = DMASequencer(version = i,
|
||||||
ruby_system = ruby_system)
|
ruby_system = ruby_system)
|
||||||
|
|
||||||
dma_cntrl = DMA_Controller(version = i,
|
dma_cntrl = DMA_Controller(version = i,
|
||||||
dma_sequencer = dma_seq,
|
dma_sequencer = dma_seq,
|
||||||
transitions_per_cycle = options.ports,
|
transitions_per_cycle = options.ports,
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
panic("This script requires the MOESI_CMP_directory protocol to be built.")
|
panic("This script requires the MOESI_CMP_directory protocol to be built.")
|
||||||
|
|
||||||
cpu_sequencers = []
|
cpu_sequencers = []
|
||||||
|
|
||||||
#
|
#
|
||||||
# The ruby network creation expects the list of nodes in the system to be
|
# The ruby network creation expects the list of nodes in the system to be
|
||||||
# consistent with the NetDest list. Therefore the l1 controller nodes must be
|
# consistent with the NetDest list. Therefore the l1 controller nodes must be
|
||||||
@@ -129,7 +129,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
L2cache = l2_cache,
|
L2cache = l2_cache,
|
||||||
transitions_per_cycle = options.ports,
|
transitions_per_cycle = options.ports,
|
||||||
ruby_system = ruby_system)
|
ruby_system = ruby_system)
|
||||||
|
|
||||||
exec("ruby_system.l2_cntrl%d = l2_cntrl" % i)
|
exec("ruby_system.l2_cntrl%d = l2_cntrl" % i)
|
||||||
l2_cntrl_nodes.append(l2_cntrl)
|
l2_cntrl_nodes.append(l2_cntrl)
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
dma_seq = DMASequencer(version = i,
|
dma_seq = DMASequencer(version = i,
|
||||||
ruby_system = ruby_system,
|
ruby_system = ruby_system,
|
||||||
slave = dma_port)
|
slave = dma_port)
|
||||||
|
|
||||||
dma_cntrl = DMA_Controller(version = i,
|
dma_cntrl = DMA_Controller(version = i,
|
||||||
dma_sequencer = dma_seq,
|
dma_sequencer = dma_seq,
|
||||||
transitions_per_cycle = options.ports,
|
transitions_per_cycle = options.ports,
|
||||||
|
|||||||
@@ -55,9 +55,9 @@ def define_options(parser):
|
|||||||
help="Token_CMP: disable dyanimc timeouts, use fixed latency instead")
|
help="Token_CMP: disable dyanimc timeouts, use fixed latency instead")
|
||||||
parser.add_option("--allow-atomic-migration", action="store_true",
|
parser.add_option("--allow-atomic-migration", action="store_true",
|
||||||
help="allow migratory sharing for atomic only accessed blocks")
|
help="allow migratory sharing for atomic only accessed blocks")
|
||||||
|
|
||||||
def create_system(options, full_system, system, dma_ports, ruby_system):
|
def create_system(options, full_system, system, dma_ports, ruby_system):
|
||||||
|
|
||||||
if buildEnv['PROTOCOL'] != 'MOESI_CMP_token':
|
if buildEnv['PROTOCOL'] != 'MOESI_CMP_token':
|
||||||
panic("This script requires the MOESI_CMP_token protocol to be built.")
|
panic("This script requires the MOESI_CMP_token protocol to be built.")
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
n_tokens = options.num_cpus + 1
|
n_tokens = options.num_cpus + 1
|
||||||
|
|
||||||
cpu_sequencers = []
|
cpu_sequencers = []
|
||||||
|
|
||||||
#
|
#
|
||||||
# The ruby network creation expects the list of nodes in the system to be
|
# The ruby network creation expects the list of nodes in the system to be
|
||||||
# consistent with the NetDest list. Therefore the l1 controller nodes must be
|
# consistent with the NetDest list. Therefore the l1 controller nodes must be
|
||||||
@@ -85,7 +85,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
#
|
#
|
||||||
l2_bits = int(math.log(options.num_l2caches, 2))
|
l2_bits = int(math.log(options.num_l2caches, 2))
|
||||||
block_size_bits = int(math.log(options.cacheline_size, 2))
|
block_size_bits = int(math.log(options.cacheline_size, 2))
|
||||||
|
|
||||||
for i in xrange(options.num_cpus):
|
for i in xrange(options.num_cpus):
|
||||||
#
|
#
|
||||||
# First create the Ruby objects associated with this cpu
|
# First create the Ruby objects associated with this cpu
|
||||||
@@ -153,7 +153,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
N_tokens = n_tokens,
|
N_tokens = n_tokens,
|
||||||
transitions_per_cycle = options.ports,
|
transitions_per_cycle = options.ports,
|
||||||
ruby_system = ruby_system)
|
ruby_system = ruby_system)
|
||||||
|
|
||||||
exec("ruby_system.l2_cntrl%d = l2_cntrl" % i)
|
exec("ruby_system.l2_cntrl%d = l2_cntrl" % i)
|
||||||
l2_cntrl_nodes.append(l2_cntrl)
|
l2_cntrl_nodes.append(l2_cntrl)
|
||||||
|
|
||||||
@@ -212,7 +212,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
dma_seq = DMASequencer(version = i,
|
dma_seq = DMASequencer(version = i,
|
||||||
ruby_system = ruby_system,
|
ruby_system = ruby_system,
|
||||||
slave = dma_port)
|
slave = dma_port)
|
||||||
|
|
||||||
dma_cntrl = DMA_Controller(version = i,
|
dma_cntrl = DMA_Controller(version = i,
|
||||||
dma_sequencer = dma_seq,
|
dma_sequencer = dma_seq,
|
||||||
transitions_per_cycle = options.ports,
|
transitions_per_cycle = options.ports,
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
panic("This script requires the MOESI_hammer protocol to be built.")
|
panic("This script requires the MOESI_hammer protocol to be built.")
|
||||||
|
|
||||||
cpu_sequencers = []
|
cpu_sequencers = []
|
||||||
|
|
||||||
#
|
#
|
||||||
# The ruby network creation expects the list of nodes in the system to be
|
# The ruby network creation expects the list of nodes in the system to be
|
||||||
# consistent with the NetDest list. Therefore the l1 controller nodes must be
|
# consistent with the NetDest list. Therefore the l1 controller nodes must be
|
||||||
@@ -209,7 +209,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
dma_seq = DMASequencer(version = i,
|
dma_seq = DMASequencer(version = i,
|
||||||
ruby_system = ruby_system,
|
ruby_system = ruby_system,
|
||||||
slave = dma_port)
|
slave = dma_port)
|
||||||
|
|
||||||
dma_cntrl = DMA_Controller(version = i,
|
dma_cntrl = DMA_Controller(version = i,
|
||||||
dma_sequencer = dma_seq,
|
dma_sequencer = dma_seq,
|
||||||
transitions_per_cycle = options.ports,
|
transitions_per_cycle = options.ports,
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ def define_options(parser):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def create_system(options, full_system, system, dma_ports, ruby_system):
|
def create_system(options, full_system, system, dma_ports, ruby_system):
|
||||||
|
|
||||||
if buildEnv['PROTOCOL'] != 'Network_test':
|
if buildEnv['PROTOCOL'] != 'Network_test':
|
||||||
panic("This script requires the Network_test protocol to be built.")
|
panic("This script requires the Network_test protocol to be built.")
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ def create_system(options, full_system, system, dma_ports, ruby_system):
|
|||||||
# The Garnet tester protocol does not support fs nor dma
|
# The Garnet tester protocol does not support fs nor dma
|
||||||
#
|
#
|
||||||
assert(dma_ports == [])
|
assert(dma_ports == [])
|
||||||
|
|
||||||
#
|
#
|
||||||
# The ruby network creation expects the list of nodes in the system to be
|
# The ruby network creation expects the list of nodes in the system to be
|
||||||
# consistent with the NetDest list. Therefore the l1 controller nodes must be
|
# consistent with the NetDest list. Therefore the l1 controller nodes must be
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ class MessageBuffer
|
|||||||
Cycles m_time_last_time_size_checked;
|
Cycles m_time_last_time_size_checked;
|
||||||
unsigned int m_size_last_time_size_checked;
|
unsigned int m_size_last_time_size_checked;
|
||||||
|
|
||||||
// variables used so enqueues appear to happen imediately, while
|
// variables used so enqueues appear to happen immediately, while
|
||||||
// pop happen the next cycle
|
// pop happen the next cycle
|
||||||
Cycles m_time_last_time_enqueue;
|
Cycles m_time_last_time_enqueue;
|
||||||
Tick m_time_last_time_pop;
|
Tick m_time_last_time_pop;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class Network : public ClockedObject
|
|||||||
typedef RubyNetworkParams Params;
|
typedef RubyNetworkParams Params;
|
||||||
Network(const Params *p);
|
Network(const Params *p);
|
||||||
const Params * params() const
|
const Params * params() const
|
||||||
{ return dynamic_cast<const Params *>(_params);}
|
{ return dynamic_cast<const Params *>(_params); }
|
||||||
|
|
||||||
virtual ~Network();
|
virtual ~Network();
|
||||||
virtual void init();
|
virtual void init();
|
||||||
|
|||||||
@@ -41,16 +41,16 @@
|
|||||||
#include "mem/ruby/network/fault_model/FaultModel.hh"
|
#include "mem/ruby/network/fault_model/FaultModel.hh"
|
||||||
#include "params/BaseGarnetNetwork.hh"
|
#include "params/BaseGarnetNetwork.hh"
|
||||||
|
|
||||||
class BaseGarnetNetwork : public Network
|
class BaseGarnetNetwork : public Network
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef BaseGarnetNetworkParams Params;
|
typedef BaseGarnetNetworkParams Params;
|
||||||
BaseGarnetNetwork(const Params *p);
|
BaseGarnetNetwork(const Params *p);
|
||||||
|
|
||||||
void init();
|
void init();
|
||||||
int getNiFlitSize() {return m_ni_flit_size; }
|
int getNiFlitSize() { return m_ni_flit_size; }
|
||||||
int getVCsPerVnet() {return m_vcs_per_vnet; }
|
int getVCsPerVnet() { return m_vcs_per_vnet; }
|
||||||
bool isFaultModelEnabled() {return m_enable_fault_model;}
|
bool isFaultModelEnabled() { return m_enable_fault_model; }
|
||||||
FaultModel* fault_model;
|
FaultModel* fault_model;
|
||||||
|
|
||||||
void increment_injected_flits(int vnet) { m_flits_injected[vnet]++; }
|
void increment_injected_flits(int vnet) { m_flits_injected[vnet]++; }
|
||||||
|
|||||||
@@ -54,8 +54,8 @@ class GarnetNetwork_d : public BaseGarnetNetwork
|
|||||||
~GarnetNetwork_d();
|
~GarnetNetwork_d();
|
||||||
void init();
|
void init();
|
||||||
|
|
||||||
int getBuffersPerDataVC() {return m_buffers_per_data_vc; }
|
int getBuffersPerDataVC() { return m_buffers_per_data_vc; }
|
||||||
int getBuffersPerCtrlVC() {return m_buffers_per_ctrl_vc; }
|
int getBuffersPerCtrlVC() { return m_buffers_per_ctrl_vc; }
|
||||||
|
|
||||||
void collateStats();
|
void collateStats();
|
||||||
void regStats();
|
void regStats();
|
||||||
@@ -69,7 +69,7 @@ class GarnetNetwork_d : public BaseGarnetNetwork
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Methods used by Topology to setup the network
|
// Methods used by Topology to setup the network
|
||||||
void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
void makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
||||||
LinkDirection direction,
|
LinkDirection direction,
|
||||||
const NetDest& routing_table_entry);
|
const NetDest& routing_table_entry);
|
||||||
void makeInLink(NodeID src, SwitchID dest, BasicLink* link,
|
void makeInLink(NodeID src, SwitchID dest, BasicLink* link,
|
||||||
|
|||||||
@@ -94,8 +94,8 @@ GarnetNetwork::~GarnetNetwork()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
GarnetNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link,
|
GarnetNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link,
|
||||||
LinkDirection direction,
|
LinkDirection direction,
|
||||||
const NetDest& routing_table_entry)
|
const NetDest& routing_table_entry)
|
||||||
{
|
{
|
||||||
assert(src < m_nodes);
|
assert(src < m_nodes);
|
||||||
@@ -110,8 +110,8 @@ GarnetNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
GarnetNetwork::makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
GarnetNetwork::makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
||||||
LinkDirection direction,
|
LinkDirection direction,
|
||||||
const NetDest& routing_table_entry)
|
const NetDest& routing_table_entry)
|
||||||
{
|
{
|
||||||
assert(dest < m_nodes);
|
assert(dest < m_nodes);
|
||||||
@@ -130,7 +130,7 @@ GarnetNetwork::makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
|||||||
|
|
||||||
void
|
void
|
||||||
GarnetNetwork::makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
|
GarnetNetwork::makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
|
||||||
LinkDirection direction,
|
LinkDirection direction,
|
||||||
const NetDest& routing_table_entry)
|
const NetDest& routing_table_entry)
|
||||||
{
|
{
|
||||||
GarnetIntLink* garnet_link = safe_cast<GarnetIntLink*>(link);
|
GarnetIntLink* garnet_link = safe_cast<GarnetIntLink*>(link);
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ SimpleNetwork::~SimpleNetwork()
|
|||||||
|
|
||||||
// From a switch to an endpoint node
|
// From a switch to an endpoint node
|
||||||
void
|
void
|
||||||
SimpleNetwork::makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
SimpleNetwork::makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
||||||
LinkDirection direction,
|
LinkDirection direction,
|
||||||
const NetDest& routing_table_entry)
|
const NetDest& routing_table_entry)
|
||||||
{
|
{
|
||||||
assert(dest < m_nodes);
|
assert(dest < m_nodes);
|
||||||
@@ -102,8 +102,8 @@ SimpleNetwork::makeOutLink(SwitchID src, NodeID dest, BasicLink* link,
|
|||||||
|
|
||||||
// From an endpoint node to a switch
|
// From an endpoint node to a switch
|
||||||
void
|
void
|
||||||
SimpleNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link,
|
SimpleNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link,
|
||||||
LinkDirection direction,
|
LinkDirection direction,
|
||||||
const NetDest& routing_table_entry)
|
const NetDest& routing_table_entry)
|
||||||
{
|
{
|
||||||
assert(src < m_nodes);
|
assert(src < m_nodes);
|
||||||
@@ -112,8 +112,8 @@ SimpleNetwork::makeInLink(NodeID src, SwitchID dest, BasicLink* link,
|
|||||||
|
|
||||||
// From a switch to a switch
|
// From a switch to a switch
|
||||||
void
|
void
|
||||||
SimpleNetwork::makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
|
SimpleNetwork::makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link,
|
||||||
LinkDirection direction,
|
LinkDirection direction,
|
||||||
const NetDest& routing_table_entry)
|
const NetDest& routing_table_entry)
|
||||||
{
|
{
|
||||||
// Create a set of new MessageBuffers
|
// Create a set of new MessageBuffers
|
||||||
|
|||||||
@@ -61,7 +61,8 @@ class BankedArray
|
|||||||
unsigned int mapIndexToBank(int64 idx);
|
unsigned int mapIndexToBank(int64 idx);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BankedArray(unsigned int banks, Cycles accessLatency, unsigned int startIndexBit);
|
BankedArray(unsigned int banks, Cycles accessLatency,
|
||||||
|
unsigned int startIndexBit);
|
||||||
|
|
||||||
// Note: We try the access based on the cache index, not the address
|
// Note: We try the access based on the cache index, not the address
|
||||||
// This is so we don't get aliasing on blocks being replaced
|
// This is so we don't get aliasing on blocks being replaced
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ DMASequencer::issueNext()
|
|||||||
assert(m_mandatory_q_ptr != NULL);
|
assert(m_mandatory_q_ptr != NULL);
|
||||||
m_mandatory_q_ptr->enqueue(msg);
|
m_mandatory_q_ptr->enqueue(msg);
|
||||||
active_request.bytes_issued += msg->getLen();
|
active_request.bytes_issued += msg->getLen();
|
||||||
DPRINTF(RubyDma,
|
DPRINTF(RubyDma,
|
||||||
"DMA request bytes issued %d, bytes completed %d, total len %d\n",
|
"DMA request bytes issued %d, bytes completed %d, total len %d\n",
|
||||||
active_request.bytes_issued, active_request.bytes_completed,
|
active_request.bytes_issued, active_request.bytes_completed,
|
||||||
active_request.len);
|
active_request.len);
|
||||||
|
|||||||
@@ -363,7 +363,7 @@ RubyPort::ruby_hit_callback(PacketPtr pkt)
|
|||||||
if (!retryList.empty()) {
|
if (!retryList.empty()) {
|
||||||
//
|
//
|
||||||
// Record the current list of ports to retry on a temporary list before
|
// Record the current list of ports to retry on a temporary list before
|
||||||
// calling sendRetry on those ports. sendRetry will cause an
|
// calling sendRetry on those ports. sendRetry will cause an
|
||||||
// immediate retry, which may result in the ports being put back on the
|
// immediate retry, which may result in the ports being put back on the
|
||||||
// list. Therefore we want to clear the retryList before calling
|
// list. Therefore we want to clear the retryList before calling
|
||||||
// sendRetry.
|
// sendRetry.
|
||||||
@@ -422,7 +422,7 @@ RubyPort::MemSlavePort::hitCallback(PacketPtr pkt)
|
|||||||
{
|
{
|
||||||
bool needsResponse = pkt->needsResponse();
|
bool needsResponse = pkt->needsResponse();
|
||||||
|
|
||||||
// Unless specified at configuraiton, all responses except failed SC
|
// Unless specified at configuraiton, all responses except failed SC
|
||||||
// and Flush operations access M5 physical memory.
|
// and Flush operations access M5 physical memory.
|
||||||
bool accessPhysMem = access_backing_store;
|
bool accessPhysMem = access_backing_store;
|
||||||
|
|
||||||
|
|||||||
@@ -347,7 +347,7 @@ Sequencer::handleLlsc(const Address& address, SequencerRequest* request)
|
|||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// For successful SC requests, indicate the success to the cpu by
|
// For successful SC requests, indicate the success to the cpu by
|
||||||
// setting the extra data to one.
|
// setting the extra data to one.
|
||||||
//
|
//
|
||||||
request->pkt->req->setExtraData(1);
|
request->pkt->req->setExtraData(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,16 +86,16 @@ RubySystem::RubySystem(const Params *p)
|
|||||||
void
|
void
|
||||||
RubySystem::registerNetwork(Network* network_ptr)
|
RubySystem::registerNetwork(Network* network_ptr)
|
||||||
{
|
{
|
||||||
m_network = network_ptr;
|
m_network = network_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
RubySystem::registerAbstractController(AbstractController* cntrl)
|
RubySystem::registerAbstractController(AbstractController* cntrl)
|
||||||
{
|
{
|
||||||
m_abs_cntrl_vec.push_back(cntrl);
|
m_abs_cntrl_vec.push_back(cntrl);
|
||||||
|
|
||||||
MachineID id = cntrl->getMachineID();
|
MachineID id = cntrl->getMachineID();
|
||||||
g_abs_controls[id.getType()][id.getNum()] = cntrl;
|
g_abs_controls[id.getType()][id.getNum()] = cntrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
RubySystem::~RubySystem()
|
RubySystem::~RubySystem()
|
||||||
@@ -189,7 +189,7 @@ RubySystem::serializeOld(CheckpointOut &cp)
|
|||||||
// Restore curTick
|
// Restore curTick
|
||||||
setCurTick(curtick_original);
|
setCurTick(curtick_original);
|
||||||
|
|
||||||
// Aggergate the trace entries together into a single array
|
// Aggregate the trace entries together into a single array
|
||||||
uint8_t *raw_data = new uint8_t[4096];
|
uint8_t *raw_data = new uint8_t[4096];
|
||||||
uint64 cache_trace_size = m_cache_recorder->aggregateRecords(&raw_data,
|
uint64 cache_trace_size = m_cache_recorder->aggregateRecords(&raw_data,
|
||||||
4096);
|
4096);
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ class $py_ident(RubyController):
|
|||||||
"in StateMachine.py", param.type_ast.type.c_ident)
|
"in StateMachine.py", param.type_ast.type.c_ident)
|
||||||
code.dedent()
|
code.dedent()
|
||||||
code.write(path, '%s.py' % py_ident)
|
code.write(path, '%s.py' % py_ident)
|
||||||
|
|
||||||
|
|
||||||
def printControllerHH(self, path):
|
def printControllerHH(self, path):
|
||||||
'''Output the method declarations for the class declaration'''
|
'''Output the method declarations for the class declaration'''
|
||||||
@@ -509,7 +509,7 @@ $c_ident::$c_ident(const Params *p)
|
|||||||
|
|
||||||
if re.compile("sequencer").search(param.ident):
|
if re.compile("sequencer").search(param.ident):
|
||||||
code('m_${{param.ident}}_ptr->setController(this);')
|
code('m_${{param.ident}}_ptr->setController(this);')
|
||||||
|
|
||||||
for var in self.objects:
|
for var in self.objects:
|
||||||
if var.ident.find("mandatoryQueue") >= 0:
|
if var.ident.find("mandatoryQueue") >= 0:
|
||||||
code('''
|
code('''
|
||||||
@@ -1501,7 +1501,7 @@ if (!checkResourceAvailable(%s_RequestType_%s, addr)) {
|
|||||||
</TR>
|
</TR>
|
||||||
''')
|
''')
|
||||||
code('''
|
code('''
|
||||||
<!- Column footer->
|
<!- Column footer->
|
||||||
<TR>
|
<TR>
|
||||||
<TH> </TH>
|
<TH> </TH>
|
||||||
''')
|
''')
|
||||||
|
|||||||
@@ -470,8 +470,8 @@ enum ${{self.c_ident}} {
|
|||||||
# For each field
|
# For each field
|
||||||
for i,(ident,enum) in enumerate(self.enums.iteritems()):
|
for i,(ident,enum) in enumerate(self.enums.iteritems()):
|
||||||
desc = enum.get("desc", "No description avaliable")
|
desc = enum.get("desc", "No description avaliable")
|
||||||
if i == 0:
|
if i == 0:
|
||||||
init = ' = %s_FIRST' % self.c_ident
|
init = ' = %s_FIRST' % self.c_ident
|
||||||
else:
|
else:
|
||||||
init = ''
|
init = ''
|
||||||
code('${{self.c_ident}}_${{enum.ident}}$init, /**< $desc */')
|
code('${{self.c_ident}}_${{enum.ident}}$init, /**< $desc */')
|
||||||
|
|||||||
Reference in New Issue
Block a user