You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @brief Highlights the block that was clicked on, looking from the top layer downwards for 3D devices (chooses the block on the top visible layer for overlapping blocks)
988
+
* It highlights the block green, as well as its fanin and fanout to blue and red respectively by updating the draw_state variables responsible for holding the
989
+
* color of the block as well as its fanout and fanin.
//iterate over grid z (layers) first, so we draw from bottom to top die. This makes partial transparency of layers draw properly.
999
-
for (int layer_num = 0; layer_num < device_ctx.grid.get_num_layers(); layer_num++) {
1054
+
//iterate over grid z (layers) first. Start search of the block at the top layer to prioritize highlighting of blocks at higher levels during overlapping of layers.
t_draw_layer_display get_element_visibility_and_transparency(int src_layer, int sink_layer);
157
157
158
+
/**
159
+
* @brief takes in the x and y world coordinates of where the user clicked on the screen and returns the corresponding clusterBlockId that represents
160
+
* the clb clicked upon by the user on a currently visible FPGA layer. Search for the clb begins from the top layer to ensure it
161
+
* returns the clusterBlockId of a clb on a higher layer during instances of overlap between clb blocks.
162
+
* @param x
163
+
* @param y
164
+
* @return returns the ClusterBlockId of the clb at the specified (x,y) location (in world coordinates) as seen by looking downwards from the top of a 3D FPGA.
165
+
* Chooses the clb on the top visible layer if there are overlapping blocks. Returns EMPTY_BLOCK_ID (-1) otherwise,if clb is not found on any visible layer.
0 commit comments