StateMachine.py (11113:5a2e1b1b5c43) StateMachine.py (11116:d6fb95dbf3e2)
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# Copyright (c) 2013 Advanced Micro Devices, Inc.
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

1075 code.dedent()
1076 code('''
1077 // If we got this far, we have nothing left todo or something went
1078 // wrong''')
1079 for buf_name, ports in in_msg_bufs.items():
1080 if len(ports) > 1:
1081 # only produce checks when a buffer is shared by multiple ports
1082 code('''
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# Copyright (c) 2013 Advanced Micro Devices, Inc.
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

1075 code.dedent()
1076 code('''
1077 // If we got this far, we have nothing left todo or something went
1078 // wrong''')
1079 for buf_name, ports in in_msg_bufs.items():
1080 if len(ports) > 1:
1081 # only produce checks when a buffer is shared by multiple ports
1082 code('''
1083 if (${{buf_name}}->isReady() && rejected[${{port_to_buf_map[ports[0]]}}] == ${{len(ports)}})
1083 if (${{buf_name}}->isReady(clockEdge()) && rejected[${{port_to_buf_map[ports[0]]}}] == ${{len(ports)}})
1084 {
1085 // no port claimed the message on the top of this buffer
1086 panic("Runtime Error at Ruby Time: %d. "
1087 "All ports rejected a message. "
1088 "You are probably sending a message type to this controller "
1089 "over a virtual network that do not define an in_port for "
1090 "the incoming message type.\\n",
1091 Cycles(1));

--- 444 unchanged lines hidden ---
1084 {
1085 // no port claimed the message on the top of this buffer
1086 panic("Runtime Error at Ruby Time: %d. "
1087 "All ports rejected a message. "
1088 "You are probably sending a message type to this controller "
1089 "over a virtual network that do not define an in_port for "
1090 "the incoming message type.\\n",
1091 Cycles(1));

--- 444 unchanged lines hidden ---