MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
include
ParamConfig.h
Go to the documentation of this file.
1
/* -*- mode:C++ -*-
2
ParamConfig.h Support for modularized compile-time parameters
3
Copyright (C) 2014 The Regents of the University of New Mexico. All rights reserved.
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
18
USA
19
*/
20
27
#ifndef PARAMCONFIG_H
28
#define PARAMCONFIG_H
29
30
#include "
itype.h
"
31
32
namespace
MFM {
33
39
template
<u32 L = 64,
// Bits per atom
40
u32 R = 4,
// Event window radius
41
u32 B = 8,
// Element table bits
42
u32 W = 40,
// Tile width
43
u32 EDS = 4
// Per-Tile element data slots for experimenter's use
44
>
45
struct
ParamConfig
{
46
53
enum
{ BITS_PER_ATOM = L };
54
59
enum
{ EVENT_WINDOW_RADIUS = R };
60
65
enum
{ ELEMENT_TABLE_BITS = B };
66
71
enum
{ TILE_WIDTH = W };
72
81
enum
{ ELEMENT_DATA_SLOTS = EDS };
82
83
};
84
85
}
/* namespace MFM */
86
87
#endif
/*PARAMCONFIG_H*/
itype.h
MFM::ParamConfig
Definition:
ParamConfig.h:45
Generated on Wed Oct 29 2014 05:10:16 for MFMv2.0.10 by
1.8.6