diff options
author | Niels Moseley <n.a.moseley@moseleyinstruments.com> | 2019-03-27 15:15:53 +0100 |
---|---|---|
committer | Niels Moseley <n.a.moseley@moseleyinstruments.com> | 2019-03-27 15:15:53 +0100 |
commit | 487cb45b87ce1cbcc8c2b8127e37d85dd192dceb (patch) | |
tree | b94e88d08574cf3ee10b8a7c0449b85fae75ca94 /tests/liberty/semicolextra.lib | |
parent | 7682629b79fd59f5ed49fb35a3a2441a405bfd63 (diff) | |
download | yosys-487cb45b87ce1cbcc8c2b8127e37d85dd192dceb.tar.gz yosys-487cb45b87ce1cbcc8c2b8127e37d85dd192dceb.tar.bz2 yosys-487cb45b87ce1cbcc8c2b8127e37d85dd192dceb.zip |
Liberty file parser now accepts superfluous ;
Diffstat (limited to 'tests/liberty/semicolextra.lib')
-rw-r--r-- | tests/liberty/semicolextra.lib | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/liberty/semicolextra.lib b/tests/liberty/semicolextra.lib new file mode 100644 index 000000000..0144fa3ac --- /dev/null +++ b/tests/liberty/semicolextra.lib @@ -0,0 +1,48 @@ +/* + + Test case for https://www.reddit.com/r/yosys/comments/b5texg/yosys_fails_to_parse_apparentlycorrect_liberty/ + + fall_constraint (SETUP_HOLD) formatting. + +*/ + +library(supergate) { + technology (cmos); + revision : 1.0; + + cell (DFF) { + cell_footprint : dff; + area : 50; + pin(D) { + direction : input; + capacitance : 0.002; + timing() { + related_pin : "CK"; + timing_type : setup_rising; + + fall_constraint (SETUP_HOLD) { values ("0.4000, 0.3000, 0.2000, 0.1000, 0.0000", \ + "0.4000, 0.3000, 0.2000, 0.1000, 0.000", \ + "0.5000, 0.4000, 0.3000, 0.2000, 0.0000", \ + "0.7000, 0.6000, 0.5000, 0.4000, 0.2000", \ + "1.0000, 1.0000, 0.9000, 0.8000, 0.6000"); } ; + } + } + + pin(CK) { + direction : input; + clock : true; + capacitance : 0.00290; + } + + ff(IQ,IQN) { + clocked_on : "CK"; + next_state : "D"; + } + pin(Q) { + direction : output; + capacitance : 0.003; + max_capacitance : 0.3; + } + cell_leakage_power : 0.3; + } +} |