mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-03 04:57:53 +00:00
Add test to verify that the liberty format is properly parsed.
This commit is contained in:
parent
083daf1a87
commit
54ea41c40c
5 changed files with 86 additions and 0 deletions
22
tests/liberty/dff.lib
Normal file
22
tests/liberty/dff.lib
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// Test library for different DFF function expressions
|
||||
|
||||
library(dff) {
|
||||
cell (dff) {
|
||||
area : 1;
|
||||
ff("IQ", "IQN") {
|
||||
next_state : "(D)";
|
||||
clocked_on : "CLK";
|
||||
}
|
||||
pin(D) {
|
||||
direction : input;
|
||||
}
|
||||
pin(CLK) {
|
||||
direction : input;
|
||||
}
|
||||
pin(Q) {
|
||||
direction: output;
|
||||
function : "IQ";
|
||||
}
|
||||
}
|
||||
|
||||
} /* end */
|
||||
Loading…
Add table
Add a link
Reference in a new issue