InPortDeclAST.py (11030:17240f381d6a) InPortDeclAST.py (11049:dfb0aa3f0649)
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 75 unchanged lines hidden (view full) ---

84 param_types.append(machine.TBEType)
85
86 # Add the trigger method - FIXME, this is a bit dirty
87 pairs = { "external" : "yes" }
88 trigger_func_name = "trigger"
89 for param in param_types:
90 trigger_func_name += "_" + param.ident
91 func = Func(self.symtab, trigger_func_name, "trigger", self.location,
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 75 unchanged lines hidden (view full) ---

84 param_types.append(machine.TBEType)
85
86 # Add the trigger method - FIXME, this is a bit dirty
87 pairs = { "external" : "yes" }
88 trigger_func_name = "trigger"
89 for param in param_types:
90 trigger_func_name += "_" + param.ident
91 func = Func(self.symtab, trigger_func_name, "trigger", self.location,
92 void_type, param_types, [], [], "", pairs)
92 void_type, param_types, [], "", pairs)
93 symtab.newSymbol(func)
94
95 # Add the stallPort method - this hacks reschedules the controller
96 # for stalled messages that don't trigger events
97 func = Func(self.symtab, "stallPort", "stallPort", self.location,
93 symtab.newSymbol(func)
94
95 # Add the stallPort method - this hacks reschedules the controller
96 # for stalled messages that don't trigger events
97 func = Func(self.symtab, "stallPort", "stallPort", self.location,
98 void_type, [], [], [], "", pairs)
98 void_type, [], [], "", pairs)
99 symtab.newSymbol(func)
100
101 param_types = []
102 # Check for Event2
103 type = symtab.find("Event", Type)
104 if type is None:
105 self.error("in_port decls require 'Event' enumeration")
106

--- 20 unchanged lines hidden ---
99 symtab.newSymbol(func)
100
101 param_types = []
102 # Check for Event2
103 type = symtab.find("Event", Type)
104 if type is None:
105 self.error("in_port decls require 'Event' enumeration")
106

--- 20 unchanged lines hidden ---