VPR-7.0
|
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <math.h>
#include "vpr_types.h"
#include "vpr_utils.h"
#include "globals.h"
#include "graphics.h"
#include "path_delay.h"
#include "draw.h"
#include <assert.h>
#include "read_xml_arch_file.h"
#include "util.h"
#include "rr_graph.h"
Go to the source code of this file.
Macros | |
#define | MAX_BLOCK_COLOURS 5 |
Enumerations | |
enum | e_draw_rr_toggle { DRAW_NO_RR = 0, DRAW_ALL_RR, DRAW_ALL_BUT_BUFFERS_RR, DRAW_NODES_AND_SBOX_RR, DRAW_NODES_RR, DRAW_RR_TOGGLE_MAX } |
enum | e_draw_net_type { ALL_NETS, HIGHLIGHTED } |
enum | e_edge_dir { FROM_X_TO_Y, FROM_Y_TO_X } |
Functions | |
static void | toggle_nets (void(*drawscreen)(void)) |
static void | toggle_rr (void(*drawscreen)(void)) |
static void | toggle_defects (void(*drawscreen)(void)) |
static void | toggle_congestion (void(*drawscreen)(void)) |
static void | highlight_crit_path (void(*drawscreen_ptr)(void)) |
static void | drawscreen (void) |
static void | redraw_screen (void) |
static void | drawplace (void) |
static void | drawnets (void) |
static void | drawroute (enum e_draw_net_type draw_net_type) |
static void | draw_congestion (void) |
static void | highlight_blocks (float x, float y) |
static void | get_block_center (int bnum, float *x, float *y) |
static void | deselect_all (void) |
static void | draw_rr (void) |
static void | draw_rr_edges (int from_node) |
static void | draw_rr_pin (int inode, enum color_types color) |
static void | draw_rr_chanx (int inode, int itrack) |
static void | draw_rr_chany (int inode, int itrack) |
static void | get_rr_pin_draw_coords (int inode, int iside, int ioff, float *xcen, float *ycen) |
static void | draw_pin_to_chan_edge (int pin_node, int chan_node) |
static void | draw_pin_to_pin (int opin, int ipin) |
static void | draw_x (float x, float y, float size) |
static void | draw_chany_to_chany_edge (int from_node, int from_track, int to_node, int to_track, short switch_type) |
static void | draw_chanx_to_chanx_edge (int from_node, int from_track, int to_node, int to_track, short switch_type) |
static void | draw_chanx_to_chany_edge (int chanx_node, int chanx_track, int chany_node, int chany_track, enum e_edge_dir edge_dir, short switch_type) |
static int | get_track_num (int inode, int **chanx_track, int **chany_track) |
static void | draw_rr_switch (float from_x, float from_y, float to_x, float to_y, boolean buffered) |
static void | draw_triangle_along_line (float xend, float yend, float x1, float x2, float y1, float y2) |
void | set_graphics_state (boolean show_graphics_val, int gr_automode_val, enum e_route_type route_type) |
void | update_screen (int priority, char *msg, enum pic_type pic_on_screen_val, boolean crit_path_button_enabled) |
void | alloc_draw_structs (void) |
void | free_draw_structs (void) |
void | init_draw_coords (float width_val) |
static void | highlight_nets (char *message) |
static void | highlight_rr_nodes (float x, float y) |
Variables | |
static boolean | show_nets = FALSE |
static enum e_draw_rr_toggle | draw_rr_toggle = DRAW_NO_RR |
static enum e_route_type | draw_route_type |
static boolean | show_congestion = FALSE |
static boolean | show_defects = FALSE |
static boolean | show_graphics |
static char | default_message [BUFSIZE] |
static int | gr_automode |
static enum pic_type | pic_on_screen = NO_PICTURE |
static float * | tile_x |
static float * | tile_y |
static float | tile_width |
static float | pin_size |
static enum color_types * | net_color |
static enum color_types * | block_color |
static float | line_fuz = 0.3 |
static const char * | name_type [] |
static float * | x_rr_node_left = NULL |
static float * | x_rr_node_right = NULL |
static float * | y_rr_node_top = NULL |
static float * | y_rr_node_bottom = NULL |
static enum color_types * | rr_node_color = NULL |
static int | old_num_rr_nodes = 0 |
enum e_draw_net_type |
enum e_draw_rr_toggle |
enum e_edge_dir |
void alloc_draw_structs | ( | void | ) |
|
static |
Definition at line 1837 of file draw.c.
|
static |
Definition at line 1173 of file draw.c.
|
static |
Definition at line 1112 of file draw.c.
|
static |
Definition at line 1252 of file draw.c.
|
static |
Definition at line 651 of file draw.c.
|
static |
Definition at line 1889 of file draw.c.
|
static |
Definition at line 2039 of file draw.c.
|
static |
Definition at line 684 of file draw.c.
|
static |
Definition at line 772 of file draw.c.
|
static |
Definition at line 855 of file draw.c.
|
static |
Definition at line 938 of file draw.c.
|
static |
Definition at line 1376 of file draw.c.
|
static |
Definition at line 1337 of file draw.c.
|
static |
Definition at line 1862 of file draw.c.
|
static |
|
static |
Definition at line 589 of file draw.c.
|
static |
Definition at line 487 of file draw.c.
|
static |
Definition at line 1466 of file draw.c.
|
static |
void free_draw_structs | ( | void | ) |
|
static |
|
static |
Definition at line 1408 of file draw.c.
|
static |
Definition at line 1632 of file draw.c.
|
static |
Definition at line 1735 of file draw.c.
|
static |
Definition at line 314 of file draw.c.
|
static |
Definition at line 1661 of file draw.c.
|
static |
Definition at line 1678 of file draw.c.
void init_draw_coords | ( | float | width_val | ) |
Definition at line 430 of file draw.c.
|
static |
Definition at line 222 of file draw.c.
void set_graphics_state | ( | boolean | show_graphics_val, |
int | gr_automode_val, | ||
enum e_route_type | route_type | ||
) |
|
static |
|
static |
|
static |
|
static |
Definition at line 264 of file draw.c.
void update_screen | ( | int | priority, |
char * | msg, | ||
enum pic_type | pic_on_screen_val, | ||
boolean | crit_path_button_enabled | ||
) |
Definition at line 156 of file draw.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |