From 6378e2cd46711fed551ecf3201cee1f174d7053d Mon Sep 17 00:00:00 2001 From: Udi Finkelstein Date: Sun, 4 Mar 2018 23:35:08 +0200 Subject: 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 --- tests/simple/specify.v | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/simple/specify.v (limited to 'tests') diff --git a/tests/simple/specify.v b/tests/simple/specify.v new file mode 100644 index 000000000..74563509e --- /dev/null +++ b/tests/simple/specify.v @@ -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 + -- cgit v1.2.3 From 5e49ee5c2d52d504334a6cbbf7d9e0250e00a515 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 27 Mar 2018 14:31:19 +0200 Subject: Fix tests/simple/specify.v Signed-off-by: Clifford Wolf --- tests/simple/specify.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/simple/specify.v b/tests/simple/specify.v index 74563509e..f19418d90 100644 --- a/tests/simple/specify.v +++ b/tests/simple/specify.v @@ -19,12 +19,12 @@ specify 7.7, 8.8, 9, 10.1, 11, 12 ) ; -specparam a=1; +specparam b=1; specparam [1:2] asasa=1; endspecify specify -specparam a=1:2:3; +specparam c=1:2:3; endspecify endmodule -- cgit v1.2.3 From 0295213bec84683a72814bd53179fa57ee48fbbe Mon Sep 17 00:00:00 2001 From: Johnny Sorocil Date: Sun, 6 May 2018 15:26:23 +0200 Subject: autotest.sh: Change from /bin/bash to /usr/bin/env bash This enables running tests on Unix systems which are not shipped with bash installed in /bin/bash (eg *BSDs and Solaris). --- tests/tools/autotest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tools/autotest.sh b/tests/tools/autotest.sh index d0b0a89d7..31a6ae8ab 100755 --- a/tests/tools/autotest.sh +++ b/tests/tools/autotest.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash libs="" genvcd=false -- cgit v1.2.3 From 106af19b69c1a62531655d35f5a8f3f7eda838e7 Mon Sep 17 00:00:00 2001 From: Udi Finkelstein Date: Tue, 5 Jun 2018 17:52:36 +0300 Subject: Fixed typo (sikp -> skip) --- tests/tools/autotest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tools/autotest.sh b/tests/tools/autotest.sh index 31a6ae8ab..d6216244f 100755 --- a/tests/tools/autotest.sh +++ b/tests/tools/autotest.sh @@ -100,7 +100,7 @@ do echo -n "Test: $bn " fi - rm -f ${bn}.{err,log,sikp} + rm -f ${bn}.{err,log,skip} mkdir -p ${bn}.out rm -rf ${bn}.out/* -- cgit v1.2.3