source: trunk/src/monitor.h @ 7

Last change on this file since 7 was 5, checked in by guillaumeb, 15 years ago

Réorganisation des dossiers

déplacement des fichiers source dans le sous dossier ./src
déplacement de systemc dans le sous-dossier ./lib

File size: 539 bytes
Line 
1#include <systemc.h>
2
3SC_MODULE(Monitor)
4{
5    int l1misses;
6    int l1hits;
7
8    //sc_in<bool> make_report;
9
10    sc_in<bool> l1miss_signal;
11    sc_in<bool> l1hit_signal;
12    sc_in_clk clock;
13
14    void count_hit();
15    void count_miss();
16    void make_my_report();
17
18    SC_CTOR(Monitor)
19    {
20        l1misses = 0;
21        l1hits = 0;
22
23        SC_METHOD(make_my_report);
24        sensitive << clock;
25
26        SC_METHOD(count_hit);
27        sensitive << clock.neg();
28
29        SC_METHOD(count_miss);
30        sensitive << clock.neg();
31    }
32};
Note: See TracBrowser for help on using the repository browser.