OpenCores
URL https://opencores.org/ocsvn/sc2v/sc2v/trunk

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [examples/] [rng.h] - Diff between revs 31 and 32

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 31 Rev 32
Line 41... Line 41...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.2  2005/09/16 00:30:33  jcastillo
 
// no message
 
//
// Revision 1.1.1.1  2004/10/08 14:04:10  jcastillo
// Revision 1.1.1.1  2004/10/08 14:04:10  jcastillo
// First import
// First import
//
//
// Revision 1.2  2004/08/30 17:01:50  jcastillo
// Revision 1.2  2004/08/30 17:01:50  jcastillo
// Used indent command
// Used indent command
Line 66... Line 69...
  sc_out < sc_uint < 32 > >number_o;
  sc_out < sc_uint < 32 > >number_o;
 
 
  sc_signal < sc_uint < 43 > >LFSR_reg;
  sc_signal < sc_uint < 43 > >LFSR_reg;
  sc_signal < sc_uint < 37 > >CASR_reg;
  sc_signal < sc_uint < 37 > >CASR_reg;
 
 
  void CASR ();
 
  void LFSR ();
 
  void combinate ();
 
 
 
  SC_CTOR (rng)
  SC_CTOR (rng)
  {
  {
 
 
    SC_METHOD (CASR);
    SC_METHOD (CASR);
    sensitive_pos << clk;
    sensitive_pos << clk;
Line 85... Line 84...
 
 
    SC_METHOD (combinate);
    SC_METHOD (combinate);
    sensitive_pos << clk;
    sensitive_pos << clk;
    sensitive_neg << reset;
    sensitive_neg << reset;
 
 
  }
  };
 
  void CASR ();
 
  void LFSR ();
 
  void combinate ();
 
 
};
};
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.