src
L1Trigger
Phase2L1ParticleFlow
interface
common
nnet_common.h
Go to the documentation of this file.
1
//
2
// rfnoc-hls-neuralnet: Vivado HLS code for neural-net building blocks
3
//
4
// Copyright (C) 2017 EJ Kreinar
5
//
6
// This program is free software: you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation, either version 3 of the License, or
9
// (at your option) any later version.
10
//
11
// This program is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
// GNU General Public License for more details.
15
//
16
// You should have received a copy of the GNU General Public License
17
// along with this program. If not, see <http://www.gnu.org/licenses/>.
18
//
19
20
#ifndef NNET_COMMON_H_
21
#define NNET_COMMON_H_
22
23
#include "ap_fixed.h"
24
25
namespace
nnet
{
26
27
// Common type definitions
28
enum
io_type
{
io_parallel
= 0,
io_serial
};
29
30
// Default data types (??) TODO: Deprecate
31
//typedef ap_fixed<16,4> weight_t_def;
32
//typedef ap_fixed<16,4> bias_t_def;
33
//typedef ap_fixed<32,10> accum_t_def;
34
35
}
// namespace nnet
36
37
#endif
nnet::io_parallel
Definition:
nnet_common.h:28
nnet::io_serial
Definition:
nnet_common.h:28
nnet
Definition:
nnet_activation.h:27
nnet::io_type
io_type
Definition:
nnet_common.h:28
Generated for CMSSW Reference Manual by
1.8.14