[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: icarus 0.8 code gen doesn't like my design -- anyone seen this error?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alex Perry wrote:
| You can substitute their module with yours, using the search order parameter.
| Change your version so that it is a bus width memory instead of bit width.
| If you actually need the bitslice capability of that code, do it afterward.
Not to mention if you implement it as a Verilog memory instead
of a huge vector, you may get better performance.
|
|
|>I managed to reproduce this one with a simple testcase:
|>
|>module junk (clk);
|> input clk;
|>
|> parameter depth = 10240;
|> parameter width = 36;
|>
|> reg [depth*width-1:0] mem;
|>
|> reg [31:0] foo;
|> reg [31:0] bar;
|>
|> always @(posedge clk) begin
|> foo <= mem >> bar;
|> end
|>endmodule
|>
|>Compiling this module gives me:
|>
|>ivl: vector.c:86: allocate_vector: Assertion `(base + idx) < (256*1024)' failed.
|>
|>If I reduce the size of the mem vector then it works. The bad news for me is
|>that my problem code is inside a Xilinx block RAM library cell, so I can't just
|>code around it without changing the RAM configuration of the design :(.
|>
|> Mark
|>
|>
|>Stephen Williams wrote:
|>
| Mark Schellhorn wrote:
| | I'm trying to debug the following error message from iverilog when
| | compiling my design with icarus v0.8.1:
| |
| | CODE GENERATION -t dll
| | ... invoking target_design
| | ivl: vector.c:86: allocate_vector: Assertion `(base + idx) < (256*1024)'
| | failed.
| |
| | It looks like maybe a vector is too large and causes a run-time error?
| | I've gone thru the code and reduced my large vectors one-by-one to see
| | if that fixed things but the problem still occurs.
|
| No one's reported this sort of error to me before, and it does indeed
| look like there is a vector being processed that is too wide, although
| it may also be a case of a allocate_vector bit leak.
|
| --
| Steve Williams "The woods are lovely, dark and deep.
| steve at icarus.com But I have promises to keep,
| http://www.icarus.com and lines to code before I sleep,
| http://www.picturel.com And lines to code before I sleep."
|>
- --
Steve Williams "The woods are lovely, dark and deep.
steve at icarus.com But I have promises to keep,
http://www.icarus.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFCNzhVrPt1Sc2b3ikRArDNAKCfUreQd48p8SL4Ny5cHvWELAqNMwCfRL+s
ZoNQxKdkL2MZQd07F002U8M=
=NOKs
-----END PGP SIGNATURE-----