quick.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

   

space.gif

   

space.gif

  ../images/main/bulllet_4dots_orange.gif Reserved Names

Vera has a set of keywords. These are listed below , and must not be used as identifiers. In addition, Vera uses a set of names that start with VERA, Vera, or vera. Therefore, using those names as a prefix for identifiers should be avoided.

   

space.gif

Keywords

Keywords

Keywords

Keywords

after

coverage_group

join

reg

all

coverage_option

little_endian

repeat

any

coverage_val

local

return

around

default

m_bad_state

rules

assoc_index

depth

m_bad_trans

shadow

assoc_size

dist

m_state

soft

async

do

m_trans

state

bad_state

else

negedge

static

bad_trans

end

new

string

before

enum

newcov

super

begin

event

non_rand

task

big_endian

export

none

terminate

bind

extends

not

this

bind_var

extern

null

trans

bit

for

or

typedef

bit_normal

foreach

output

unpacked

bit_reverse

fork

packed

var

break

function

port

vca

breakpoint

hdl_node

posedge

vector

case

hdl_task

proceed

verilog_node

casex

hide

prod

verilog_task

casez

if

prodget

vhdl_node

class

illegal_self_transition

prodset

vhdl_task

CLOCK

illegal_state

program

virtual

constraint

illegal_transition

protected

virtuals

continue

in

public

void

coverage_block

inout

rand

while

coverage_def

input

randc

wildcard

coverage_depth

integer

randcase

with

coverage_goal

interface

randseq

   

space.gif

There are predefined methods and class names. For details refer to Vera/OpenVera reference manual.

   

space.gif

   

space.gif

  ../images/main/bulllet_4dots_orange.gif Strings Constants

A string constant is a sequence of characters enclosed by double quotes. A string constant must be contained in a single line unless the new line is immediately preceded by a back slash. In this case, the back slash and new line are ignored.There is no maximum size limit for string constants.

   

space.gif

  ../images/main/bullet_star_pink.gif Example : Strings Constants
   

space.gif


 1 program string_constants {
 2   string s = "This is string constant";
 3   printf("String Assigned :%s\n",s);
 4 }
You could download file string_constants.vr here
   

space.gif

  ../images/main/bulllet_4dots_orange.gif Numbers

Vera supports two format of representing numbers.

   

space.gif

  • A simple decimal integer can be specified as a sequence of digits from 0 to 9. The negative sign is for specifying negative integers. Underscores are ignored.
  • size ´base number : This is same as in Verilog.
   

space.gif

size ´base number

   

space.gif

  • size : Specifies the number of bits in the number. If the size is omitted, the number of bits for number defaults to the host machine word size. A plus or minus sign before the size specification signifies the number¿s polarity. The maximum size is 65535. A size of 0 results in a compilation failure.
  • base : Is always preceded by a single quote (´). The base can be one of the following: d(ecimal), h(exadecimal), o(ctal), or b(inary). The base identifier can be either upper or lower case.
  • number : - The valid elements of number for each base.
   

space.gif

   

space.gif

   

space.gif

   

space.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

  

Copyright © 1998-2014

Deepak Kumar Tala - All rights reserved

Do you have any Comment? mail me at:deepak@asic-world.com