URL
https://opencores.org/ocsvn/firgen/firgen/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
7 |
redfir |
/*
|
2 |
|
|
* firgen is the name of the Programm which is optimized for creating FIR filter with less resources
|
3 |
|
|
* copyright (C) 2007
|
4 |
|
|
*
|
5 |
|
|
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
6 |
|
|
* General Public License as published by the Free Software Foundation; either version 3 of the
|
7 |
|
|
* License, or (at your option) any later version.
|
8 |
|
|
*
|
9 |
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
10 |
|
|
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11 |
|
|
* General Public License for more details.
|
12 |
|
|
*
|
13 |
|
|
* You should have received a copy of the GNU General Public License along with this program; if not,
|
14 |
|
|
* /see <http://www.gnu.org/licenses/>.
|
15 |
|
|
*/
|
16 |
|
|
|
17 |
|
|
/***************************************************************************
|
18 |
|
|
dna.h - description
|
19 |
|
|
-------------------
|
20 |
|
|
begin : Mon Oct 15 2001
|
21 |
|
|
copyright : (C) 2001 by otto stephan
|
22 |
|
|
email : ottosn
|
23 |
|
|
***************************************************************************/
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
#ifndef DNA_H
|
27 |
|
|
#define DNA_H
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
/**
|
31 |
|
|
*@author otto stephan
|
32 |
|
|
*/
|
33 |
|
|
//#include "map.h"
|
34 |
|
|
#include "nodegraph.h"
|
35 |
|
|
//#include <stl.h>
|
36 |
|
|
|
37 |
|
|
class dna {
|
38 |
|
|
public:
|
39 |
|
|
dna( unsigned int lines);
|
40 |
|
|
dna( dna &DNA);
|
41 |
|
|
dna( dna **DNA, unsigned int cnt);
|
42 |
|
|
~dna();
|
43 |
|
|
moduleComponent *getModul( unsigned int line, unsigned int node);
|
44 |
|
|
bool existModul( unsigned int line, unsigned int node);
|
45 |
|
|
void setModul( unsigned int line, unsigned int node, moduleComponent *mC);
|
46 |
|
|
void markActiveGenes();
|
47 |
|
|
moduleComponent *getActiveGen();
|
48 |
|
|
|
49 |
|
|
void print( int mode);
|
50 |
|
|
private:
|
51 |
|
|
struct dnaNode{
|
52 |
|
|
moduleComponent *mC;
|
53 |
|
|
bool active;
|
54 |
|
|
};
|
55 |
|
|
unsigned int lineCnt;
|
56 |
|
|
map< unsigned int, dnaNode> **nodeLine;
|
57 |
|
|
map< unsigned int, dnaNode>::iterator iter;
|
58 |
|
|
map< unsigned int, dnaNode>::iterator activeGenIter;
|
59 |
|
|
int activeGenIterLine;
|
60 |
|
|
};
|
61 |
|
|
|
62 |
|
|
#endif
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.