URL
https://opencores.org/ocsvn/systemc_rng/systemc_rng/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 6 |
Line 44... |
Line 44... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.1.1.1 2004/08/19 14:27:14 jcastillo
|
|
// First import
|
|
//
|
|
|
#include "systemc.h"
|
#include "systemc.h"
|
#include "stimulus.h"
|
#include "stimulus.h"
|
|
|
void stimulus::tb(){
|
void
|
|
stimulus::tb ()
|
|
{
|
|
|
wait(clk->posedge_event());
|
wait(clk->posedge_event());
|
reset.write(0);
|
reset.write(0);
|
wait(clk->posedge_event());
|
wait(clk->posedge_event());
|
reset.write(1);
|
reset.write(1);
|
wait(clk->posedge_event());
|
wait(clk->posedge_event());
|
loadseed_o.write(1);
|
loadseed_o.write(1);
|
seed_o.write(0x12678);
|
seed_o.write(0x12678);
|
wait(clk->posedge_event());
|
wait(clk->posedge_event());
|
loadseed_o.write(0);
|
loadseed_o.write(0);
|
for(;;){
|
for (;;)
|
|
{
|
wait(clk->posedge_event());
|
wait(clk->posedge_event());
|
cout << (unsigned int)number_i.read() << endl;
|
cout << (unsigned int)number_i.read() << endl;
|
}
|
}
|
|
|
}
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.