Altera_Forum
Honored Contributor
16 years agohowto use LEs insted of M9K?
Hi,
I'm using a UART 16550 core from opencores in the SOPC builder, works very fine. It has build-in rx/tx FIFO, 16 Byte each. Quartus II uses a whole M9K-Block, which means a lot of wasted RAM. My Cyclone 3 is half full in LEs, but I could use more RAM. Long story short, I did not found a way to tell Quartus to use Logic Elements for this memory. Is this not possible here? I've tried the Assignment "Auto RAM to Logic Cell Conversion" but this didn't work. The RAM is inferred as follows:module raminfr
(clk, we, a, dpra, di, dpo);
parameter addr_width = 4;
parameter data_width = 8;
parameter depth = 16;
input clk;
input we;
input a;
input dpra;
input di;
//output spo;
output dpo;
reg ram ;
wire dpo;
wire di;
wire a;
wire dpra;
always @(posedge clk) begin
if (we)
ram <= di;
end
// assign spo = ram;
assign dpo = ram;
endmodule