ERROR - Design doesn't fit into device specified, refer to the Map report for more details.
ReportsタブのMapを参照すると、100%以上の項目がある
やはり乗算器はLogicを消費する。1200ZEでは入りきらなかったようだ
:
Target Device: LCMXO2-1200ZETQFP144
:
Design Summary
Number of registers: 525 out of 1604 (33%)
PFU registers: 525 out of 1280 (41%)
PIO registers: 0 out of 324 (0%)
Number of SLICEs: 1402 out of 640 (219%) SLICEs as Logic/ROM: 1402 out of 640 (219%) SLICEs as RAM: 0 out of 480 (0%)
SLICEs as Carry: 1352 out of 640 (211%) Number of LUT4s: 2804 out of 1280 (219%) Number used as logic LUTs: 100
Number used as distributed RAM: 0
Number used as ripple logic: 2704
Number used as shift registers: 0
Number of PIO sites used: 19 + 4(JTAG) out of 108 (21%)
Number of block RAMs: 0 out of 7 (0%)
Number of GSRs: 1 out of 1 (100%)
EFB used : No
JTAG used : No
Readback used : No
Oscillator used : No
Startup used : No
POR : On
Bandgap : On
Number of Power Controller: 0 out of 1 (0%)
Number of Dynamic Bank Controller (BCINRD): 0 out of 4 (0%)
Number of Dynamic Bank Controller (BCLVDSO): 0 out of 1 (0%)
Number of DCCA: 0 out of 8 (0%)
Number of DCMA: 0 out of 2 (0%)
Number of PLLs: 0 out of 1 (0%)
Number of DQSDLLs: 0 out of 2 (0%)
Number of CLKDIVC: 0 out of 4 (0%)
Number of ECLKSYNCA: 0 out of 4 (0%)
Number of ECLKBRIDGECS: 0 out of 2 (0%)
:
Target Device: LCMXO2-7000HETQFP144
:
Design Summary
Number of registers: 664 out of 7209 (9%)
PFU registers: 664 out of 6864 (10%)
PIO registers: 0 out of 345 (0%)
Number of SLICEs: 1403 out of 3432 (41%) SLICEs as Logic/ROM: 1403 out of 3432 (41%) SLICEs as RAM: 0 out of 2574 (0%)
SLICEs as Carry: 1349 out of 3432 (39%) Number of LUT4s: 2805 out of 6864 (41%) Number used as logic LUTs: 107
Number used as distributed RAM: 0
Number used as ripple logic: 2698
Number used as shift registers: 0
Number of PIO sites used: 19 + 4(JTAG) out of 115 (20%)
Number of block RAMs: 0 out of 26 (0%)
Number of GSRs: 1 out of 1 (100%)
EFB used : No
JTAG used : No
Readback used : No
Oscillator used : No
Startup used : No
POR : On
Bandgap : On
Number of Power Controller: 0 out of 1 (0%)
Number of Dynamic Bank Controller (BCINRD): 0 out of 6 (0%)
Number of Dynamic Bank Controller (BCLVDSO): 0 out of 1 (0%)
Number of DCCA: 0 out of 8 (0%)
Number of DCMA: 0 out of 2 (0%)
Number of PLLs: 0 out of 2 (0%)
Number of DQSDLLs: 0 out of 2 (0%)
Number of CLKDIVC: 0 out of 4 (0%)
Number of ECLKSYNCA: 0 out of 4 (0%)
Number of ECLKBRIDGECS: 0 out of 2 (0%)
:
Target Device: LCMXO2-7000HETQFP144
:
Design Summary
Number of registers: 768 out of 7209 (11%)
PFU registers: 768 out of 6864 (11%)
PIO registers: 0 out of 345 (0%)
Number of SLICEs: 628 out of 3432 (18%) SLICEs as Logic/ROM: 628 out of 3432 (18%) SLICEs as RAM: 0 out of 2574 (0%)
SLICEs as Carry: 583 out of 3432 (17%) Number of LUT4s: 1243 out of 6864 (18%) Number used as logic LUTs: 77
Number used as distributed RAM: 0
Number used as ripple logic: 1166
Number used as shift registers: 0
Number of PIO sites used: 19 + 4(JTAG) out of 115 (20%)
Number of block RAMs: 0 out of 26 (0%)
Number of GSRs: 1 out of 1 (100%)
EFB used : No
JTAG used : No
Readback used : No
Oscillator used : No
Startup used : No
POR : On
Bandgap : On
Number of Power Controller: 0 out of 1 (0%)
Number of Dynamic Bank Controller (BCINRD): 0 out of 6 (0%)
Number of Dynamic Bank Controller (BCLVDSO): 0 out of 1 (0%)
Number of DCCA: 0 out of 8 (0%)
Number of DCMA: 0 out of 2 (0%)
Number of PLLs: 0 out of 2 (0%)
Number of DQSDLLs: 0 out of 2 (0%)
Number of CLKDIVC: 0 out of 4 (0%)
Number of ECLKSYNCA: 0 out of 4 (0%)
Number of ECLKBRIDGECS: 0 out of 2 (0%)
:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int in, out, n;
n = 0;
if (argc>1)
n = atoi(argv[1]);
while (scanf("%d", &in) != EOF) {
out = (n>0)?(in >> n):(in << -n);
printf("%f\n",out);
}
return 0;
}