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

Subversion Repositories ht_tunnel

[/] [ht_tunnel/] [trunk/] [rtl/] [systemc/] [decoder_l2/] [cd_mux_l3.h] - Blame information for rev 19

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 acastong
// cd_mux_l3.h
2
 
3
/* ***** BEGIN LICENSE BLOCK *****
4
 * Version: MPL 1.1
5
 *
6
 * The contents of this file are subject to the Mozilla Public License Version
7
 * 1.1 (the "License"); you may not use this file except in compliance with
8
 * the License. You may obtain a copy of the License at
9
 * http://www.mozilla.org/MPL/
10
 *
11
 * Software distributed under the License is distributed on an "AS IS" basis,
12
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13
 * for the specific language governing rights and limitations under the
14
 * License.
15
 *
16
 * The Original Code is HyperTransport Tunnel IP Core.
17
 *
18
 * The Initial Developer of the Original Code is
19
 * Ecole Polytechnique de Montreal.
20
 * Portions created by the Initial Developer are Copyright (C) 2005
21
 * the Initial Developer. All Rights Reserved.
22
 *
23
 * Contributor(s):
24
 *   Max-Elie Salomon
25
 *
26
 * Alternatively, the contents of this file may be used under the terms
27
 * of the Polytechnique HyperTransport Tunnel IP Core Source Code License
28
 * (the  "PHTICSCL License", see the file PHTICSCL.txt), in which case the
29
 * provisions of PHTICSCL License are applicable instead of those
30
 * above. If you wish to allow use of your version of this file only
31
 * under the terms of the PHTICSCL License and not to allow others to use
32
 * your version of this file under the MPL, indicate your decision by
33
 * deleting the provisions above and replace them with the notice and
34
 * other provisions required by the PHTICSCL License. If you do not delete
35
 * the provisions above, a recipient may use your version of this file
36
 * under either the MPL or the PHTICSCL License."
37
 *
38
 * ***** END LICENSE BLOCK ***** */
39
 
40
#ifndef CD_MUX_L3_H
41
#define CD_MUX_L3_H
42
 
43
#include "../core_synth/synth_datatypes.h"
44
#include "../core_synth/constants.h"
45
 
46
///A 2 input packet multiplexer
47
/**
48
        @class cd_mux_l3
49
        @description Selects which of the two input control packets
50
        will be propagated to the output
51
*/
52
class cd_mux_l3 : public sc_module
53
{
54
public:
55
 
56
        //*******************************
57
        //      Inputs
58
        //*******************************
59
 
60
        ///Input selection bit
61
        sc_in< bool >           select;
62
        ///Input 0 of the mux
63
        sc_in< syn_ControlPacketComplete >      ctlPacket0;
64
        ///Input 1 of the mux
65
        sc_in< syn_ControlPacketComplete >      ctlPacket1;
66
 
67
 
68
        //*******************************
69
        //      Outputs
70
        //*******************************
71
 
72
        ///Multiplexed output
73
        sc_out< syn_ControlPacketComplete >     cd_packet_ro;
74
 
75
 
76
        /**
77
                Multiplexing process, sensitive on both the inputs and
78
                the selection bit
79
        */
80
        void selection();
81
 
82
        SC_HAS_PROCESS(cd_mux_l3);
83
 
84
        /**
85
                SystemC Macro
86
                Module constructor
87
        */
88
        cd_mux_l3(sc_module_name name);
89
};
90
 
91
#endif

powered by: WebSVN 2.1.0

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