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
// check to see if a color map was already created previously
85
80
if (draw_state->noc_usage_color_map == nullptr) {
86
-
// we havent created a color map yet for the noc link usage, so create it here
81
+
// we haven't created a color map yet for the noc link usage, so create it here
87
82
// the color map creates a color spectrum that gradually changes from a dark to light color. Where a dark color represents low noc link usage (low bandwidth) and a light color represents high noc link usage (high bandwidth)
88
83
// The color map needs a min and max value to generate the color range.
89
84
// The noc usage is calculated by taking the ratio of the links current bandwidth over the maximum allowable bandwidth
90
-
// for the NoC, the min value is 0, since you cannot go lower than 0 badnwidth.
85
+
// for the NoC, the min value is 0, since you cannot go lower than 0 bandwidth.
91
86
// The max value is going to be 1 and represents the case where the link is used to full capacity on the noc link (as provided by the user)
@@ -158,7 +143,7 @@ ezgl::rectangle get_noc_connection_marker_bbox(const t_logical_block_type_ptr no
158
143
* We do the following to calculate the position of the marker:
159
144
* 1. Get the area of the larger router tile
160
145
* 2. Calculate the area of the marker (based on a predefined percentage of the area of the larger noc tile)
161
-
* 3. The marker is a square, so we can can calculate the lengths
146
+
* 3. The marker is a square, so we can calculate the lengths
162
147
* of the sides of the marker
163
148
* 4. Divide the side length by 2 and subtract this from the x & y coordinates of the center of the larger noc router tile. This is the bottom left corner of the rectangle.
164
149
* 5. Then add the side length to the x & y coordinate of the center of the larger noc router tile. THis is the top right corner of the rectangle.
0 commit comments