3D-ICE 3.0.0
|
Go to the source code of this file.
Data Structures | |
struct | ICElement_t |
Typedefs | |
typedef struct ICElement_t | ICElement_t |
typedef struct ICElement_t ICElement_t |
Definition of the type ICElement_t
Definition at line 122 of file ic_element.h.
void align_to_grid | ( | ICElement_t * | icel, |
Dimensions_t * | dimensions | ||
) |
Aligns the ic element to the mesh of the IC
The function translates the coordinates of the ic element as they are in the floorplan file to coordinates in terms of rows and columns to place the ic element on the surface of the active layer. It also computes the effective dimensions.
icel | the ic element to align on the source layer |
dimensions | the structure storing the dimensions of the IC |
Definition at line 218 of file ic_element.c.
bool check_intersection | ( | ICElement_t * | icelement_a, |
ICElement_t * | icelement_b | ||
) |
Checks if two ic elements overlap
The control is based on the real coordinates of the ic element, i.e. the coordinates read from the floorplan file.
icelement_a | the first ic element to test |
icelement_b | the second ic element to test |
true
if the two surfaces oevrlap false
otherwise Definition at line 176 of file ic_element.c.
bool check_location | ( | ICElement_t * | icel, |
Dimensions_t * | dimensions | ||
) |
Checks if the ic element is inside the IC
The control is based on the real coordinates of the ic element, i.e. the coordinates read from the floorplan file.
icel | the ic element to test |
dimensions | the structure storing the dimensions of the IC |
true
if icel is outside of the IC false
otherwise Definition at line 205 of file ic_element.c.
Temperature_t get_avg_temperature_ic_element | ( | ICElement_t * | icel, |
Dimensions_t * | dimensions, | ||
Temperature_t * | temperatures | ||
) |
Returns the average temperature of the ic element
icel | pointer to the ic element |
dimensions | pointer to the structure storing the dimensions |
temperatures | pointer to the temperature of the first thermal cell in the layer where the IC element is placed |
Definition at line 364 of file ic_element.c.
Temperature_t get_max_temperature_ic_element | ( | ICElement_t * | icel, |
Dimensions_t * | dimensions, | ||
Temperature_t * | temperatures | ||
) |
Returns the maximum temperature of the ic element
icel | pointer to the ic element |
dimensions | pointer to the structure storing the dimensions |
temperatures | pointer to the temperature of the first thermal cell in the layer where the IC element is placed |
Definition at line 264 of file ic_element.c.
Temperature_t get_min_temperature_ic_element | ( | ICElement_t * | icel, |
Dimensions_t * | dimensions, | ||
Temperature_t * | temperatures | ||
) |
Returns the minimum temperature of the ic element
icel | pointer to the ic element |
dimensions | pointer to the structure storing the dimensions |
temperatures | pointer to the temperature of the first thermal cell in the layer where the IC element is placed |
Definition at line 312 of file ic_element.c.
ICElement_t * ic_element_calloc | ( | void | ) |
Allocates memory for a structure of type ICElement_t
The content of the new structure is set to default values calling ic_element_init
NULL
if the memory allocation fails Definition at line 93 of file ic_element.c.
ICElement_t * ic_element_clone | ( | ICElement_t * | icel | ) |
Allocates memory for a new copy of the structure icel
icel | the address of the structure to clone |
NULL
if the memory allocation fails NULL
if the parameter icel is NULL
Definition at line 106 of file ic_element.c.
void ic_element_copy | ( | ICElement_t * | dst, |
ICElement_t * | src | ||
) |
Copies the structure src into dst , as an assignement
The function destroys the content of dst and then makes the copy
dst | the address of the left term sructure (destination) |
src | the address of the right term structure (source) |
Definition at line 64 of file ic_element.c.
void ic_element_destroy | ( | ICElement_t * | icel | ) |
Destroys the content of the fields of the structure icel
The function releases any dynamic memory used by the structure and resets its state calling ic_element_init .
icel | the address of the structure to destroy |
Definition at line 84 of file ic_element.c.
bool ic_element_equal | ( | ICElement_t * | icel, |
ICElement_t * | other | ||
) |
Tests if two ic elements have the same position and dimensions
icel | the first ic element |
other | the second ic element |
TRUE
if icel and other have the same position and dimensions FALSE
otherwise Definition at line 136 of file ic_element.c.
void ic_element_free | ( | ICElement_t * | icel | ) |
Frees the memory space pointed by icel
The function destroys the structure icel and then frees its memory. The pointer icel must have been returned by a previous call to ic_element_calloc or ic_element_clone .
If icel is NULL
, no operation is performed.
icel | the pointer to free |
Definition at line 123 of file ic_element.c.
bool ic_element_has_center | ( | ICElement_t * | icelement, |
CellDimension_t | cellx, | ||
CellDimension_t | celly | ||
) |
Checks if the center of a thermal cell belongs to the ic element
The control is based on the real coordinates of the ic element, i.e. the coordinates read from the floorplan file.
icelement | the ic element to test |
cellx | the x coordinate of the center of the thermal cell |
celly | the y coordinate of the center of the thermal cell |
true
if the point (cellx, celly) is in the area covered by the ic element false
otherwise Definition at line 161 of file ic_element.c.
void ic_element_init | ( | ICElement_t * | icel | ) |
Inits the fields of the icel structure with default values
icel | the address of the structure to initalize |
Definition at line 46 of file ic_element.c.
void ic_element_print | ( | ICElement_t * | icel, |
FILE * | stream, | ||
String_t | prefix | ||
) |
Prints the ic element location as it looks in the floorplan file
icel | the address of the structure to print |
stream | the output stream (must be already open) |
prefix | a string to be printed as prefix at the beginning of each line |
Definition at line 146 of file ic_element.c.