- Added a multiple histogram memory control module. This required a

tiny change in the countable interface which in turn required updating
  of header file includes in a lot of files.
- Some small fixes to TRICS writing as well.
This commit is contained in:
cvs
2001-06-08 15:18:35 +00:00
parent 2d16479717
commit 8f84d45dd6
48 changed files with 671 additions and 157 deletions

View File

@ -41,9 +41,7 @@
#include <assert.h>
#include <math.h>
#include "fortify.h"
#include "conman.h"
#include "obdes.h"
#include "interface.h"
#include "sics.h"
#include "countdriv.h"
#include "counter.h"
#include "stringdict.h"
@ -65,7 +63,9 @@
static int SimConfig(pHistDriver self, SConnection *pCon,
pStringDict pOption, SicsInterp *pSics)
{
int i, iLength = 1;
int i, iLength = 1, status;
char pData[132];
float fFail;
if(self->eHistMode == eHTOF)
{
@ -76,6 +76,18 @@
iLength *= self->iTimeChan;
self->iLength = iLength;
}
/*
deal with failrate
*/
status = StringDictGet(pOption,"failrate",pData,131);
if(status)
{
fFail = atof(pData);
free(self->pPriv);
self->pPriv = NewSIMCounter("HistoSim",fFail);
}
return 1;
}
/*-------------------------------------------------------------------------*/
@ -265,6 +277,7 @@
pNew->FreePrivate = SimFreePrivate;
pNew->Pause = SimPause;
pNew->Continue = SimContinue;
StringDictAddPair(pOpt,"failrate","-1");
return pNew;
}