-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathanalysis.h
56 lines (44 loc) · 1.58 KB
/
analysis.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Copyright (C) 2006, 2007 Jean-Baptiste Note <[email protected]>
*
* This file is part of debit.
*
* Debit 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.
*
* Debit 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 debit. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _HAS_ANALYSIS_H
#define _HAS_ANALYSIS_H
#include <glib.h>
#include "wiring.h"
#include "localpips.h"
typedef struct _bitstream_analyzed {
/* low-level information */
bitstream_parsed_t *bitstream;
/* databases */
chip_descr_t *chip;
pip_db_t *pipdb;
/* simplified bitstream data */
pip_parsed_dense_t *pipdat;
/* nets from the bitstream */
} bitstream_analyzed_t;
void free_analysis(bitstream_analyzed_t *anal);
bitstream_analyzed_t *
analyze_bitstream(bitstream_parsed_t *bitstream,
const gchar *datadir);
void dump_sites(const bitstream_analyzed_t *nlz,
const gchar *odir, const gchar *suffix);
void dump_pips(bitstream_analyzed_t *bitstream);
void dump_luts(bitstream_analyzed_t *bitstream);
void dump_bram(bitstream_analyzed_t *bitstream);
void dump_nets(const bitstream_analyzed_t *bitstream);
#endif /* _HAS_ANALYSIS_H */