Altera_Forum
Honored Contributor
8 years agoHow to control the DATA input of a LUT
Hi all,
i am using lut_input/lut_output primitives to define a LUT function, and i want to control which DATAx input of LUT is used. For example, i want to use DATAC input of LUT, but it seems that QII fitter randomly choose a DATA input like DATAD as input port(EP4CE115 with QII14.0). How can i control the DATA input of a LUT? The thread (http://www.alteraforum.com/forum/showthread.php?t=48731) has the same requirement as me, it seems revising .rcf file may help. so i generated rcf file and revised 'route_port' in the file correspondingly, please see the following code. //verilog code wire ia; (* keep *)wire combo; lut_input t1(cnt_rx[0],ia); lut_output o1(ia,combo); //original rcf file branch_point = Label_LOCAL_INTERCONNECT:X76Y23S0I12; dest = ( combo, DATAA ), route_port = DATAD; //revised rcf file branch_point = Label_LOCAL_INTERCONNECT:X76Y23S0I12; dest = ( combo, DATAA ), route_port = DATAC; -------------------- QII14.0 gives following info: Info (170085): Cannot route signal "cnt_rx[0]" to atom "combo" Info (170097): Routing for this connection is constrained Info (170098): Error on line number 6752 in Routing Constraints File Info (170119): To finish routing, the Quartus II software will remove the routing constraints for this fan-out and will make another attempt at routing this fan-out after all other fan-outs of this signal are routed when i change route_port from DATAD to DATAA, it seems ok and QII choose DATAA as LUT input port as i set, however, when i change route_port from DATAD to DATAB or DATAC, QII will give the messages as above shows. so do i miss something? or when i change from DATAD to DATAB or DATAC, need i change something else at the same time? Please help. ingdxdy