[engine] syntax

This commit is contained in:
tangxifan 2022-09-07 15:51:54 -07:00
parent a81de4efed
commit e5c7a3df9f
2 changed files with 10 additions and 9 deletions

View File

@ -58,7 +58,7 @@ std::vector<RRNodeId> get_rr_gsb_chan_node_configurable_driver_nodes(const RRGra
/** @brief Evaluate if two routing channels are mirror to each other */ /** @brief Evaluate if two routing channels are mirror to each other */
static static
bool is_chan_mirror(const RRGraph& rr_graph, bool is_chan_mirror(const RRGraphView& rr_graph,
const VprDeviceAnnotation& device_annotation, const VprDeviceAnnotation& device_annotation,
const RRChan& base, const RRChan& base,
const RRChan& cand) { const RRChan& cand) {
@ -97,7 +97,7 @@ bool is_chan_mirror(const RRGraph& rr_graph,
* 3. each drive_rr_switch should be the same * 3. each drive_rr_switch should be the same
*/ */
static static
bool is_sb_node_mirror(const RRGraph& rr_graph, bool is_sb_node_mirror(const RRGraphView& rr_graph,
const VprDeviceAnnotation& device_annotation, const VprDeviceAnnotation& device_annotation,
const RRGSB& base, const RRGSB& base,
const RRGSB& cand, const RRGSB& cand,
@ -159,7 +159,7 @@ bool is_sb_node_mirror(const RRGraph& rr_graph,
/** @brief Check if all the routing segments of a side of candidate SB is a mirror of the current one */ /** @brief Check if all the routing segments of a side of candidate SB is a mirror of the current one */
static static
bool is_sb_side_segment_mirror(const RRGraph& rr_graph, bool is_sb_side_segment_mirror(const RRGraphView& rr_graph,
const VprDeviceAnnotation& device_annotation, const VprDeviceAnnotation& device_annotation,
const RRGSB& base, const RRGSB& base,
const RRGSB& cand, const RRGSB& cand,
@ -219,7 +219,7 @@ bool is_sb_side_segment_mirror(const RRGraph& rr_graph,
* If all above are satisfied, the side of the two switch blocks are mirrors! * If all above are satisfied, the side of the two switch blocks are mirrors!
*/ */
static static
bool is_sb_side_mirror(const RRGraph& rr_graph, bool is_sb_side_mirror(const RRGraphView& rr_graph,
const VprDeviceAnnotation& device_annotation, const VprDeviceAnnotation& device_annotation,
const RRGSB& base, const RRGSB& base,
const RRGSB& cand, const RRGSB& cand,
@ -249,7 +249,7 @@ bool is_sb_side_mirror(const RRGraph& rr_graph,
* 5. check if pin class id and pin id are same * 5. check if pin class id and pin id are same
* If all above are satisfied, the two switch blocks are mirrors! * If all above are satisfied, the two switch blocks are mirrors!
*/ */
bool is_sb_mirror(const RRGraph& rr_graph, bool is_sb_mirror(const RRGraphView& rr_graph,
const VprDeviceAnnotation& device_annotation, const VprDeviceAnnotation& device_annotation,
const RRGSB& base, const RRGSB& base,
const RRGSB& cand) { const RRGSB& cand) {
@ -274,7 +274,7 @@ bool is_sb_mirror(const RRGraph& rr_graph,
* 2. each drive_rr_switch should be the same * 2. each drive_rr_switch should be the same
*/ */
static static
bool is_cb_node_mirror(const RRGraph& rr_graph, bool is_cb_node_mirror(const RRGraphView& rr_graph,
const VprDeviceAnnotation& device_annotation, const VprDeviceAnnotation& device_annotation,
const RRGSB& base, const RRGSB& base,
const RRGSB& cand, const RRGSB& cand,
@ -344,7 +344,7 @@ bool is_cb_node_mirror(const RRGraph& rr_graph,
} }
/** @brief Check if the candidate CB is a mirror of the current baselien */ /** @brief Check if the candidate CB is a mirror of the current baselien */
bool is_cb_mirror(const RRGraph& rr_graph, bool is_cb_mirror(const RRGraphView& rr_graph,
const VprDeviceAnnotation& device_annotation, const VprDeviceAnnotation& device_annotation,
const RRGSB& base, const RRGSB& base,
const RRGSB& cand, const RRGSB& cand,

View File

@ -7,6 +7,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "rr_gsb.h" #include "rr_gsb.h"
#include "rr_graph_view.h"
#include "vpr_device_annotation.h" #include "vpr_device_annotation.h"
/******************************************************************** /********************************************************************
@ -24,12 +25,12 @@ std::vector<RRNodeId> get_rr_gsb_chan_node_configurable_driver_nodes(const RRGra
const e_side& chan_side, const e_side& chan_side,
const size_t& track_id); const size_t& track_id);
bool is_sb_mirror(const RRGraph& rr_graph, bool is_sb_mirror(const RRGraphView& rr_graph,
const VprDeviceAnnotation& device_annotation, const VprDeviceAnnotation& device_annotation,
const RRGSB& base, const RRGSB& base,
const RRGSB& cand); const RRGSB& cand);
bool is_cb_mirror(const RRGraph& rr_graph, bool is_cb_mirror(const RRGraphView& rr_graph,
const VprDeviceAnnotation& device_annotation, const VprDeviceAnnotation& device_annotation,
const RRGSB& base, const RRGSB& base,
const RRGSB& cand, const RRGSB& cand,