/*****************************************************************************
 *
 * Copyright (c) 2018-19, Josef Treus
 * Westfälische Wilhelms-Universität Münster, AG Embedded Systems
 * All rights reserved.
 *
 * This file is part of SysCSec
 *
 * SysCSec is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * SysCSec is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with SysCSec.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
 *  Please report any problems or bugs to: ...
 *
 ****************************************************************************/
#ifndef PARAMETERS_H
#define PARAMETERS_H
    #include "systemc.h"
    #include "map"

    //maximum Length for the Key.
    #define NBITS         32
    #define HALF_NBITS    ( NBITS / 2 )    

    // +2 is for the format specifier '0b' to make the string binary.
    #define STR_SIZE      ( NBITS + 2 ) 
    #define HALF_STR_SIZE ( HALF_NBITS + 2 )

    #define ADD 1
    #define SUB 2
    #define MUL 3
    #define DIV 4
    #define MOD 5
    #define SHIFT 6
    #define COMPARE 7
    #define CALL 8
    #define ASSIGN 9

    typedef sc_bigint<NBITS>  bigint;

    //For the RessourceHandler
    #define TIME_INTERVAL 1000
    #define NOISEDEGREE 0
#endif