electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Implement look up table in Verilog in FPGA using xilinx devi


Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> Implement look up table in Verilog in FPGA using xilinx devi
Author Message
IamElectric



Joined: 03 Jan 2005
Posts: 10


Post07 Mar 2005 3:04   

verilog lookup table


To implement a look up table for such as a multiplier, beside using a two dimentional array such as

reg [10:0] mem_arry[15:0]

and then initialize them in the "initial" block to the value you want?

Is there any other way of doing this?

I know that in VHDL, use can use two dimentional constant to implement a ROM look up table.

Besides using two dimentional array reg, and initialize in "initial" block, can someone recommend a different way?
Back to top
Google
AdSense
Google Adsense




Post07 Mar 2005 3:04   

Ads




Back to top
echo47



Joined: 07 Apr 2002
Posts: 4206
Helped: 566


Post07 Mar 2005 5:18   

verilog lut


Which Verilog compiler are you using? Which Xilinx chip? Do you want to initialize block RAM or distributed RAM?

XST does not support the Verilog "initial" statement, so I have to use the agonizing "// synthesis attribute INIT_xx ..." syntax.

Even worse, ModelSim ignores those attributes, so I have to duplicate the whole thing using "defparam myrom.INIT_xx ..." syntax, and then surround that with "// synthesis translate_off" controls so XST won't explode. Aargh!
Back to top
jarodz



Joined: 12 Mar 2005
Posts: 100
Helped: 14


Post12 Mar 2005 16:19   

verilog look up table


My method to implement LUT-ROM is by using the matlab to print out the
the whole module in a single file like below:

module lut
(
in,
out,
);

input [7:0] in;
output [7:0] out;

reg [7:0] out;

always @(in)
begin
case(in)
0: out =
1: out =

endcase
end

endmodule

You can use other script language to do the same work.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> Implement look up table in Verilog in FPGA using xilinx devi
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
how to implement Look-Up table in verilog (4)
how to implement look-up table in RTL? (13)
using pic16f877 need help on look up table (12)
I look for Xilinx FPGA Prices (4)
How to implement fast adder in xilinx FPGA? (3)
xilinx platform(VHDL),want to implement 8 processor in FPGA (1)
C look up table (1)
what's look-up table? (3)
look up table (LUT) (9)
hummidity look up table? (18)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS