File tree 1 file changed +4
-22
lines changed
vpr/src/tileable_rr_graph
1 file changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -597,40 +597,22 @@ vtr::Point<size_t> RRGSB::get_sb_coordinate() const {
597
597
598
598
/* get the x coordinate of this X/Y-direction block */
599
599
size_t RRGSB::get_cb_x (const t_rr_type& cb_type) const {
600
- VTR_ASSERT (validate_cb_type (cb_type));
601
- switch (cb_type) {
602
- case CHANX:
603
- return get_side_block_coordinate (LEFT).x ();
604
- case CHANY:
605
- return get_side_block_coordinate (TOP).x ();
606
- default :
607
- VTR_LOG (" Invalid type of connection block!\n " );
608
- exit (1 );
609
- }
600
+ return get_cb_coordinate (cb_type).x ();
610
601
}
611
602
612
603
/* get the y coordinate of this X/Y-direction block */
613
604
size_t RRGSB::get_cb_y (const t_rr_type& cb_type) const {
614
- VTR_ASSERT (validate_cb_type (cb_type));
615
- switch (cb_type) {
616
- case CHANX:
617
- return get_side_block_coordinate (LEFT).y ();
618
- case CHANY:
619
- return get_side_block_coordinate (TOP).y ();
620
- default :
621
- VTR_LOG (" Invalid type of connection block!\n " );
622
- exit (1 );
623
- }
605
+ return get_cb_coordinate (cb_type).y ();
624
606
}
625
607
626
608
/* Get the coordinate of the X/Y-direction CB */
627
609
vtr::Point <size_t > RRGSB::get_cb_coordinate (const t_rr_type& cb_type) const {
628
610
VTR_ASSERT (validate_cb_type (cb_type));
629
611
switch (cb_type) {
630
612
case CHANX:
631
- return get_side_block_coordinate (LEFT );
613
+ return get_side_block_coordinate (BOTTOM );
632
614
case CHANY:
633
- return get_side_block_coordinate (TOP );
615
+ return get_side_block_coordinate (RIGHT );
634
616
default :
635
617
VTR_LOG (" Invalid type of connection block!\n " );
636
618
exit (1 );
You can’t perform that action at this time.
0 commit comments