URL
https://opencores.org/ocsvn/spacewiresystemc/spacewiresystemc/trunk
[/] [spacewiresystemc/] [trunk/] [systemC/] [rx_spw_clock_recovery.h] - Blame information for rev 29
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
29 |
redbear |
//+FHDR------------------------------------------------------------------------
|
2 |
|
|
//Copyright (c) 2013 Latin Group American Integhrated Circuit, Inc. All rights reserved
|
3 |
|
|
//GLADIC Open Source RTL
|
4 |
|
|
//-----------------------------------------------------------------------------
|
5 |
|
|
//FILE NAME :
|
6 |
|
|
//DEPARTMENT : IC Design / Verification
|
7 |
|
|
//AUTHOR : Felipe Fernandes da Costa
|
8 |
|
|
//AUTHOR’S EMAIL :
|
9 |
|
|
//-----------------------------------------------------------------------------
|
10 |
|
|
//RELEASE HISTORY
|
11 |
|
|
//VERSION DATE AUTHOR DESCRIPTION
|
12 |
|
|
//1.0 YYYY-MM-DD name
|
13 |
|
|
//-----------------------------------------------------------------------------
|
14 |
|
|
//KEYWORDS : General file searching keywords, leave blank if none.
|
15 |
|
|
//-----------------------------------------------------------------------------
|
16 |
|
|
//PURPOSE : ECSS_E_ST_50_12C_31_july_2008
|
17 |
|
|
//-----------------------------------------------------------------------------
|
18 |
|
|
//PARAMETERS
|
19 |
|
|
//PARAM NAME RANGE : DESCRIPTION : DEFAULT : UNITS
|
20 |
|
|
//e.g.DATA_WIDTH [32,16] : width of the DATA : 32:
|
21 |
|
|
//-----------------------------------------------------------------------------
|
22 |
|
|
//REUSE ISSUES
|
23 |
|
|
//Reset Strategy :
|
24 |
|
|
//Clock Domains :
|
25 |
|
|
//Critical Timing :
|
26 |
|
|
//Test Features :
|
27 |
|
|
//Asynchronous I/F :
|
28 |
|
|
//Scan Methodology :
|
29 |
|
|
//Instantiations :
|
30 |
|
|
//Synthesizable (y/n) :
|
31 |
|
|
//Other :
|
32 |
|
|
//-FHDR------------------------------------------------------------------------
|
33 |
|
|
|
34 |
|
|
#ifndef SPW_RX_CLOCK_RECOVERY_H
|
35 |
|
|
#define SPW_RX_CLOCK_RECOVERY_H
|
36 |
|
|
|
37 |
|
|
class SPW_RX_CLOCK_RECOVERY_SC;
|
38 |
|
|
|
39 |
|
|
SC_MODULE(SPW_RX_CLOCK_RECOVERY_SC)
|
40 |
|
|
{
|
41 |
|
|
sc_in<uint> DIN_REC;
|
42 |
|
|
sc_in<uint> SIN_REC;
|
43 |
|
|
|
44 |
|
|
sc_out<bool> RX_CLOCK_OUT;
|
45 |
|
|
|
46 |
|
|
void RX_CLOCK_XOR()
|
47 |
|
|
{
|
48 |
|
|
RX_CLOCK_OUT = DIN_REC ^ SIN_REC;
|
49 |
|
|
}
|
50 |
|
|
|
51 |
|
|
SC_CTOR(SPW_RX_CLOCK_RECOVERY_SC)
|
52 |
|
|
{
|
53 |
|
|
SC_METHOD(RX_CLOCK_XOR);
|
54 |
|
|
sensitive << DIN_REC << SIN_REC;
|
55 |
|
|
}
|
56 |
|
|
};
|
57 |
|
|
#endif
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.