OpenASIP 2.2
Loading...
Searching...
No Matches
MachineCanvasLayoutConstraints.cc
Go to the documentation of this file.
1/*
2 Copyright (c) 2014 Tampere University.
3
4 This file is part of TTA-Based Codesign Environment (TCE).
5
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the
11 Software is furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
23 */
24/**
25 * @file MachineCanvasLayoutConstraints.cc
26 *
27 * Clang++ 3.4 did not compile-time resolve all the static member variable
28 * constants, leading to linkage errors. Therefore moved the intializations
29 * here.
30 *
31 * @author Pekka Jääskeläinen 2014
32 */
34
50const int MachineCanvasLayoutConstraints::BUS_MIN_HEIGHT = SEGMENT_HEIGHT_BASE;
52const int MachineCanvasLayoutConstraints::BRIDGE_WIDTH = BUS_MIN_WIDTH;
static const int UNIT_HEIGHT
Minimum unit height.
static const int CONNECTIONS_SPACE
Space reserved for port-socket-connections.
static const int VIEW_LEFT_MARGIN
Left margin.
static const int VIEW_MARGIN
Top margin for the whole processor view.
static const int BRIDGE_WIDTH
Width of a bridge.
static const int UNIT_WIDTH
Minimum unit width.
static const int SEGMENT_SPACE
Space dividing segments.
static const int SEGMENT_HEIGHT_BASE
Height of a segment.
static const int SOCKET_SPACE
Space dividing unconnected sockets.
static const int PORT_MIN_WIDTH
Minimum Width of a port.
static const int SOCKET_MIN_SPACE
Space dividing connected sockets.
static const int BUS_SPACE
Space between buses and bus chains.
static const int SOCKET_WIDTH
Width of a socket.
static const int PORT_WIDTH
Default Width of a port.
static const int UNIT_SPACE
Space between units.
static const int PORT_BASE_WIDTH
Constant used for port width calculation.
static const int BUS_MIN_WIDTH
Minimum width of a bus.
static const int SOCKET_HEIGHT
Height of a socket.
static const int BRIDGE_SPACE
Space dividing buses and bridges.
static const int PORT_SPACE
Space between ports.
static const int TRIANGLE_HEIGHT
Size of the sockets' direction triangle.
static const int BUS_MIN_HEIGHT
Minimum height of a bus.
static const int BRIDGE_HEIGHT
Height of a bridge.
static const int MAX_UNIT_NAME_WIDTH
Maximun unit name width in pixels.