MessageBuffer.py (11111:6da33e720481) MessageBuffer.py (13062:6f9defe1c11e)
1# Copyright (c) 2015 Mark D. Hill and David A. Wood.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

32
33class MessageBuffer(SimObject):
34 type = 'MessageBuffer'
35 cxx_class = 'MessageBuffer'
36 cxx_header = "mem/ruby/network/MessageBuffer.hh"
37 ordered = Param.Bool(False, "Whether the buffer is ordered")
38 buffer_size = Param.Unsigned(0, "Maximum number of entries to buffer \
39 (0 allows infinite entries)")
1# Copyright (c) 2015 Mark D. Hill and David A. Wood.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

32
33class MessageBuffer(SimObject):
34 type = 'MessageBuffer'
35 cxx_class = 'MessageBuffer'
36 cxx_header = "mem/ruby/network/MessageBuffer.hh"
37 ordered = Param.Bool(False, "Whether the buffer is ordered")
38 buffer_size = Param.Unsigned(0, "Maximum number of entries to buffer \
39 (0 allows infinite entries)")
40 randomization = Param.Bool(False, "")
40 randomization = Param.Bool(False, "Insert random delays on message \
41 enqueue times (enforced to have \
42 random delays if RubySystem \
43 randomization flag is True)")
41
42 master = MasterPort("Master port to MessageBuffer receiver")
43 slave = SlavePort("Slave port from MessageBuffer sender")
44
45 master = MasterPort("Master port to MessageBuffer receiver")
46 slave = SlavePort("Slave port from MessageBuffer sender")