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

Subversion Repositories spacewiresystemc

[/] [spacewiresystemc/] [trunk/] [systemC/] [rx_spw_clock_recovery.h] - Blame information for rev 40

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 29 redbear
#ifndef SPW_RX_CLOCK_RECOVERY_H
2
#define SPW_RX_CLOCK_RECOVERY_H
3
 
4
class SPW_RX_CLOCK_RECOVERY_SC;
5
 
6
SC_MODULE(SPW_RX_CLOCK_RECOVERY_SC)
7
{
8
        sc_in<uint>  DIN_REC;
9
        sc_in<uint>  SIN_REC;
10
 
11
        sc_out<bool> RX_CLOCK_OUT;
12
 
13
        void RX_CLOCK_XOR()
14
        {
15
                RX_CLOCK_OUT = DIN_REC ^ SIN_REC;
16
        }
17
 
18
        SC_CTOR(SPW_RX_CLOCK_RECOVERY_SC)
19
        {
20
                SC_METHOD(RX_CLOCK_XOR);
21
                sensitive << DIN_REC << SIN_REC;
22
        }
23
};
24
#endif

powered by: WebSVN 2.1.0

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