[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA: Icarus Verilog 20010112 Snapshot




Stephen Williams <steve@icarus.com> writes:

> This has nothing to do with sign. The real problem here, now that I
> look at it, is that there is apparently an 'x' or 'z' in a constant
> memory address vector.

Sorry, I think you are wrong.  Here are the relevant lines in
ivltests/memport_bs.v:

...
   reg [3:0]  mem [2:5];
...
   if (mem[1] !== 4'hx) begin ....
...

The %ix/load loads a negative memory index (-4).  The actual memory
reference is supposed to yield 4'hx, since there is no mem[1].  This
is all correct, except that the vvp parser does not like negative
integers.

-- 
Stephan Böttcher                  FAX: +49-4181-925676
Itzenbütteler Straße 130          Tel: +49-4181-32582
21266 Jesteburg                   mailto:stephan@nevis.columbia.edu
Germany                           http://www.nevis.columbia.edu/~stephan