diff options
| author | Eddie Hung <eddie@fpgeh.com> | 2019-08-06 16:22:47 -0700 | 
|---|---|---|
| committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-06 16:22:47 -0700 | 
| commit | 046e1a52147dd4a0e1f23e4aa7cb71b0a4d1b497 (patch) | |
| tree | 900ad3764a73cb81396bcf0c0be1bc92c4df135d /backends/verilog | |
| parent | 3486235338faa1377bb4e1a8981a45b4ee6edfa9 (diff) | |
| download | yosys-046e1a52147dd4a0e1f23e4aa7cb71b0a4d1b497.tar.gz yosys-046e1a52147dd4a0e1f23e4aa7cb71b0a4d1b497.tar.bz2 yosys-046e1a52147dd4a0e1f23e4aa7cb71b0a4d1b497.zip  | |
Use State::S{0,1}
Diffstat (limited to 'backends/verilog')
| -rw-r--r-- | backends/verilog/verilog_backend.cc | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/verilog/verilog_backend.cc b/backends/verilog/verilog_backend.cc index 9a797b535..6cb053f1d 100644 --- a/backends/verilog/verilog_backend.cc +++ b/backends/verilog/verilog_backend.cc @@ -380,9 +380,9 @@ void dump_attributes(std::ostream &f, std::string indent, dict<RTLIL::IdString,  	for (auto it = attributes.begin(); it != attributes.end(); ++it) {  		f << stringf("%s" "%s %s", indent.c_str(), as_comment ? "/*" : "(*", id(it->first).c_str());  		f << stringf(" = "); -		if (modattr && (it->second == Const(0, 1) || it->second == Const(0))) +		if (modattr && (it->second == State::S0 || it->second == Const(0)))  			f << stringf(" 0 "); -		else if (modattr && (it->second == Const(1, 1) || it->second == Const(1))) +		else if (modattr && (it->second == State::S1 || it->second == Const(1)))  			f << stringf(" 1 ");  		else  			dump_const(f, it->second, -1, 0, false, as_comment);  | 
