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

Subversion Repositories noc

[/] [noc/] [src/] [reset_cont.h] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 imori
/*
2
 * =====================================================================================
3
 *
4
 *       Filename:  reset_cont.h
5
 *
6
 *    Description:
7
 *
8
 *        Version:  1.0
9
 *        Created:  04/09/2009 06:41:10 PM
10
 *       Revision:  none
11
 *       Compiler:  gcc
12
 *
13
 *         Author:  Soontea Kwon (), Kwonst@skku.edu
14
 *        Company:  Mobile Electronics Lab
15
 *
16
 * =====================================================================================
17
 */
18
#ifndef RESET_CONT_H
19
#define RESET_CONT_H
20
 
21
#include <systemc>
22
#include <iostream>
23
using namespace sc_core;
24
using namespace std;
25
 
26
class reset : public sc_module{
27
public:
28
        sc_out<bool>    reset_n;
29
        sc_in<bool>             clk;
30
 
31
        SC_CTOR(reset){
32
                SC_THREAD(reset_handle);
33
        }
34
protected:
35
        void reset_handle(){
36
                reset_n.write(false);
37
                wait(20,SC_NS);
38
                reset_n.write(true);
39
                wait(20,SC_NS);
40
        }
41
};
42
 
43
#endif
44
 

powered by: WebSVN 2.1.0

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