3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-16 07:45:28 +00:00

First draft of Verilog parser support for specify blocks and parameters.

The only functionality of this code at the moment is to accept correct specify syntax and ignore it.
No part of the specify block is added to the AST
This commit is contained in:
Udi Finkelstein 2018-03-04 23:35:08 +02:00 committed by Clifford Wolf
parent f3eaa0ffa5
commit 6378e2cd46
3 changed files with 201 additions and 2 deletions

31
tests/simple/specify.v Normal file
View file

@ -0,0 +1,31 @@
module test_specify;
specparam a=1;
specify
endspecify
specify
(A => B) = ( 1 ) ;
(A- => B) = ( 1,2 ) ;
(A+ => B) = ( 1,2,3 ) ;
(A => B) = (
1.1, 2, 3,
4, 5.5, 6.6
) ;
(A => B) = (
1.1, 2, 3,
4, 5.5, 6.6 ,
7.7, 8.8, 9,
10.1, 11, 12
) ;
specparam a=1;
specparam [1:2] asasa=1;
endspecify
specify
specparam a=1:2:3;
endspecify
endmodule