2008-06-02 04:45:12 +02:00
|
|
|
#ifndef __ivl_target_priv_H
|
2008-11-10 00:32:50 +01:00
|
|
|
#define __ivl_target_priv_H
|
2008-06-02 04:45:12 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2008 Stephen Williams (steve@icarus.com)
|
|
|
|
|
*
|
|
|
|
|
* This source code is free software; you can redistribute it
|
|
|
|
|
* and/or modify it in source code form under the terms of the GNU
|
|
|
|
|
* General Public License as published by the Free Software
|
|
|
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
|
|
|
* any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program 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 this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
# include <inttypes.h>
|
|
|
|
|
|
|
|
|
|
/*
|
2008-11-10 06:42:12 +01:00
|
|
|
* This header has declarations related to the ivl_target.h API that
|
2008-06-02 04:45:12 +02:00
|
|
|
* are not to be exported outside of the core via the ivl_target.h
|
|
|
|
|
* interface.
|
2008-11-10 06:42:12 +01:00
|
|
|
*
|
|
|
|
|
* (NOTE: A lot of similar definitions exist in the t-dll.h header
|
|
|
|
|
* file. That is a legacy from an earlier time before the
|
|
|
|
|
* ivl_target_priv.h header file was started, and those definitions
|
|
|
|
|
* should gradually be moved over to this header file.)
|
2008-06-02 04:45:12 +02:00
|
|
|
*/
|
|
|
|
|
|
2008-11-10 06:42:12 +01:00
|
|
|
struct ivl_branch_s {
|
|
|
|
|
ivl_nexus_t pins[2];
|
|
|
|
|
};
|
|
|
|
|
|
2008-06-02 04:45:12 +02:00
|
|
|
/*
|
|
|
|
|
* Information about islands. Connected branches within a net are
|
|
|
|
|
* collected into islands. Branches that are purely ddiscrete do not
|
|
|
|
|
* have disciplines and do not belong to islands.
|
|
|
|
|
*/
|
|
|
|
|
|
2008-11-10 00:32:50 +01:00
|
|
|
class ivl_discipline_s;
|
2008-06-02 04:45:12 +02:00
|
|
|
|
|
|
|
|
struct ivl_island_s {
|
2008-11-10 00:32:50 +01:00
|
|
|
ivl_discipline_s*discipline;
|
2008-06-02 04:45:12 +02:00
|
|
|
// user accessible flags. They are initially false, always.
|
|
|
|
|
vector<bool> flags;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|