summaryrefslogtreecommitdiff
path: root/src/intersim/fly.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/intersim/fly.hpp')
-rw-r--r--src/intersim/fly.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/intersim/fly.hpp b/src/intersim/fly.hpp
new file mode 100644
index 0000000..76ebb12
--- /dev/null
+++ b/src/intersim/fly.hpp
@@ -0,0 +1,26 @@
+#ifndef _FLY_HPP_
+#define _FLY_HPP_
+
+#include "network.hpp"
+
+class KNFly : public Network {
+
+ int _k;
+ int _n;
+
+ void _ComputeSize( const Configuration &config );
+ void _BuildNet( const Configuration &config );
+
+ int _OutChannel( int stage, int addr, int port ) const;
+ int _InChannel( int stage, int addr, int port ) const;
+
+public:
+ KNFly( const Configuration &config );
+
+ int GetN( ) const;
+ int GetK( ) const;
+
+ double Capacity( ) const;
+};
+
+#endif