mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-10 13:10:51 +00:00
Updated the liberty parser to accept [A:B] ranges (AST has not been updated). Liberty parser now also accepts key : value pair lines that do not end in ';'.
This commit is contained in:
parent
ccfa2fe01c
commit
3b3b77291a
8 changed files with 631 additions and 7 deletions
72
tests/liberty/semicolmissing.lib
Normal file
72
tests/liberty/semicolmissing.lib
Normal file
|
@ -0,0 +1,72 @@
|
|||
/********************************************/
|
||||
/* */
|
||||
/* Supergate cell library for Bench marking */
|
||||
/* */
|
||||
/* Symbiotic EDA GmbH / Moseley Instruments */
|
||||
/* Niels A. Moseley */
|
||||
/* */
|
||||
/* Process: none */
|
||||
/* */
|
||||
/* Date : 24-03-2019 */
|
||||
/* Version: 1.0 */
|
||||
/* Version: 1.1 - Removed semicolons in */
|
||||
/* full adder */
|
||||
/* */
|
||||
/********************************************/
|
||||
|
||||
/*
|
||||
semi colon is missing in full-adder specification
|
||||
some TSMC liberty files are formatted this way..
|
||||
*/
|
||||
|
||||
library(supergate) {
|
||||
technology (cmos);
|
||||
revision : 1.0;
|
||||
|
||||
time_unit : "1ps";
|
||||
pulling_resistance_unit : "1kohm";
|
||||
voltage_unit : "1V";
|
||||
current_unit : "1uA";
|
||||
|
||||
capacitive_load_unit(1,ff);
|
||||
|
||||
default_inout_pin_cap : 7.0;
|
||||
default_input_pin_cap : 7.0;
|
||||
default_output_pin_cap : 0.0;
|
||||
default_fanout_load : 1.0;
|
||||
|
||||
default_wire_load_capacitance : 0.1;
|
||||
default_wire_load_resistance : 1.0e-3;
|
||||
default_wire_load_area : 0.0;
|
||||
|
||||
nom_process : 1.0;
|
||||
nom_temperature : 25.0;
|
||||
nom_voltage : 1.2;
|
||||
|
||||
delay_model : generic_cmos;
|
||||
|
||||
/* full adder */
|
||||
cell (fulladder) {
|
||||
area : 8
|
||||
pin(A) {
|
||||
direction : input
|
||||
}
|
||||
pin(B) {
|
||||
direction : input
|
||||
}
|
||||
pin(CI) {
|
||||
direction : input
|
||||
}
|
||||
pin(CO) {
|
||||
direction : output
|
||||
function : "(((A * B)+(B * CI))+(CI * A))"
|
||||
}
|
||||
pin(Y) {
|
||||
direction: output
|
||||
function : "((A^B)^CI)"
|
||||
}
|
||||
}
|
||||
|
||||
} /* end */
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue