aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSahand Kashani <sahand.kashani@gmail.com>2020-03-23 09:01:17 +0100
committerSahand Kashani <sahand.kashani@gmail.com>2020-03-23 09:01:17 +0100
commitf48fb26c0f87b2310ed1ae0ce2bfeaeb3a1ae4ae (patch)
treeb29692be9c63f62740a9218e3a152cefcd4d11a0
parent566e08485a93c07d9db2162250a56ab6952a06e3 (diff)
downloadyosys-f48fb26c0f87b2310ed1ae0ce2bfeaeb3a1ae4ae.tar.gz
yosys-f48fb26c0f87b2310ed1ae0ce2bfeaeb3a1ae4ae.tar.bz2
yosys-f48fb26c0f87b2310ed1ae0ce2bfeaeb3a1ae4ae.zip
Indentation conventions
-rw-r--r--backends/firrtl/firrtl.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/backends/firrtl/firrtl.cc b/backends/firrtl/firrtl.cc
index a4bfe8549..de7d2275b 100644
--- a/backends/firrtl/firrtl.cc
+++ b/backends/firrtl/firrtl.cc
@@ -107,10 +107,10 @@ std::string getFileinfo(const dict<RTLIL::IdString, RTLIL::Const> &attributes)
}
}
- std::string fileinfo_str = fileinfo.str();
- fileinfo_str.erase(std::remove(fileinfo_str.begin(), fileinfo_str.end(), '\"'), fileinfo_str.end());
+ std::string fileinfo_str = fileinfo.str();
+ fileinfo_str.erase(std::remove(fileinfo_str.begin(), fileinfo_str.end(), '\"'), fileinfo_str.end());
- return fileinfo_str;
+ return fileinfo_str;
}
// Get a port direction with respect to a specific module.
@@ -263,9 +263,10 @@ struct FirrtlWorker
if (this->width == 0) {
log_error("Memory %s has zero width%s\n", this->name.c_str(), this->atLine());
}
- }
+ }
+
// We need a default constructor for the dict insert.
- memory() : pCell(0), read_latency(0), write_latency(1), init_file(""), init_file_srcFileSpec(""){}
+ memory() : pCell(0), read_latency(0), write_latency(1), init_file(""), init_file_srcFileSpec(""){}
const char *atLine() {
if (srcLine == "") {