mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
Merge pull request #5033 from jix/liberty-fixes
liberty: More robust parsing
This commit is contained in:
commit
7f7ad87b7b
5 changed files with 67 additions and 10 deletions
14
tests/liberty/non-ascii.lib
Normal file
14
tests/liberty/non-ascii.lib
Normal file
|
@ -0,0 +1,14 @@
|
|||
// The parser used to choke on the copyright symbol even in comments
|
||||
// © ® ø Φ
|
||||
library(dummy) {
|
||||
cell(buffer) {
|
||||
area : 1 ;
|
||||
pin(A) {
|
||||
direction : input ;
|
||||
}
|
||||
pin(Y) {
|
||||
direction : output ;
|
||||
function : "A" ;
|
||||
}
|
||||
}
|
||||
}
|
12
tests/liberty/non-ascii.lib.filtered.ok
Normal file
12
tests/liberty/non-ascii.lib.filtered.ok
Normal file
|
@ -0,0 +1,12 @@
|
|||
library(dummy) {
|
||||
cell(buffer) {
|
||||
area : 1 ;
|
||||
pin(A) {
|
||||
direction : input ;
|
||||
}
|
||||
pin(Y) {
|
||||
direction : output ;
|
||||
function : "A" ;
|
||||
}
|
||||
}
|
||||
}
|
5
tests/liberty/non-ascii.lib.verilogsim.ok
Normal file
5
tests/liberty/non-ascii.lib.verilogsim.ok
Normal file
|
@ -0,0 +1,5 @@
|
|||
module buffer (A, Y);
|
||||
input A;
|
||||
output Y;
|
||||
assign Y = A; // "A"
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue