source: sources/test_regression/09092005a/system.cpp @ 60

Last change on this file since 60 was 60, checked in by meunier, 7 years ago
  • Intégration des modifications de Clément, qui a intégré la version parallélisée de systemcass faite par Manuel.
File size: 697 bytes
Line 
1
2#include <iostream>
3
4#include "systemc.h"
5#include "test.h"
6
7
8using namespace std;
9
10#define ADDRSIZE   32
11#define OFFSETSIZE 6
12#define BPFSIZE    3
13
14
15int sc_main (int argc, char ** argv) {
16
17    // Setup number of threads open-mp to 1 with the macro threads_omp()
18    threads_omp();
19
20    sc_uint<ADDRSIZE> LINEADDR_MASK = ~(((sc_uint<ADDRSIZE>) ~0x0) >> (ADDRSIZE - OFFSETSIZE - BPFSIZE));
21    printf("LINEADDR_MASK == 0x%08x", (unsigned int) LINEADDR_MASK);
22
23    return 0;
24}
25
26
27/*
28# Local Variables:
29# tab-width: 4;
30# c-basic-offset: 4;
31# c-file-offsets:((innamespace . 0)(inline-open . 0));
32# indent-tabs-mode: nil;
33# End:
34#
35# vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
36*/
37
Note: See TracBrowser for help on using the repository browser.