1.1 diff -r ae6035050124 -r a61bb364ae1f lm32_ram.v 1.2 --- a/lm32_ram.v Sun Apr 04 20:42:58 2010 +0100 1.3 +++ b/lm32_ram.v Sun Apr 04 20:52:32 2010 +0100 1.4 @@ -58,10 +58,12 @@ 1.5 ----------------------------------------------------------------------*/ 1.6 parameter data_width = 1; // Width of the data ports 1.7 parameter address_width = 1; // Width of the address ports 1.8 +`ifdef PLATFORM_LATTICE 1.9 parameter RAM_IMPLEMENTATION = "AUTO"; // Implement memory in EBRs, else 1.10 // let synthesis tool select best 1.11 // possible solution (EBR or LUT) 1.12 parameter RAM_TYPE = "RAM_DP"; // Type of EBR to be used 1.13 +`endif 1.14 1.15 /*---------------------------------------------------------------------- 1.16 Inputs 1.17 @@ -82,7 +84,8 @@ 1.18 ----------------------------------------------------------------------*/ 1.19 output [data_width-1:0] read_data; // Data read from specified addess 1.20 wire [data_width-1:0] read_data; 1.21 - 1.22 + 1.23 +`ifdef PLATFORM_LATTICE 1.24 generate 1.25 1.26 if ( RAM_IMPLEMENTATION == "EBR" ) 1.27 @@ -257,6 +260,7 @@ 1.28 1.29 else 1.30 begin 1.31 +`endif 1.32 /*---------------------------------------------------------------------- 1.33 Internal nets and registers 1.34 ----------------------------------------------------------------------*/ 1.35 @@ -282,8 +286,9 @@ 1.36 if (enable_read) 1.37 ra <= read_address; 1.38 1.39 +`ifdef PLATFORM_LATTICE 1.40 end 1.41 1.42 endgenerate 1.43 - 1.44 +`endif 1.45 endmodule