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

Subversion Repositories adv_debug_sys

[/] [adv_debug_sys/] [trunk/] [Hardware/] [adv_dbg_if/] [rtl/] [verilog/] [adbg_crc32.v] - Diff between revs 32 and 69

Show entire file | Details | Blame | View Log

Rev 32 Rev 69
Line 24... Line 24...
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: adbg_crc32.v,v $
// $Log: adbg_crc32.v,v $
 
// Revision 1.3  2011-10-24 02:25:11  natey
 
// Removed extraneous '#1' delays, which were a holdover from the original
 
// versions in the previous dbg_if core.
 
//
// Revision 1.2  2010-01-10 22:54:10  Nathan
// Revision 1.2  2010-01-10 22:54:10  Nathan
// Update copyright dates
// Update copyright dates
//
//
// Revision 1.1  2008/07/22 20:28:29  Nathan
// Revision 1.1  2008/07/22 20:28:29  Nathan
// Changed names of all files and modules (prefixed an a, for advanced).  Cleanup, indenting.  No functional changes.
// Changed names of all files and modules (prefixed an a, for advanced).  Cleanup, indenting.  No functional changes.
Line 98... Line 102...
assign new_crc[31] =           data ^ crc[0];
assign new_crc[31] =           data ^ crc[0];
 
 
always @ (posedge clk or posedge rst)
always @ (posedge clk or posedge rst)
begin
begin
  if(rst)
  if(rst)
    crc[31:0] <= #1 32'hffffffff;
    crc[31:0] <= 32'hffffffff;
  else if(clr)
  else if(clr)
    crc[31:0] <= #1 32'hffffffff;
    crc[31:0] <= 32'hffffffff;
  else if(enable)
  else if(enable)
    crc[31:0] <= #1 new_crc;
    crc[31:0] <= new_crc;
  else if (shift)
  else if (shift)
    crc[31:0] <= #1 {1'b0, crc[31:1]};
    crc[31:0] <= {1'b0, crc[31:1]};
end
end
 
 
 
 
//assign crc_match = (crc == 32'h0);
//assign crc_match = (crc == 32'h0);
assign crc_out = crc; //[31];
assign crc_out = crc; //[31];

powered by: WebSVN 2.1.0

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