-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathans_t.h
51 lines (39 loc) · 1.44 KB
/
ans_t.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//------------------------------------------------------------------------------
#ifndef __Ans_t__H
#define __Ans_t__H
#include "evpump.hpp"
#include "circuit_t.h"
#include <string>
using namespace std;
//==============================================================================
class Ans_t
{
public:
Ans_t(int,char* []);
virtual ~ Ans_t();
void Dump();
void MonList(int,char **);
void OutAns(string,double);
void PrimeQ();
Circuit_t Cct; // Circuit under simulation
EvPump<EvTime_t> * pEv; // Event pump
long t0; // Wallclock
//vector<string> vMon; // Devices to be monitored
struct stats_t {
stats_t():n_Clk(0),n_Sou(0),n_Neu(0){}
unsigned n_Clk; // Clock pulses
unsigned n_Sou; // Source pulses
unsigned n_Neu; // Neuron events
} stats;
struct Hist_t {
Hist_t(long,EvTime_t,unsigned,double);
void Dump();
long wt; // Wallclock time
EvTime_t st; // Simulated time
unsigned qs; // Queue size
double er; // Event handling rate
};
vector<Hist_t> vHist; // Event history store
};
//==============================================================================
#endif