aboutsummaryrefslogtreecommitdiffstats
path: root/passes/pmgen
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-21 15:41:46 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-21 15:41:46 -0700
commit61b4d7ae13c9bdb3c8aca10eb5540eca4c6d6007 (patch)
tree8d9ff5572f13fc079582ed20eb64fc942babbdad /passes/pmgen
parentedec73fec1973e5d2491e577127ff8932f67cb88 (diff)
downloadyosys-61b4d7ae13c9bdb3c8aca10eb5540eca4c6d6007.tar.gz
yosys-61b4d7ae13c9bdb3c8aca10eb5540eca4c6d6007.tar.bz2
yosys-61b4d7ae13c9bdb3c8aca10eb5540eca4c6d6007.zip
Use Cell::has_keep_attribute()
Diffstat (limited to 'passes/pmgen')
-rw-r--r--passes/pmgen/xilinx_srl.pmg8
1 files changed, 4 insertions, 4 deletions
diff --git a/passes/pmgen/xilinx_srl.pmg b/passes/pmgen/xilinx_srl.pmg
index 5ae7690c8..e90bac68d 100644
--- a/passes/pmgen/xilinx_srl.pmg
+++ b/passes/pmgen/xilinx_srl.pmg
@@ -12,7 +12,7 @@ endcode
match first
select first->type.in($_DFF_N_, $_DFF_P_, $_DFFE_NN_, $_DFFE_NP_, $_DFFE_PN_, $_DFFE_PP_, \FDRE, \FDRE_1)
- select !first->get_bool_attribute(\keep)
+ select !first->has_keep_attribute()
filter !non_first_cells.count(first)
//generate
// SigSpec A = module->addWire(NEW_ID);
@@ -49,7 +49,7 @@ subpattern setup
match first
select first->type.in($_DFF_N_, $_DFF_P_, $_DFFE_NN_, $_DFFE_NP_, $_DFFE_PN_, $_DFFE_PP_, \FDRE, \FDRE_1)
- select !first->get_bool_attribute(\keep)
+ select !first->has_keep_attribute()
endmatch
code
@@ -72,7 +72,7 @@ endcode
match next
select next->type.in($_DFF_N_, $_DFF_P_, $_DFFE_NN_, $_DFFE_NP_, $_DFFE_PN_, $_DFFE_PP_, \FDRE, \FDRE_1)
- select !next->get_bool_attribute(\keep)
+ select !next->has_keep_attribute()
select !port(next, \D)[0].wire->get_bool_attribute(\keep)
select nusers(port(next, \Q)) == 2
index <IdString> next->type === first->type
@@ -105,7 +105,7 @@ arg first
match next
semioptional
select next->type.in($_DFF_N_, $_DFF_P_, $_DFFE_NN_, $_DFFE_NP_, $_DFFE_PN_, $_DFFE_PP_, \FDRE, \FDRE_1)
- select !next->get_bool_attribute(\keep)
+ select !next->has_keep_attribute()
select !port(next, \D)[0].wire->get_bool_attribute(\keep)
select nusers(port(next, \Q)) == 2
index <IdString> next->type === chain.back()->type