3D-ICE 3.0.0
Data Structures | Typedefs | Functions
stack_description.h File Reference
#include <stdio.h>
#include "types.h"
#include "string_t.h"
#include "channel.h"
#include "heat_sink.h"
#include "die_list.h"
#include "layer_list.h"
#include "dimensions.h"
#include "material_list.h"
#include "stack_element_list.h"

Go to the source code of this file.

Data Structures

struct  StackDescription_t
 Structure containing all the informations related to the 3d stack. More...
 

Typedefs

typedef struct StackDescription_t StackDescription_t
 

Functions

void stack_description_init (StackDescription_t *stkd)
 
void stack_description_destroy (StackDescription_t *stkd)
 
void stack_description_print (StackDescription_t *stkd, FILE *stream, String_t prefix)
 
Quantity_t get_number_of_floorplan_elements (StackDescription_t *stkd, String_t stack_element_id)
 
Quantity_t get_total_number_of_floorplan_elements (StackDescription_t *stkd)
 

Typedef Documentation

◆ StackDescription_t

Definition of the type StackDescription_t

Definition at line 119 of file stack_description.h.

Function Documentation

◆ get_number_of_floorplan_elements()

Quantity_t get_number_of_floorplan_elements ( StackDescription_t stkd,
String_t  stack_element_id 
)

Returns the number of floorplan elements in a stack element

The parameter stack_element_id must refer to the ID given to a stack element (of type die) in the stack file used to to fill stkd

Parameters
stkdaddress of the StackDescription structure
stack_element_idthe id of the stack element
Returns
0 if stack_element_id does not exist in the stack or if it does not refer to a die.
the number of floorplan elements in stack_element_id

Definition at line 130 of file stack_description.c.

◆ get_total_number_of_floorplan_elements()

Quantity_t get_total_number_of_floorplan_elements ( StackDescription_t stkd)

Returns the total number of floorplan elements in the whole 3d stack

Parameters
stkdaddress of the StackDescription structure
Returns
the total nyumber of floorplan elements in the 3d stack

Definition at line 158 of file stack_description.c.

◆ stack_description_destroy()

void stack_description_destroy ( StackDescription_t stkd)

Destroys the content of the fields of the structure stkd

The function releases any dynamic memory used by the structure and resets its state calling stack_description_init .

Parameters
stkdthe address of the structure to destroy

Definition at line 60 of file stack_description.c.

◆ stack_description_init()

void stack_description_init ( StackDescription_t stkd)

Inits the fields of the skd structure with default values

Parameters
stkdthe address of the structure to initalize

Definition at line 43 of file stack_description.c.

◆ stack_description_print()

void stack_description_print ( StackDescription_t stkd,
FILE *  stream,
String_t  prefix 
)

Prints the sack descritpion as it looks in the stack file

Parameters
stkdthe address of the structure to print
streamthe output stream (must be already open)
prefixa string to be printed as prefix at the beginning of each line

Definition at line 79 of file stack_description.c.