summaryrefslogtreecommitdiff
path: root/dev/etherlink.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2005-11-02 14:47:37 -0500
committerAli Saidi <saidi@eecs.umich.edu>2005-11-02 14:47:37 -0500
commit07ef1170e0bc04a0490d229c3e58c4a70fa4a1f1 (patch)
tree7c9fd0881a71ecf4a33ba6aaf00df8ed127cc8d5 /dev/etherlink.hh
parent0b3c27f14975718c00367e901fb548fda2bc7dd1 (diff)
downloadgem5-07ef1170e0bc04a0490d229c3e58c4a70fa4a1f1.tar.xz
Add ability to slightly perturb latency of ethernet/memory
base/random.cc: Change normal random function to Xrand48 so we have one source of randomness for everything. base/random.hh: Add uniform distribution ability to random functions dev/etherlink.cc: dev/etherlink.hh: Add ability to slightly perturb latency of ethernet --HG-- extra : convert_revision : f7f856761fd525c233ae2a6d993b1fd702b488f7
Diffstat (limited to 'dev/etherlink.hh')
-rw-r--r--dev/etherlink.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/etherlink.hh b/dev/etherlink.hh
index b9e6047fc..305007d9e 100644
--- a/dev/etherlink.hh
+++ b/dev/etherlink.hh
@@ -66,6 +66,7 @@ class EtherLink : public SimObject
double ticksPerByte;
Tick linkDelay;
+ Tick delayVar;
EtherDump *dump;
protected:
@@ -83,7 +84,7 @@ class EtherLink : public SimObject
public:
Link(const std::string &name, EtherLink *p, int num,
- double rate, Tick delay, EtherDump *dump);
+ double rate, Tick delay, Tick delay_var, EtherDump *dump);
~Link() {}
const std::string name() const { return objName; }
@@ -118,7 +119,7 @@ class EtherLink : public SimObject
public:
EtherLink(const std::string &name, EtherInt *peer0, EtherInt *peer1,
- double rate, Tick delay, EtherDump *dump);
+ double rate, Tick delay, Tick delayVar, EtherDump *dump);
virtual ~EtherLink();
virtual void serialize(std::ostream &os);