Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 讨论

Look Up Table of enum types -> declaration + usage -> how to?

Altera_Forum
名誉分销商 II
1,330 次查看

Hi All, 

 

I need to declare the following Look Up Table: 

 

.......C2 .. C1 .. C0 

L0....t0 ... t1 ... t2 

L1....t2 ... t1 ... t0 

L2....t1 ... t0 ... t2 

 

where t0, t1 and t2 are enum elements of the LUT. 

 

Each element of the LUT should be referenced by (L*,C*), which are also of enum type. 

 

Ex: 

LUT(C2,L0) should refer to t0 

LUT(C1,L1) should refer to t1 

LUT(C0,L2) should refer to t2 

 

So, how should I define this LUT? How should I refer the elements in the LUT? 

 

Thank you!
0 项奖励
0 回复数
回复