Support $bits(data_type), bug327.

This commit is contained in:
Wilson Snyder 2011-02-23 19:04:15 -05:00
parent 074ca9330d
commit 2e67a91982
4 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,10 @@ Revision history for Verilator
The contributors that suggested a given feature are shown in []. [by ...]
indicates the contributor was also the author of the fix; Thanks!
* Verilator 3.8****
**** Support $bits(data_type), bug327. [Alex Solomatnikov]
* Verilator 3.811 2011/02/14
**** Report errors on duplicated or empty pins, bug321. [Christian Leber]

View File

@ -25,7 +25,7 @@
//**********************************************************************
//**** Version and host name
#define DTVERSION "Verilator 3.811 2011/02/14"
#define DTVERSION "Verilator 3.811+ devel"
//**********************************************************************
//**** Functions

View File

@ -2115,6 +2115,7 @@ system_f_call<nodep>: // IEEE: system_tf_call (as func)
| yaD_DPI '(' exprList ')' { $$ = new AstFuncRef($2,*$1,$3); }
//
| yD_BITS '(' expr ')' { $$ = new AstAttrOf($1,AstAttrType::EXPR_BITS,$3); }
| yD_BITS '(' data_type ')' { $$ = new AstAttrOf($1,AstAttrType::EXPR_BITS,$3); }
| yD_C '(' cStrList ')' { $$ = (v3Global.opt.ignc() ? NULL : new AstUCFunc($1,$3)); }
| yD_CLOG2 '(' expr ')' { $$ = new AstCLog2($1,$3); }
| yD_COUNTONES '(' expr ')' { $$ = new AstCountOnes($1,$3); }

View File

@ -48,6 +48,7 @@ module t (/*AUTOARG*/);
if (three != 3'b111) $stop;
if ($bits(sized_based_on_enum) != 8) $stop;
if ($bits(three_t) != 3) $stop;
$write("*-* All Finished *-*\n");
$finish;