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

Subversion Repositories can

[/] [can/] [trunk/] [rtl/] [verilog/] [can_btl.v] - Diff between revs 76 and 77

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

Rev 76 Rev 77
Line 48... Line 48...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.14  2003/06/13 14:55:11  mohor
 
// Counters width changed.
 
//
// Revision 1.13  2003/06/11 14:21:35  mohor
// Revision 1.13  2003/06/11 14:21:35  mohor
// When switching to tx, sync stage is overjumped.
// When switching to tx, sync stage is overjumped.
//
//
// Revision 1.12  2003/02/14 20:17:01  mohor
// Revision 1.12  2003/02/14 20:17:01  mohor
// Several registers added. Not finished, yet.
// Several registers added. Not finished, yet.
Line 126... Line 129...
  hard_sync,
  hard_sync,
  go_seg1,
  go_seg1,
 
 
  /* Output from can_bsp module */
  /* Output from can_bsp module */
  rx_idle,
  rx_idle,
  transmitting,
 
  overjump_sync_seg,
  overjump_sync_seg,
  last_bit_of_inter
  last_bit_of_inter
 
 
 
 
 
 
Line 156... Line 158...
input   [2:0] time_segment2;
input   [2:0] time_segment2;
input         triple_sampling;
input         triple_sampling;
 
 
/* Output from can_bsp module */
/* Output from can_bsp module */
input         rx_idle;
input         rx_idle;
input         transmitting;
 
input         overjump_sync_seg;
input         overjump_sync_seg;
input         last_bit_of_inter;
input         last_bit_of_inter;
 
 
/* Output signals from this module */
/* Output signals from this module */
output        clk_en;
output        clk_en;
Line 199... Line 200...
wire          quant_cnt_rst2;
wire          quant_cnt_rst2;
 
 
 
 
 
 
assign preset_cnt = (baud_r_presc + 1'b1)<<1;        // (BRP+1)*2
assign preset_cnt = (baud_r_presc + 1'b1)<<1;        // (BRP+1)*2
assign hard_sync  =   (rx_idle | last_bit_of_inter)  & (~rx) & sampled_bit & (~sync_blocked) & (~transmitting);  // Hard synchronization
assign hard_sync  =   (rx_idle | last_bit_of_inter)  & (~rx) & sampled_bit & (~sync_blocked);  // Hard synchronization
assign resync     =  (~rx_idle)                      & (~rx) & sampled_bit & (~sync_blocked) & (~resync_blocked) & (~transmitting);  // Re-synchronization
assign resync     =  (~rx_idle)                      & (~rx) & sampled_bit & (~sync_blocked) & (~resync_blocked);  // Re-synchronization
 
 
 
 
/* Generating general enable signal that defines baud rate. */
/* Generating general enable signal that defines baud rate. */
always @ (posedge clk or posedge rst)
always @ (posedge clk or posedge rst)
begin
begin

powered by: WebSVN 2.1.0

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