+ Post New Thread
Results 1 to 7 of 7
  1. #1
    Full Member level 1
    Points: 1,235, Level: 7

    Join Date
    Feb 2010
    Posts
    115
    Helped
    12 / 12
    Points
    1,235
    Level
    7

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

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

    •   AltAdvertisement

        
       

  2. #2
    Member level 3
    Points: 849, Level: 6

    Join Date
    Mar 2010
    Location
    bangalore
    Posts
    59
    Helped
    7 / 7
    Points
    849
    Level
    6

    Re: $readmemb

    Quote Originally Posted by vivek_p
    Can "$readmemb" for reading ".data" files be synthesised in xilinx or Synopsys??
    no



    •   AltAdvertisement

        
       

  3. #3
    Advanced Member level 3
    Points: 6,706, Level: 19

    Join Date
    May 2008
    Location
    Shang Hai
    Posts
    972
    Helped
    82 / 82
    Points
    6,706
    Level
    19

    Re: $readmemb

    $ task can't be synthesis!



    •   AltAdvertisement

        
       

  4. #4
    Full Member level 2
    Points: 2,312, Level: 11
    Achievements:
    7 years registered

    Join Date
    Mar 2007
    Posts
    132
    Helped
    41 / 41
    Points
    2,312
    Level
    11

    $readmemb

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



  5. #5
    Full Member level 1
    Points: 1,235, Level: 7

    Join Date
    Feb 2010
    Posts
    115
    Helped
    12 / 12
    Points
    1,235
    Level
    7

    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?????



    •   AltAdvertisement

        
       

  6. #6
    Full Member level 2
    Points: 2,312, Level: 11
    Achievements:
    7 years registered

    Join Date
    Mar 2007
    Posts
    132
    Helped
    41 / 41
    Points
    2,312
    Level
    11

    $readmemb

    I think the piece of code you mentioned is already synthesizable


    1 members found this post helpful.

  7. #7
    Newbie level 3
    Points: 507, Level: 4

    Join Date
    Apr 2010
    Posts
    4
    Helped
    1 / 1
    Points
    507
    Level
    4

    Re: $readmemb

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


    1 members found this post helpful.

--[[ ]]--