Skip to content

Commit c2a723e

Browse files
committed
Remove artificial line length limit.
This removes an error when writing out packing results on directrf.
1 parent 8f73ad5 commit c2a723e

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

vpr/SRC/pack/output_clustering.c

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,14 @@ static t_pb_graph_pin ***pb_graph_pin_lookup_from_index_by_type = NULL; /* [0..n
3636

3737
static void print_string(const char *str_ptr, int *column, int num_tabs, FILE * fpout) {
3838

39-
/* Prints string without making any lines longer than LINELENGTH. Column *
40-
* points to the column in which the next character will go (both used and *
41-
* updated), and fpout points to the output file. */
39+
/*
40+
* Column points to the column in which the next character will go (both
41+
* used and updated), and fpout points to the output file.
42+
*/
4243

4344
int len;
4445

4546
len = strlen(str_ptr);
46-
if (len + 3 > LINELENGTH) {
47-
vpr_throw(VPR_ERROR_PACK, __FILE__, __LINE__,
48-
"in print_string: String %s is too long for desired maximum line length.\n", str_ptr);
49-
}
5047

5148
if (*column + len + 2 > LINELENGTH) {
5249
fprintf(fpout, "\n");
@@ -60,9 +57,8 @@ static void print_string(const char *str_ptr, int *column, int num_tabs, FILE *
6057

6158
static void print_net_name(int inet, int *column, int num_tabs, FILE * fpout) {
6259

63-
/* This routine prints out the g_atoms_nlist.net name (or open) and limits the *
64-
* length of a line to LINELENGTH characters by using \ to continue *
65-
* lines. net_num is the index of the g_atoms_nlist.net to be printed, while *
60+
/* This routine prints out the g_atoms_nlist.net name (or open).
61+
* net_num is the index of the g_atoms_nlist.net to be printed, while *
6662
* column points to the current printing column (column is both *
6763
* used and updated by this routine). fpout is the output file *
6864
* pointer. */
@@ -80,13 +76,6 @@ static void print_net_name(int inet, int *column, int num_tabs, FILE * fpout) {
8076
static void print_interconnect(t_type_ptr type, int inode, int *column, int num_tabs, t_pb_route *pb_route,
8177
FILE * fpout) {
8278

83-
/* This routine prints out the g_atoms_nlist.net name (or open) and limits the *
84-
* length of a line to LINELENGTH characters by using \ to continue *
85-
* lines. net_num is the index of the g_atoms_nlist.net to be printed, while *
86-
* column points to the current printing column (column is both *
87-
* used and updated by this routine). fpout is the output file *
88-
* pointer. */
89-
9079
char *str_ptr, *name;
9180
int prev_node, prev_edge;
9281
int len;

0 commit comments

Comments
 (0)