blob: 1bd623950a1863ff5f4718288bf53ce0be768d70 [file] [log] [blame] [edit]
/* Author: Long Yu Wang
* Date: August 2013
*/
/* Enable/disable clb internals drawing. Internals drawing is enabled with a click of the
* "Blk Internal" button. With each consecutive click of the button, a lower level in the
* pb_graph will be shown for every clb. When the number of clicks on the button exceeds
* the maximum level of sub-blocks that exists in the pb_graph, internals drawing
* will be disabled.
*/
void toggle_blk_internal(void (*drawscreen_ptr)(void));
/* This function pre-allocates space to store bounding boxes for all sub-blocks. Each
* sub-block is identified by its descriptor_type and a unique pin ID in the type.
*/
void draw_internal_alloc_blk();
/* This function initializes bounding box values for all sub-blocks. It calls helper functions
* to traverse through the pb_graph for each descriptor_type and compute bounding box values.
*/
void draw_internal_init_blk();
/* Top-level drawing routine for internal sub-blocks. The function traverses through all
* grid tiles and calls helper function to draw inside each block.
*/
void draw_internal_draw_subblk();