aboutsummaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-07-09 16:56:29 +0200
committerGitHub <noreply@github.com>2019-07-09 16:56:29 +0200
commitef07a313b4122b9ceb233ed7dd4733db97272577 (patch)
treeef7570bb5a462e44cc40da51894917db7ff4a76a /backends
parenta429aedc0ff21b95ded89320144d2063234a3d7e (diff)
parent93bc5affd3fc635dafec3a37bf4c5b94c252036f (diff)
downloadyosys-ef07a313b4122b9ceb233ed7dd4733db97272577.tar.gz
yosys-ef07a313b4122b9ceb233ed7dd4733db97272577.tar.bz2
yosys-ef07a313b4122b9ceb233ed7dd4733db97272577.zip
Merge pull request #1162 from whitequark/rtlil-case-attrs
Allow attributes on individual switch cases in RTLIL
Diffstat (limited to 'backends')
-rw-r--r--backends/ilang/ilang_backend.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/ilang/ilang_backend.cc b/backends/ilang/ilang_backend.cc
index b4ba2b03f..313af7d5c 100644
--- a/backends/ilang/ilang_backend.cc
+++ b/backends/ilang/ilang_backend.cc
@@ -204,6 +204,11 @@ void ILANG_BACKEND::dump_proc_switch(std::ostream &f, std::string indent, const
for (auto it = sw->cases.begin(); it != sw->cases.end(); ++it)
{
+ for (auto ait = (*it)->attributes.begin(); ait != (*it)->attributes.end(); ++ait) {
+ f << stringf("%s attribute %s ", indent.c_str(), ait->first.c_str());
+ dump_const(f, ait->second);
+ f << stringf("\n");
+ }
f << stringf("%s case ", indent.c_str());
for (size_t i = 0; i < (*it)->compare.size(); i++) {
if (i > 0)