|
@@ -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];
|