Line 1... |
Line 1... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// can_btl.v ////
|
//// can_btl.v ////
|
//// ////
|
//// ////
|
//// ////
|
//// ////
|
//// This file is part of the CAN Protocal Controller ////
|
//// This file is part of the CAN Protocol Controller ////
|
//// http://www.opencores.org/projects/can/ ////
|
//// http://www.opencores.org/projects/can/ ////
|
//// ////
|
//// ////
|
//// ////
|
//// ////
|
//// Author(s): ////
|
//// Author(s): ////
|
//// Igor Mohor ////
|
//// Igor Mohor ////
|
//// igorm@opencores.org ////
|
//// igorm@opencores.org ////
|
//// ////
|
//// ////
|
//// ////
|
//// ////
|
//// All additional information is avaliable in the README.txt ////
|
//// All additional information is available in the README.txt ////
|
//// file. ////
|
//// file. ////
|
//// ////
|
//// ////
|
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// Copyright (C) 2002 Authors ////
|
//// Copyright (C) 2002, 2003 Authors ////
|
//// ////
|
//// ////
|
//// This source file may be used and distributed without ////
|
//// This source file may be used and distributed without ////
|
//// restriction provided that this copyright statement is not ////
|
//// restriction provided that this copyright statement is not ////
|
//// removed from the file and that any derivative work contains ////
|
//// removed from the file and that any derivative work contains ////
|
//// the original copyright notice and the associated disclaimer. ////
|
//// the original copyright notice and the associated disclaimer. ////
|
Line 43... |
Line 43... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.4 2002/12/26 01:33:05 mohor
|
|
// Tripple sampling supported.
|
|
//
|
// Revision 1.3 2002/12/25 23:44:16 mohor
|
// Revision 1.3 2002/12/25 23:44:16 mohor
|
// Commented lines removed.
|
// Commented lines removed.
|
//
|
//
|
// Revision 1.2 2002/12/25 14:17:00 mohor
|
// Revision 1.2 2002/12/25 14:17:00 mohor
|
// Synchronization working.
|
// Synchronization working.
|
Line 83... |
Line 86... |
/* Output signals from this module */
|
/* Output signals from this module */
|
take_sample,
|
take_sample,
|
clk_en,
|
clk_en,
|
|
|
/* States */
|
/* States */
|
idle,
|
idle
|
|
|
/* bit stream processor (can_bsp.v) */
|
|
sync_mode
|
|
|
|
|
|
);
|
);
|
|
|
parameter Tp = 1;
|
parameter Tp = 1;
|
Line 115... |
Line 116... |
output take_sample; // NOT USED, YET
|
output take_sample; // NOT USED, YET
|
output clk_en;
|
output clk_en;
|
|
|
input idle;
|
input idle;
|
|
|
/* bit stream processor (can_bsp.v) */
|
|
input sync_mode; // NOT USED, YET
|
|
|
|
|
|
reg [8:0] clk_cnt;
|
reg [8:0] clk_cnt;
|
reg clk_en;
|
reg clk_en;
|
reg sync_blocked;
|
reg sync_blocked;
|
reg sampled_bit;
|
reg sampled_bit;
|