26 cout <<
"BookshelfDataBase::" << __func__ << endl;
33 cout << __func__ <<
" => " << nn <<
", " << nt << endl;
38 cout << __func__ <<
" => " << n << endl;
43 cout << __func__ <<
" => " << n << endl;
48 cout << __func__ <<
" => " << n << endl;
53 cout << __func__ <<
" => " << n << endl;
58 cout << __func__ <<
" => " << n << endl;
63 cout << __func__ <<
" => " << n << endl;
70 cout << __func__ <<
" => " << name <<
", " << w <<
", " << h << endl;
77 cout << __func__ <<
" => " << name <<
", " << w <<
", " << h << endl;
85 cout << __func__ <<
" => " << name <<
", " << w <<
", " << h <<
", " << is_cell << endl;
104 cout << __func__ <<
" => " << name <<
", " << x <<
", " << y <<
", " << orient <<
", " << status <<
", plFlag = " << plFlag << endl;
108 cout << __func__ <<
" => " << name <<
", " << w << endl;
131 cout << __func__ <<
" => " << name << endl;
136 cout << __func__ << endl;
143 cout <<
"////////////// test1 ////////////////" << endl;
151 cout <<
"////////////// test2 ////////////////" << endl;
173 cout <<
"at least 1 argument is required" << endl;
Driver for Bookshelf parser.
void test2(string const &filename)
test 2: use class wrapper BookshelfParser::Driver
Custom class that inheritates BookshelfParser::BookshelfDataBase with all the required callbacks defi...
virtual void add_bookshelf_net(BookshelfParser::Net const &net)
virtual void set_bookshelf_design(string &name)
virtual void resize_bookshelf_shapes(int n)
set number of shapes
BookshelfDataBase()
constructor
virtual void set_bookshelf_route_info(BookshelfParser::RouteInfo const &info)
set routing information
virtual void resize_bookshelf_pin(int n)
virtual void resize_bookshelf_node_terminals(int nn, int nt)
virtual void add_bookshelf_row(BookshelfParser::Row const &row)
virtual void add_bookshelf_niterminal_layer(string const &, string const &)
set NI terminal with layers
virtual void add_bookshelf_terminal(string &name, int w, int h)
virtual void set_bookshelf_net_weight(string const &name, double w)
set net weight
virtual void bookshelf_end()
end of bookshelf
virtual void set_bookshelf_node_position(string const &name, double x, double y, string const &orient, string const &status, bool plFlag)
virtual void add_bookshelf_blockage_layers(string const &, std::vector< string > const &)
set blockages with layers
virtual void resize_bookshelf_row(int n)
virtual void set_bookshelf_shape(BookshelfParser::NodeShape const &shape)
set node shapes
virtual void resize_bookshelf_niterminal_layers(int n)
set number of NI terminals with layers
virtual void resize_bookshelf_blockage_layers(int n)
set number of blockage nodes with layers
virtual void resize_bookshelf_net(int n)
virtual void add_bookshelf_terminal_NI(string &name, int w, int h)
virtual void add_bookshelf_node(string &name, int w, int h, bool is_cell)
Base class for bookshelf database. Only pure virtual functions are defined. User needs to inheritat...
bool parse_file(const string &filename)
bool read(BookshelfDataBase &db, const string &auxFile)
API for BookshelfParser. Read .aux file and parse all other files.
net to describe interconnection of netlist
virtual void print(ostream &ss) const
node shape to describe the shapes of node
virtual void print(ostream &ss) const
information for routing to describe .route refer to DAC 2012 contest http://archive....
virtual void print(ostream &ss) const
virtual void print(ostream &ss) const
void test1()
test function API