From c514ad9b097ef73b14abbf4f5af3617c54dbb154 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 9 Sep 2010 14:15:41 -0700 Subject: code_formatter: make it easier to insert whitespace a newline by just doing "code()". indent() and dedent() now take a "count" parameter to indent/dedent multiple levels. --- src/mem/slicc/symbols/StateMachine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mem/slicc') diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py index e57275527..c1926fbab 100644 --- a/src/mem/slicc/symbols/StateMachine.py +++ b/src/mem/slicc/symbols/StateMachine.py @@ -559,17 +559,17 @@ $vid->setDescription("[Version " + to_string(m_version) + ", ${ident}, name=${{v # Set the queue consumers - code.insert_newline() + code() for port in self.in_ports: code('${{port.code}}.setConsumer(this);') # Set the queue descriptions - code.insert_newline() + code() for port in self.in_ports: code('${{port.code}}.setDescription("[Version " + to_string(m_version) + ", $ident, $port]");') # Initialize the transition profiling - code.insert_newline() + code() for trans in self.transitions: # Figure out if we stall stall = False -- cgit v1.2.3