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

Subversion Repositories systemc_rng

[/] [systemc_rng/] [trunk/] [rtl/] [systemc/] [rng.cpp] - Diff between revs 9 and 10

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

Rev 9 Rev 10
Line 44... Line 44...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.4  2005/07/29 09:12:41  jcastillo
 
// Correct bit 28 of CASR
 
//
// Revision 1.3  2004/09/23 09:45:30  jcastillo
// Revision 1.3  2004/09/23 09:45:30  jcastillo
// Macro removed
// Macro removed
//
//
// 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 84... Line 87...
    }
    }
  else
  else
    {
    {
      if (loadseed_i.read ())
      if (loadseed_i.read ())
        {
        {
          LFSR_var.range (42, 31) = 0;
          LFSR_var.range (42, 32) = 0;
          LFSR_var.range (31, 0) = seed_i.read ();
          LFSR_var.range (31, 0) = seed_i.read ();
          LFSR_reg.write (LFSR_var);
          LFSR_reg.write (LFSR_var);
 
 
        }
        }
      else
      else
Line 157... Line 160...
    }
    }
  else
  else
    {
    {
      if (loadseed_i.read ())
      if (loadseed_i.read ())
        {
        {
          CASR_var.range (36, 31) = 0;
          CASR_var.range (36, 32) = 0;
          CASR_var.range (31, 0) = seed_i.read ();
          CASR_var.range (31, 0) = seed_i.read ();
          CASR_reg.write (CASR_var);
          CASR_reg.write (CASR_var);
 
 
        }
        }
      else
      else
Line 174... Line 177...
          CASR_out[33] = CASR_var[32] ^ CASR_var[34];
          CASR_out[33] = CASR_var[32] ^ CASR_var[34];
          CASR_out[32] = CASR_var[31] ^ CASR_var[33];
          CASR_out[32] = CASR_var[31] ^ CASR_var[33];
          CASR_out[31] = CASR_var[30] ^ CASR_var[32];
          CASR_out[31] = CASR_var[30] ^ CASR_var[32];
          CASR_out[30] = CASR_var[29] ^ CASR_var[31];
          CASR_out[30] = CASR_var[29] ^ CASR_var[31];
          CASR_out[29] = CASR_var[28] ^ CASR_var[30];
          CASR_out[29] = CASR_var[28] ^ CASR_var[30];
          CASR_out[28] = CASR_var[27] ^ CASR_var[28] ^ CASR_var[29];
          CASR_out[28] = CASR_var[27] ^ CASR_var[29];
          CASR_out[27] = CASR_var[26] ^ CASR_var[28];
          CASR_out[27] = CASR_var[26] ^ CASR_var[27] ^ CASR_var[28];
          CASR_out[26] = CASR_var[25] ^ CASR_var[27];
          CASR_out[26] = CASR_var[25] ^ CASR_var[27];
          CASR_out[25] = CASR_var[24] ^ CASR_var[26];
          CASR_out[25] = CASR_var[24] ^ CASR_var[26];
          CASR_out[24] = CASR_var[23] ^ CASR_var[25];
          CASR_out[24] = CASR_var[23] ^ CASR_var[25];
          CASR_out[23] = CASR_var[22] ^ CASR_var[24];
          CASR_out[23] = CASR_var[22] ^ CASR_var[24];
          CASR_out[22] = CASR_var[21] ^ CASR_var[23];
          CASR_out[22] = CASR_var[21] ^ CASR_var[23];

powered by: WebSVN 2.1.0

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