Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

why DC compile this output as 0

Status
Not open for further replies.

tigerajs

Member level 3
Joined
Feb 8, 2006
Messages
55
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,638
module GF_matrix_dec(clk,re,address_read,data_out);
parameter address_width=8;
parameter data_width=8;
parameter num_words=256;
input clk,re;
input [address_width-1:0] address_read;
output [data_width-1:0] data_out;
reg [data_width-1:0] data_out;
reg [data_width-1:0] mem [0:num_words-1];
initial
begin
mem[ 0]<= 'b00000000;
mem[ 1]<= 'b00000001;
mem[ 2]<= 'b00000010;
mem[ 3]<= 'b00000100;
mem[ 4]<= 'b00001000
...............










..................









end
always @ (posedge(clk))
begin
if (re==1'b1)
begin
data_out <= mem[address_read];
end
end
endmodul


Then DC compile data_outt as 8'h00. how to solve it, thanks
 

always @ (posedge(clk))
begin
if (re==1'b1)
begin
data_out <= mem[address_read];
end
end
endmodul

Then DC compile data_outt as 8'h00. how to solve it, thanks

Not enough informations! What is about the source of "re" and "address_read"?
 

Are you sure that 'initial' supported for synthesis. Check yor log file when reading verilog in.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top