aboutsummaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorJim Lawson <ucbjrl@berkeley.edu>2019-02-15 12:00:28 -0800
committerJim Lawson <ucbjrl@berkeley.edu>2019-02-15 12:00:28 -0800
commitc245041bfe2ee0d5b5504fa5e9459ac52e836c33 (patch)
treea87d0ea6125ae7a00210ad890716c4417994bf2c /backends
parent34153adef408bc226430f05d14cd4af9384359f9 (diff)
downloadyosys-c245041bfe2ee0d5b5504fa5e9459ac52e836c33.tar.gz
yosys-c245041bfe2ee0d5b5504fa5e9459ac52e836c33.tar.bz2
yosys-c245041bfe2ee0d5b5504fa5e9459ac52e836c33.zip
Removed unused variables, functions.
Diffstat (limited to 'backends')
-rw-r--r--backends/firrtl/firrtl.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/backends/firrtl/firrtl.cc b/backends/firrtl/firrtl.cc
index 7ca5dc756..0917ecba6 100644
--- a/backends/firrtl/firrtl.cc
+++ b/backends/firrtl/firrtl.cc
@@ -96,23 +96,6 @@ const char *make_id(IdString id)
return namecache.at(id).c_str();
}
-static std::vector<string> Tokenize( const string str, const std::regex regex )
-{
- using namespace std;
-
- std::vector<string> result;
-
- sregex_token_iterator it( str.begin(), str.end(), regex, -1 );
- sregex_token_iterator reg_end;
-
- for ( ; it != reg_end; ++it ) {
- if ( !it->str().empty() ) //token could be empty:check
- result.emplace_back( it->str() );
- }
-
- return result;
-}
-
struct FirrtlWorker
{
Module *module;
@@ -373,7 +356,6 @@ struct FirrtlWorker
bool is_signed = cell->parameters.at("\\A_SIGNED").as_bool();
int y_width = cell->parameters.at("\\Y_WIDTH").as_int();
string a_expr = make_expr(cell->getPort("\\A"));
- int a_padded_width = cell->parameters.at("\\A_WIDTH").as_int();
string b_expr = make_expr(cell->getPort("\\B"));
int b_padded_width = cell->parameters.at("\\B_WIDTH").as_int();
wire_decls.push_back(stringf(" wire %s: UInt<%d>\n", y_id.c_str(), y_width));
@@ -618,8 +600,6 @@ struct FirrtlWorker
// This may be a parameterized module - paramod.
if (cell->type.substr(0, 8) == "$paramod")
{
- auto paramod_module = log_id(module);
- auto paramod_instance = log_id(cell);
process_instance(cell, wire_exprs);
continue;
}