Skip to content

Commit 4456bad

Browse files
committed
format
1 parent 057982c commit 4456bad

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

vpr/src/base/read_blif.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,9 @@ struct BlifAllocCallback : public blifparse::Callback {
538538
bool verify_blackbox_model(AtomNetlist& blif_model) {
539539
LogicalModelId arch_model_id = models_.get_model_by_name(blif_model.netlist_name());
540540

541-
if(!arch_model_id.is_valid()) {
541+
if (!arch_model_id.is_valid()) {
542542
vpr_throw(VPR_ERROR_BLIF_F, filename_.c_str(), lineno_, "BLIF model '%s' has no equivalent architecture model.",
543-
blif_model.netlist_name().c_str());
543+
blif_model.netlist_name().c_str());
544544
}
545545

546546
const t_model& arch_model = models_.get_model(arch_model_id);

vpr/src/draw/draw_rr.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ void draw_rr_edges(RRNodeId inode, ezgl::renderer* g) {
240240
e_rr_type from_type, to_type;
241241

242242
from_type = rr_graph.node_type(inode);
243+
244+
// Currently don't visualize source or sinks.
243245
if (from_type == e_rr_type::SOURCE || from_type == e_rr_type::SINK) {
244246
return;
245247
}
@@ -255,6 +257,7 @@ void draw_rr_edges(RRNodeId inode, ezgl::renderer* g) {
255257
to_type = rr_graph.node_type(to_node);
256258
bool edge_configurable = rr_graph.edge_is_configurable(inode, iedge);
257259

260+
// Currently don't visualize source or sinks.
258261
if (to_type == e_rr_type::SOURCE || to_type == e_rr_type::SINK) {
259262
continue;
260263
}
@@ -288,10 +291,10 @@ void draw_rr_edges(RRNodeId inode, ezgl::renderer* g) {
288291

289292
if (!edge_configurable) color = blk_DARKGREY;
290293

291-
if((from_type == e_rr_type::CHANX || from_type == e_rr_type::CHANY)
292-
&& (to_type == e_rr_type::IPIN)
293-
&& draw_state->draw_rr_node[to_node].node_highlighted
294-
&& draw_state->draw_rr_node[inode].color == DEFAULT_RR_NODE_COLOR){
294+
if ((from_type == e_rr_type::CHANX || from_type == e_rr_type::CHANY)
295+
&& (to_type == e_rr_type::IPIN)
296+
&& draw_state->draw_rr_node[to_node].node_highlighted
297+
&& draw_state->draw_rr_node[inode].color == DEFAULT_RR_NODE_COLOR) {
295298
// If the IPIN is clicked on, draw connection to all the CHANX
296299
// wire segments fanning into the pin. If a CHANX wire is clicked
297300
// on, draw only the connection between that wire and the IPIN, with

0 commit comments

Comments
 (0)