From e9c2c1b7175604acd4285800c441c4bd1d676f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelina=20Ko=C5=9Bcielnicka?= Date: Mon, 6 Jul 2020 22:52:05 +0200 Subject: dfflegalize: Add special support for const-D latches. Those can be created by `opt_dff` when optimizing `$adff` with const clock, or with D == Q. Make dfflegalize do the opposite transform when such dlatches would be otherwise unimplementable. --- tests/techmap/dfflegalize_dlatch_const.ys | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 tests/techmap/dfflegalize_dlatch_const.ys (limited to 'tests/techmap/dfflegalize_dlatch_const.ys') diff --git a/tests/techmap/dfflegalize_dlatch_const.ys b/tests/techmap/dfflegalize_dlatch_const.ys new file mode 100644 index 000000000..0b5167a06 --- /dev/null +++ b/tests/techmap/dfflegalize_dlatch_const.ys @@ -0,0 +1,53 @@ +read_verilog -icells <