File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ SRC += smvlang/expr2smv.cpp \
1111 temporal-logic/sva_to_ltl.cpp \
1212 temporal-logic/nnf.cpp \
1313 temporal-logic/trivial_sva.cpp \
14+ verilog/typename.cpp \
1415 # Empty last line
1516
1617INCLUDES = -I ../src/ -I . -I $(CPROVER_DIR ) /unit -I $(CPROVER_DIR ) /src
Original file line number Diff line number Diff line change 1+ /* ******************************************************************\
2+
3+ Module: $typename Unit Tests
4+
5+ Author: Daniel Kroening, Amazon, dkr@amazon.com
6+
7+ \*******************************************************************/
8+
9+ #include < testing-utils/use_catch.h>
10+ #include < verilog/typename.h>
11+ #include < verilog/verilog_types.h>
12+
13+ SCENARIO (" $typename(...)" )
14+ {
15+ GIVEN (" various Verilog types" )
16+ {
17+ REQUIRE (verilog_typename (verilog_chandle_typet{}) == " chandle" );
18+ REQUIRE (verilog_typename (verilog_real_typet{}) == " real" );
19+ REQUIRE (
20+ verilog_typename (verilog_signedbv_typet{10 }) == " logic signed[9:0]" );
21+ REQUIRE (verilog_typename (verilog_shortreal_typet{}) == " shortreal" );
22+ }
23+ }
You can’t perform that action at this time.
0 commit comments