diff options
author | David Hashe <david.hashe@amd.com> | 2015-07-20 09:15:18 -0500 |
---|---|---|
committer | David Hashe <david.hashe@amd.com> | 2015-07-20 09:15:18 -0500 |
commit | 6a288d9de3422024b9e99caa8b3717d98e467314 (patch) | |
tree | cf47855e262bccc800de1da1325c4be3f3e1dd9a /src/mem/slicc/symbols/Var.py | |
parent | b609b032aaa02348884bd66396b39a3ad1a056cc (diff) | |
download | gem5-6a288d9de3422024b9e99caa8b3717d98e467314.tar.xz |
slicc: support for multiple message types on the same buffer
This patch allows SLICC protocols to use more than one message type with a
message buffer. For example, you can declare two in ports as such:
in_port(ResponseQueue_in, ResponseMsg, responseFromDir, rank=3) { ... }
in_port(tgtResponseQueue_in, TgtResponseMsg, responseFromDir, rank=2) { ... }
Diffstat (limited to 'src/mem/slicc/symbols/Var.py')
-rw-r--r-- | src/mem/slicc/symbols/Var.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/slicc/symbols/Var.py b/src/mem/slicc/symbols/Var.py index 2a4ef23db..85b9e67cd 100644 --- a/src/mem/slicc/symbols/Var.py +++ b/src/mem/slicc/symbols/Var.py @@ -29,9 +29,10 @@ from slicc.symbols.Symbol import Symbol class Var(Symbol): def __init__(self, symtab, ident, location, type, code, pairs, - machine=None): + machine=None, buffer_expr=""): super(Var, self).__init__(symtab, ident, location, pairs) + self.buffer_expr = buffer_expr self.machine = machine self.type = type self.code = code |