فهرست منبع

test(resource): force TD block RAM inference

root 3 ماه پیش
والد
کامیت
5961fda1b2
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      tests/resource/architecture_ab_candidates.v

+ 5 - 1
tests/resource/architecture_ab_candidates.v

@@ -128,7 +128,11 @@ module ab_store_eram (
     input wire clk, input wire wr_en, input wire [7:0] wr_addr, input wire [7:0] wr_data,
     input wire clk, input wire wr_en, input wire [7:0] wr_addr, input wire [7:0] wr_data,
     input wire [7:0] rd_addr, output reg [7:0] rd_data
     input wire [7:0] rd_addr, output reg [7:0] rd_data
 );
 );
-    (* ram_style = "block", syn_ramstyle = "block_ram" *) reg [7:0] mem [0:255];
+    // TD follows its documented synthesis directives here; the generic
+    // attributes above were silently ignored and therefore did not constitute
+    // an actual FF-versus-eRAM comparison.
+    /* synthesis force_ram */
+    reg [7:0] mem [0:255] /* synthesis ram_style = bram */;
     always @(posedge clk) begin
     always @(posedge clk) begin
         if (wr_en) mem[wr_addr] <= wr_data;
         if (wr_en) mem[wr_addr] <= wr_data;
         rd_data <= mem[rd_addr];
         rd_data <= mem[rd_addr];