summaryrefslogtreecommitdiff
path: root/src/intersim/credit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/intersim/credit.cpp')
-rw-r--r--src/intersim/credit.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/intersim/credit.cpp b/src/intersim/credit.cpp
new file mode 100644
index 0000000..5090943
--- /dev/null
+++ b/src/intersim/credit.cpp
@@ -0,0 +1,16 @@
+#include "booksim.hpp"
+#include "credit.hpp"
+
+Credit::Credit( int max_vcs )
+{
+ vc = new int [max_vcs];
+ vc_cnt = 0;
+
+ tail = false;
+ id = -1;
+}
+
+Credit::~Credit( )
+{
+ delete [] vc;
+}