reformat code
This commit is contained in:
parent
5ccad723c4
commit
41d38193d3
|
@ -128,7 +128,8 @@ vtr::Point<size_t> DeviceRRGSB::get_cbx_unique_block_coord(size_t id) const {
|
||||||
return cbx_unique_module_[id];
|
return cbx_unique_module_[id];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get the coordinates of the instances of a unique connection block of CHANX type */
|
/* get the coordinates of the instances of a unique connection block of CHANX
|
||||||
|
* type */
|
||||||
std::vector<vtr::Point<size_t>>
|
std::vector<vtr::Point<size_t>>
|
||||||
DeviceRRGSB::get_cbx_unique_block_instance_coord(
|
DeviceRRGSB::get_cbx_unique_block_instance_coord(
|
||||||
const vtr::Point<size_t>& unique_block_coord) const {
|
const vtr::Point<size_t>& unique_block_coord) const {
|
||||||
|
@ -155,7 +156,8 @@ vtr::Point<size_t> DeviceRRGSB::get_cby_unique_block_coord(size_t id) const {
|
||||||
return cby_unique_module_[id];
|
return cby_unique_module_[id];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get the coordinates of the instances of a unique connection block of CHANY type */
|
/* get the coordinates of the instances of a unique connection block of CHANY
|
||||||
|
* type */
|
||||||
std::vector<vtr::Point<size_t>>
|
std::vector<vtr::Point<size_t>>
|
||||||
DeviceRRGSB::get_cby_unique_block_instance_coord(
|
DeviceRRGSB::get_cby_unique_block_instance_coord(
|
||||||
const vtr::Point<size_t>& unique_block_coord) const {
|
const vtr::Point<size_t>& unique_block_coord) const {
|
||||||
|
|
|
@ -52,16 +52,18 @@ class DeviceRRGSB {
|
||||||
const vtr::Point<size_t>& unique_block_coord)
|
const vtr::Point<size_t>& unique_block_coord)
|
||||||
const; /* get the coordinates of the instances of a unique switch block */
|
const; /* get the coordinates of the instances of a unique switch block */
|
||||||
|
|
||||||
vtr::Point<size_t> get_cbx_unique_block_coord(
|
vtr::Point<size_t> get_cbx_unique_block_coord(size_t id)
|
||||||
size_t id) const; /* get the coordinate of a unique connection block of CHANX type */
|
const; /* get the coordinate of a unique connection block of CHANX type */
|
||||||
std::vector<vtr::Point<size_t>> get_cbx_unique_block_instance_coord(
|
std::vector<vtr::Point<size_t>> get_cbx_unique_block_instance_coord(
|
||||||
const vtr::Point<size_t>& unique_block_coord)
|
const vtr::Point<size_t>& unique_block_coord)
|
||||||
const; /* get the coordinates of the instances of a unique connection block of CHANX type*/
|
const; /* get the coordinates of the instances of a unique connection block
|
||||||
vtr::Point<size_t> get_cby_unique_block_coord(
|
of CHANX type*/
|
||||||
size_t id) const; /* get the coordinate of a unique connection block of CHANY type */
|
vtr::Point<size_t> get_cby_unique_block_coord(size_t id)
|
||||||
|
const; /* get the coordinate of a unique connection block of CHANY type */
|
||||||
std::vector<vtr::Point<size_t>> get_cby_unique_block_instance_coord(
|
std::vector<vtr::Point<size_t>> get_cby_unique_block_instance_coord(
|
||||||
const vtr::Point<size_t>& unique_block_coord)
|
const vtr::Point<size_t>& unique_block_coord)
|
||||||
const; /* get the coordinates of the instances of a unique connection block of CHANY type */
|
const; /* get the coordinates of the instances of a unique connection block
|
||||||
|
of CHANY type */
|
||||||
|
|
||||||
const RRGSB& get_gsb_unique_module(
|
const RRGSB& get_gsb_unique_module(
|
||||||
const size_t& index) const; /* Get a rr-gsb which is a unique mirror */
|
const size_t& index) const; /* Get a rr-gsb which is a unique mirror */
|
||||||
|
@ -175,7 +177,8 @@ when read_unique_blocks command invoked */
|
||||||
|
|
||||||
private: /* Internal Data */
|
private: /* Internal Data */
|
||||||
std::vector<std::vector<RRGSB>> rr_gsb_;
|
std::vector<std::vector<RRGSB>> rr_gsb_;
|
||||||
bool is_compressed_ = false; /* True if the unique blocks have been preloaded or built */
|
bool is_compressed_ =
|
||||||
|
false; /* True if the unique blocks have been preloaded or built */
|
||||||
|
|
||||||
std::vector<std::vector<size_t>>
|
std::vector<std::vector<size_t>>
|
||||||
gsb_unique_module_id_; /* A map from rr_gsb to its unique mirror */
|
gsb_unique_module_id_; /* A map from rr_gsb to its unique mirror */
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#include "arch_error.h"
|
#include "arch_error.h"
|
||||||
#include "device_rr_gsb_utils.h"
|
#include "device_rr_gsb_utils.h"
|
||||||
|
|
||||||
|
|
||||||
/********************************************************************
|
/********************************************************************
|
||||||
* This file includes the top-level functions of this library
|
* This file includes the top-level functions of this library
|
||||||
* which includes:
|
* which includes:
|
||||||
|
@ -29,7 +28,8 @@ int write_xml_atom_block(std::fstream& fp,
|
||||||
const std::vector<vtr::Point<size_t>>& instance_map,
|
const std::vector<vtr::Point<size_t>>& instance_map,
|
||||||
const vtr::Point<size_t>& unique_block_coord,
|
const vtr::Point<size_t>& unique_block_coord,
|
||||||
std::string type);
|
std::string type);
|
||||||
void report_unique_module_status_write(const DeviceRRGSB& device_rr_gsb,
|
void report_unique_module_status_write(
|
||||||
|
const DeviceRRGSB& device_rr_gsb,
|
||||||
bool verbose_output); /*report status of written info*/
|
bool verbose_output); /*report status of written info*/
|
||||||
int write_xml_unique_blocks(const DeviceRRGSB& device_rr_gsb, const char* fname,
|
int write_xml_unique_blocks(const DeviceRRGSB& device_rr_gsb, const char* fname,
|
||||||
bool verbose_output);
|
bool verbose_output);
|
||||||
|
|
Loading…
Reference in New Issue