Go to the source code of this file.
void dum_parse |
( |
char * |
buf | ) |
|
Definition at line 358 of file read_blif.c.
char * my_strtok(char *ptr, const char *tokens, FILE *fp, char *buf)
void echo_input |
( |
char * |
blif_file, |
|
|
char * |
echo_file, |
|
|
t_model * |
library_models |
|
) |
| |
Definition at line 980 of file read_blif.c.
992 int *lut_distribution;
993 int num_absorbable_latch;
996 cur = library_models;
997 logic_model = latch_model = NULL;
1011 num_absorbable_latch = 0;
1014 if (logic_model == NULL )
1016 for (j = 0; j < logic_model->
inputs[0].
size; j++) {
1021 lut_distribution[j]++;
1023 if (latch_model == NULL )
1029 num_absorbable_latch++;
1034 vpr_printf(TIO_MESSAGE_INFO,
"Input netlist file: '%s', model: %s\n",
1036 vpr_printf(TIO_MESSAGE_INFO,
"Primary inputs: %d, primary outputs: %d\n",
1038 vpr_printf(TIO_MESSAGE_INFO,
"LUTs: %d, latches: %d, subckts: %d\n",
1040 vpr_printf(TIO_MESSAGE_INFO,
"# standard absorbable latches: %d\n",
1041 num_absorbable_latch);
1043 for (i = 0; i < logic_model->
inputs[0].
size + 1; i++) {
1046 vpr_printf(TIO_MESSAGE_DIRECT,
"LUT size %d = %d", i,
1047 lut_distribution[i]);
1050 vpr_printf(TIO_MESSAGE_INFO,
"Total blocks: %d, total nets: %d\n",
1055 fprintf(fp,
"Input netlist file: '%s', model: %s\n", blif_file,
model);
1057 "num_p_inputs: %d, num_p_outputs: %d, num_luts: %d, num_latches: %d\n",
1059 fprintf(fp,
"num_logical_blocks: %d, num_logical_nets: %d\n",
1062 fprintf(fp,
"\nNet\tName\t\t#Pins\tDriver\tRecvs.\n");
1064 fprintf(fp,
"\n%d\t%s\t", i,
vpack_net[i].name);
1067 fprintf(fp,
"%d",
vpack_net[i].num_sinks + 1);
1069 fprintf(fp,
"\t(%d,%d,%d)",
vpack_net[i].node_block[j],
1074 fprintf(fp,
"\n\nBlocks\t\tBlock type legend:\n");
1087 fprintf(fp,
"\tinput port: %s \t", port->
name);
1088 for (j = 0; j < port->
size; j++) {
1090 fprintf(fp,
"OPEN ");
1101 fprintf(fp,
"\toutput port: %s \t", port->
name);
1102 for (j = 0; j < port->
size; j++) {
1104 fprintf(fp,
"OPEN ");
1114 fprintf(fp,
"\tclock net: %d\n",
logical_block[i].clock_net);
FILE * my_fopen(const char *fname, const char *flag, int prompt)
void * my_calloc(size_t nelem, size_t size)
struct s_model_ports * next
struct s_logical_block * logical_block
void read_and_process_blif |
( |
char * |
blif_file, |
|
|
boolean |
sweep_hanging_nets_and_inputs, |
|
|
t_model * |
user_models, |
|
|
t_model * |
library_models, |
|
|
boolean |
read_activity_file, |
|
|
char * |
activity_file |
|
) |
| |
Definition at line 1765 of file read_blif.c.
1770 read_blif(blif_file, sweep_hanging_nets_and_inputs, user_models,
1771 library_models, read_activity_file, activity_file);
static int * logical_block_input_count
static void read_blif(char *blif_file, boolean sweep_hanging_nets_and_inputs, t_model *user_models, t_model *library_models, boolean read_activity_file, char *activity_file)
static void compress_netlist(void)
static void show_blif_stats(t_model *user_models, t_model *library_models)
static int * logical_block_output_count
boolean getEchoEnabled(void)
boolean isEchoFileEnabled(enum e_echo_files echo_option)
void echo_input(char *blif_file, char *echo_file, t_model *library_models)
char * getEchoFileName(enum e_echo_files echo_option)
static void absorb_buffer_luts(void)