Garnet_standalone-msg.sm revision 14184
114184Sgabeblack@google.com/*
214184Sgabeblack@google.com * Copyright (c) 2009 Advanced Micro Devices, Inc.
314184Sgabeblack@google.com * All rights reserved.
414184Sgabeblack@google.com *
514184Sgabeblack@google.com * Redistribution and use in source and binary forms, with or without
614184Sgabeblack@google.com * modification, are permitted provided that the following conditions are
714184Sgabeblack@google.com * met: redistributions of source code must retain the above copyright
814184Sgabeblack@google.com * notice, this list of conditions and the following disclaimer;
914184Sgabeblack@google.com * redistributions in binary form must reproduce the above copyright
1014184Sgabeblack@google.com * notice, this list of conditions and the following disclaimer in the
1114184Sgabeblack@google.com * documentation and/or other materials provided with the distribution;
1214184Sgabeblack@google.com * neither the name of the copyright holders nor the names of its
1314184Sgabeblack@google.com * contributors may be used to endorse or promote products derived from
1414184Sgabeblack@google.com * this software without specific prior written permission.
1514184Sgabeblack@google.com *
1614184Sgabeblack@google.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1714184Sgabeblack@google.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1814184Sgabeblack@google.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1914184Sgabeblack@google.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2014184Sgabeblack@google.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2114184Sgabeblack@google.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2214184Sgabeblack@google.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2314184Sgabeblack@google.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2414184Sgabeblack@google.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2514184Sgabeblack@google.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2614184Sgabeblack@google.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2714184Sgabeblack@google.com */
2814184Sgabeblack@google.com
2914184Sgabeblack@google.com
3014184Sgabeblack@google.com// CoherenceRequestType
3114184Sgabeblack@google.comenumeration(CoherenceRequestType, desc="...") {
3214184Sgabeblack@google.com  MSG,       desc="Message";
3314184Sgabeblack@google.com}
3414184Sgabeblack@google.com
3514184Sgabeblack@google.com// RequestMsg (and also forwarded requests)
3614184Sgabeblack@google.comstructure(RequestMsg, desc="...", interface="Message") {
3714184Sgabeblack@google.com  Addr addr,                   desc="Physical address for this request";
3814184Sgabeblack@google.com  CoherenceRequestType Type,   desc="Type of request (GetS, GetX, PutX, etc)";
3914184Sgabeblack@google.com  MachineID Requestor,         desc="Node who initiated the request";
4014184Sgabeblack@google.com  NetDest Destination,         desc="Multicast destination mask";
4114184Sgabeblack@google.com  DataBlock DataBlk,           desc="data for the cache line";
4214184Sgabeblack@google.com  MessageSizeType MessageSize, desc="size category of the message";
4314184Sgabeblack@google.com
4414184Sgabeblack@google.com  bool functionalRead(Packet *pkt) {
4514184Sgabeblack@google.com    error("Garnet_standalone does not support functional accesses!");
4614184Sgabeblack@google.com  }
4714184Sgabeblack@google.com
4814184Sgabeblack@google.com  bool functionalWrite(Packet *pkt) {
4914184Sgabeblack@google.com    error("Garnet_standalone does not support functional accesses!");
5014184Sgabeblack@google.com  }
5114184Sgabeblack@google.com}
52