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

Subversion Repositories ac97

[/] [ac97/] [trunk/] [rtl/] [verilog/] [ac97_defines.v] - Diff between revs 6 and 10

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

Rev 6 Rev 10
Line 35... Line 35...
////                                                             ////
////                                                             ////
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
 
 
//  CVS Log
//  CVS Log
//
//
//  $Id: ac97_defines.v,v 1.2 2001-08-10 08:09:42 rudi Exp $
//  $Id: ac97_defines.v,v 1.3 2002-03-05 04:44:05 rudi Exp $
//
//
//  $Date: 2001-08-10 08:09:42 $
//  $Date: 2002-03-05 04:44:05 $
//  $Revision: 1.2 $
//  $Revision: 1.3 $
//  $Author: rudi $
//  $Author: rudi $
//  $Locker:  $
//  $Locker:  $
//  $State: Exp $
//  $State: Exp $
//
//
// Change History:
// Change History:
//               $Log: not supported by cvs2svn $
//               $Log: not supported by cvs2svn $
 
//               Revision 1.2  2001/08/10 08:09:42  rudi
 
//
 
//               - Removed RTY_O output.
 
//               - Added Clock and Reset Inputs to documentation.
 
//               - Changed IO names to be more clear.
 
//               - Uniquifyed define names to be core specific.
 
//
//               Revision 1.1  2001/08/03 06:54:49  rudi
//               Revision 1.1  2001/08/03 06:54:49  rudi
//
//
//
//
//               - Changed to new directory structure
//               - Changed to new directory structure
//
//
Line 94... Line 101...
//
//
// This is a prescaler that generates a pulse every 250 nS.
// This is a prescaler that generates a pulse every 250 nS.
// The value here should one less than the actually calculated
// The value here should one less than the actually calculated
// value.
// value.
// For a 200 MHz wishbone clock, this value is 49 (50-1).
// For a 200 MHz wishbone clock, this value is 49 (50-1).
`define AC97_250_PS     6'd49
`define AC97_250_PS     6'h31
 
 
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
//
//
// AC97 Cold reset Must be asserted for at least 1uS. The AC97
// AC97 Cold reset Must be asserted for at least 1uS. The AC97
// controller will stretch the reset pulse to at least 1uS.
// controller will stretch the reset pulse to at least 1uS.
// The reset timer is driven by the AC97_250_PS prescaler.
// The reset timer is driven by the AC97_250_PS prescaler.
// This value should probably be never changed. Adjust the
// This value should probably be never changed. Adjust the
// AC97_250_PS instead.
// AC97_250_PS instead.
`define AC97_RST_DEL    3'd4
`define AC97_RST_DEL    3'h4
 
 
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
//
//
// This value indicates for how long the resume signaling (asserting sync)
// This value indicates for how long the resume signaling (asserting sync)
// should be done. This counter is driven by the AC97_250_PS prescaler.
// should be done. This counter is driven by the AC97_250_PS prescaler.
// This value times 250nS is the duration of the resume signaling.
// This value times 250nS is the duration of the resume signaling.
// The actual value must be incremented by one, as we do not know
// The actual value must be incremented by one, as we do not know
// the current state of the prescaler, and must somehow insure we
// the current state of the prescaler, and must somehow insure we
// meet the minimum 1uS length. This value should probably be never
// meet the minimum 1uS length. This value should probably be never
// changed. Modify the AC97_250_PS instead.
// changed. Modify the AC97_250_PS instead.
`define AC97_RES_SIG    3'd5
`define AC97_RES_SIG    3'h5
 
 
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
//
//
// If the bit clock is absent for at least two "predicted" bit
// If the bit clock is absent for at least two "predicted" bit
// clock periods (163 nS) we should signal "suspended".
// clock periods (163 nS) we should signal "suspended".
// This value defines how many WISHBONE cycles must pass without
// This value defines how many WISHBONE cycles must pass without
// any change on the bit clock input before we signal "suspended".
// any change on the bit clock input before we signal "suspended".
// For a 200 MHz WISHBONE clock this would be about (163/5) 33 cycles.
// For a 200 MHz WISHBONE clock this would be about (163/5) 33 cycles.
`define AC97_SUSP_DET   6'd33
`define AC97_SUSP_DET   6'h21
 
 
 
 
 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.