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.

Can "$readmemb" for reading ".data" files be synthesised in Xilinx or Synopsys ?

Status
Not open for further replies.

vivek_p

Advanced Member level 4
Joined
Feb 16, 2010
Messages
115
Helped
10
Reputation
24
Reaction score
9
Trophy points
1,298
Activity points
2,009
Can "$readmemb" for reading ".data" files be synthesised in Xilinx or Synopsys ?

Can "$readmemb" for reading ".data" files be synthesised in xilinx or Synopsys??
 

$readmemb

Hi vivek_p ,
What do you want to do ? Do you want to create a ROM at synthesis time ? Did you consider `DEFINE ?
 

Re: $readmemb

How can I synthesise memory using 'define.............can you please explain

Added after 6 minutes:

Can you please explain will the below code be synthesized to a 8 byte memory..................Is there any other efficient way to synthesize memory


module..........
....................

reg [7:0] data;

always @(posedge clk)
begin
if(rst)
begin
data <=8'b0;
end

else
begin
case(addr)
10'd0: data <=8'd2;
10'd1: data <=8'd7;
.
.
.
10'd9 : data <=8'd10;
endcase
end
end


Can you please help?????
 

$readmemb

I think the piece of code you mentioned is already synthesizable
 

    vivek_p

    Points: 2
    Helpful Answer Positive Rating
Re: $readmemb

Your code is convenient for small lookup table. But for large one, compiled ROM is smaller in size.
 

    vivek_p

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top