URL
https://opencores.org/ocsvn/can/can/trunk
[/] [can/] [trunk/] [rtl/] [verilog/] [can_btl.v] - Diff between revs 87 and 88
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 87 |
Rev 88 |
Line 48... |
Line 48... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.19 2003/06/20 14:28:20 mohor
|
|
// When hard_sync or resync occure we need to go to seg1 segment. Going to
|
|
// sync segment is in that case blocked.
|
|
//
|
// Revision 1.18 2003/06/17 15:53:33 mohor
|
// Revision 1.18 2003/06/17 15:53:33 mohor
|
// clk_cnt reduced from [8:0] to [6:0].
|
// clk_cnt reduced from [8:0] to [6:0].
|
//
|
//
|
// Revision 1.17 2003/06/17 14:32:17 mohor
|
// Revision 1.17 2003/06/17 14:32:17 mohor
|
// Removed few signals.
|
// Removed few signals.
|
Line 247... |
Line 251... |
|
|
|
|
|
|
/* Changing states */
|
/* Changing states */
|
assign go_sync_unregistered = clk_en & (seg2 & (~hard_sync) & (~resync) & ((quant_cnt[2:0] == time_segment2)));
|
assign go_sync_unregistered = clk_en & (seg2 & (~hard_sync) & (~resync) & ((quant_cnt[2:0] == time_segment2)));
|
assign go_seg1 = clk_en_q & (sync | hard_sync | (resync & seg2 & sync_window) | (resync_latched & sync_window));
|
assign go_seg1 = clk_en_q & ((sync & (~seg1)) | hard_sync | (resync & seg2 & sync_window) | (resync_latched & sync_window));
|
assign go_seg2 = clk_en_q & (seg1 & (~hard_sync) & (quant_cnt == (time_segment1 + delay)));
|
assign go_seg2 = clk_en_q & (seg1 & (~hard_sync) & (quant_cnt == (time_segment1 + delay)));
|
|
|
|
|
always @ (posedge clk or posedge rst)
|
always @ (posedge clk or posedge rst)
|
begin
|
begin
|
if (rst)
|
if (rst)
|
go_sync <= 1'b0;
|
go_sync <= 1'b0;
|
else
|
else
|
go_sync <=#Tp go_sync_unregistered & (~hard_sync) & (~resync);
|
go_sync <=#Tp go_sync_unregistered;
|
end
|
end
|
|
|
|
|
/* When early edge is detected outside of the SJW field, synchronization request is latched and performed when
|
/* When early edge is detected outside of the SJW field, synchronization request is latched and performed when
|
SJW is reached */
|
SJW is reached */
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.