Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
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.
21615 Discussions

Automatically specify LUT input of Cyclone II device without ECO

Altera_Forum
Honored Contributor II
1,256 Views

I attempt to implement an oscillator inside FPGA using verilog loop. Since delays of 4 LUT inputs(a, b ,c ,d) vary, it's necessary to assign signals to specified LUT inputs to ensure the design is controllable. The code is as follows: 

module Signal_Oscillator_P( 

input iSIG, 

output POSE 

); 

wire VCC=1'b1; 

wire combout; 

cycloneii_lcell_comb \SIGNAL ( 

.datad(iSIG), 

.dataa(VCC), 

.datab(POSE), 

.datac(VCC), 

.combout(combout)); 

defparam \SIGNAL .sum_lutc_input = "datac"; 

defparam \SIGNAL .lut_mask = "3300"; 

lcell u(combout,POSE); 

endmodule 

However, Quartus drifts off my attempts. The fitting result in chip planner indicates a different routing from the expected, 'POSE' is assigned to datad and 'iSIG' is assigned to datac. Since it's terrible to modify my design with ECO every time I finished compliation, I am seeking for an easy method to ensure the final fitting result matches my verilog code.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
571 Views

This is not easy, but has been discussed many times on this forum before. Have a look at the following thread, and the one it refers to. I hope it helps. 

[url]http://www.alteraforum.com/forum/showthread.php?t=48915 (http://www.alteraforum.com/forum/showthread.php?t=48915)[/URL] 

 

Cheers, 

Alex
0 Kudos
Reply