source: trunk/IPs/systemC/Environment/RamLock/include/RamLock.h @ 80

Last change on this file since 80 was 80, checked in by rosiere, 16 years ago

Oups, Environnement is french :P

File size: 753 bytes
Line 
1#ifndef Environment_RamLock_H
2#define Environment_RamLock_H
3
4#include <stdint.h>
5#include <iostream>
6
7#include "Parameters.h"
8
9namespace environment {
10namespace ramlock {
11
12#define UNLOCK false
13#define   LOCK true
14
15  class RamLock
16  {
17    // field
18  private : std::string   _name;
19  private : Parameters  * _param;
20  private : bool        * _lock;
21
22    // method
23  public  :  RamLock (std::string  name, 
24                      Parameters * param);
25  public  : ~RamLock (void);
26
27//public  : bool test  (uint32_t num_lock);
28  public  : void reset (void);
29  public  : bool read  (uint32_t num_lock);
30  public  : bool write (uint32_t num_lock);
31   
32  public  : friend std::ostream& operator<< (std::ostream& output, environment::ramlock::RamLock & x);
33  };
34
35};
36};
37#endif
Note: See TracBrowser for help on using the repository browser.