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

gEDA: Icarus verilog issues/ problems



Hi,

I have successfully installed Icarus verilog 0.5 in Linux (Mandrake 7.2) and
started playing with iverilog. Mostly it is OK, but stumbled on a few cases.
Would you please check the following modules (I attach them at the end of
this mail).

module hello: Icarus verilog does not display anything, but verilog-xl
displays hello world thrice (problem with implicit wire?)
module for_test: Icarus verilog gives abort message (may be 'for' not
supported yet?)

-Debashis

----------------------------------------------------------------------------
-----------
module hello;

reg clkr;

temp U_temp(clk);

assign clk = clkr;

initial begin
 clkr = 0;
 #500 $finish;
end

task disp_hello;
input   [2:0]   sno;
begin
        @(negedge clk)
 $display("%d: hello world", sno);
end
endtask

initial begin
 disp_hello(3'b000);
 disp_hello(3'b001);
 disp_hello(3'b010);
end

always #25 clkr = ~clk;

endmodule

module temp(clk);
input clk;
endmodule
----------------------------------------------------------------------------
------------

`define SIZE 15

module for_test ( a, b, co );

input [`SIZE:0] a, b;
output co;

reg [`SIZE:0] co_reg;
reg co;
integer i;

always @ (a or b or co_reg)
begin
        for ( i = 0; i <= `SIZE; i = i + 1)
                co_reg[i] = a[i] | b[i];

 co = |co_reg;
end

endmodule

----------------------------------------------------------------------------
-------------


-----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro Limited and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:mailadmin@wipro.com and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------