- Scriptcontext debugged to be working
- Added a drivable adapter to scriptcontext nodes - Added subsampling to simulated histograms (and as a general option) in order to support Gumtree testing.
This commit is contained in:
16
histsim.c
16
histsim.c
@ -250,6 +250,21 @@
|
||||
return pDriv->fTime;
|
||||
|
||||
}
|
||||
/*-------------------------------------------------------------------------*/
|
||||
HistInt *DefaultSubSample(pHistDriver self, SConnection *pCon,
|
||||
int bank, char *command){
|
||||
HistInt *data = NULL;
|
||||
char error[132];
|
||||
|
||||
assert(bank == 0); /* no bank handling yet.. */
|
||||
|
||||
memset(error,0,132*sizeof(char));
|
||||
data = subSample(self->data, command, error, 132);
|
||||
if(data == NULL){
|
||||
SCWrite(pCon,error,eError);
|
||||
}
|
||||
return data;
|
||||
}
|
||||
/*-------------------------------------------------------------------------*/
|
||||
pHistDriver CreateSIMHM(pStringDict pOpt)
|
||||
{
|
||||
@ -286,6 +301,7 @@
|
||||
pNew->FreePrivate = SimFreePrivate;
|
||||
pNew->Pause = SimPause;
|
||||
pNew->Continue = SimContinue;
|
||||
pNew->SubSample = DefaultSubSample;
|
||||
StringDictAddPair(pOpt,"failrate","-1");
|
||||
|
||||
return pNew;
|
||||
|
Reference in New Issue
Block a user