port.hh (3074:e87fbe7941f8) | port.hh (3091:dba513d68c16) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 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; --- 238 unchanged lines hidden (view full) --- 247 248class FunctionalPort : public Port 249{ 250 public: 251 FunctionalPort(const std::string &_name) 252 : Port(_name) 253 {} 254 | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 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; --- 238 unchanged lines hidden (view full) --- 247 248class FunctionalPort : public Port 249{ 250 public: 251 FunctionalPort(const std::string &_name) 252 : Port(_name) 253 {} 254 |
255 protected: |
|
255 virtual bool recvTiming(Packet *pkt) { panic("FuncPort is UniDir"); } 256 virtual Tick recvAtomic(Packet *pkt) { panic("FuncPort is UniDir"); } 257 virtual void recvFunctional(Packet *pkt) { panic("FuncPort is UniDir"); } 258 virtual void recvStatusChange(Status status) {} 259 | 256 virtual bool recvTiming(Packet *pkt) { panic("FuncPort is UniDir"); } 257 virtual Tick recvAtomic(Packet *pkt) { panic("FuncPort is UniDir"); } 258 virtual void recvFunctional(Packet *pkt) { panic("FuncPort is UniDir"); } 259 virtual void recvStatusChange(Status status) {} 260 |
261 public: |
|
260 /** a write function that also does an endian conversion. */ 261 template <typename T> 262 inline void writeHtoG(Addr addr, T d); 263 264 /** a read function that also does an endian conversion. */ 265 template <typename T> 266 inline T readGtoH(Addr addr); 267 --- 16 unchanged lines hidden --- | 262 /** a write function that also does an endian conversion. */ 263 template <typename T> 264 inline void writeHtoG(Addr addr, T d); 265 266 /** a read function that also does an endian conversion. */ 267 template <typename T> 268 inline T readGtoH(Addr addr); 269 --- 16 unchanged lines hidden --- |