Altera_Forum
Honored Contributor
17 years agoFitter is off by one or two ALUTs?
I'm using TCL to explicitly place and instantiate 48,352 of 48,352 ALUTs in an EP2S60 (Stratix II 60). There seems to be some roundoff error though, as I can only squeeze 48,350 ALUTs into the device without the fitter chewing me out.
If I instantiate 48,351 ALUTs, the fitter tells me that the design requires 3,023 LABs, but that the device only contains 3,022 of them. (Note that 48,352 / 16 = 3,022, so ceil(48,351/16) = 3,022.) And if I instantiate 48,352 ALUTs, the fitter incorrectly tells me that the design requires 48,353 ALUTs but that the device only contains 48,352 of them. However as long as I only instantiate only 48,350 ALUTs, fitting works just fine, and I can verify with Chip Editor that nothing is using the remaining 2 ALUTs that I had to avoid. If I try to add them from inside Chip Editor and re-fit, I get the same errors as with TCL. There's also nothing special about the particular ALUTs that I'm avoiding: I just have to leave any two unused. Is this a bug, or perhaps a feature masquerading as a bug? (I do realize that a tool may think it's going to need an extra ALUT or two for some purpose, but I suspect this may actually stem from bounds that nobody has ever needed to test.) Yes, I know this is irrelevant for most users. Chalk it up to unusual research needs. I've tried this with Quartus II 6.1 and 7.2, and I can provide the TCL script if anyone wants to verify the behavior.