diff options
author | Andrew Zonenberg <azonenberg@drawersteak.com> | 2017-08-30 16:27:18 -0700 |
---|---|---|
committer | Andrew Zonenberg <azonenberg@drawersteak.com> | 2017-08-30 16:28:25 -0700 |
commit | 634f18be961683917ca589bed1a44b8031f06764 (patch) | |
tree | d9032eaa7e307fb6d717ef294e8e3d1c2af46b2a /passes/techmap | |
parent | 3fc1b9f3fdd7f5e8aca25b266cbfea90b519cc42 (diff) | |
download | yosys-634f18be961683917ca589bed1a44b8031f06764.tar.gz yosys-634f18be961683917ca589bed1a44b8031f06764.tar.bz2 yosys-634f18be961683917ca589bed1a44b8031f06764.zip |
extract_counter: Minor changes requested to comply with upstream policy, fixed a few typos
Diffstat (limited to 'passes/techmap')
-rw-r--r-- | passes/techmap/extract_counter.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/passes/techmap/extract_counter.cc b/passes/techmap/extract_counter.cc index c3e7e9400..6b4ea13e2 100644 --- a/passes/techmap/extract_counter.cc +++ b/passes/techmap/extract_counter.cc @@ -385,7 +385,7 @@ void counter_worker( } //Get new cell name - string countname = string("$auto$COUNTx$") + log_id(extract.rwire->name.str()); + string countname = string("$COUNTx$") + log_id(extract.rwire->name.str()); //Log it total_counters ++; @@ -484,6 +484,7 @@ struct ExtractCounterPass : public Pass { log("\n"); log(" -maxwidth N\n"); log(" Only extract counters up to N bits wide\n"); + log("\n"); log(" -pout X,Y,...\n"); log(" Only allow parallel output from the counter to the listed cell types\n"); log(" (if not specified, parallel outputs are not restricted)\n"); @@ -513,13 +514,13 @@ struct ExtractCounterPass : public Pass { { if(pouts[i] == ',') { - parallel_cells.insert(RTLIL::IdString(tmp)); + parallel_cells.insert(RTLIL::escape_id(tmp)); tmp = ""; } else tmp += pouts[i]; } - parallel_cells.insert(RTLIL::IdString(tmp)); + parallel_cells.insert(RTLIL::escape_id(tmp)); continue; } |