Discussion:
FPGA compile error: Program xst returned error code 6
(too old to reply)
RonW
2008-04-03 21:40:10 UTC
Permalink
Here are the last lines of my output. The last thing I did was added a 128-byte U8 memory object, with no arbitration, to get rid of an array on my front panel. There are no variables named "Tick Count mSec" or "Count mSec" or anything like that in my FPGA vi, or any of its sub-VIs. I did have a few Single-Cycle Timed Loops, but I deleted them and this error remains. (I'm trying to reduce SLICE usage.)
 
ERROR:Xst:2587 - Port <Count_mSec> of instance <n_4943> has different type in definition <rvi_CrioFpga_vi_FPGACompileCopy1_vi_Instance_7_LoopTimer_forMsec>.ERROR:Xst:2587 - Port <Tick_Count_mSec> of instance <n_4943> has different type in definition <rvi_CrioFpga_vi_FPGACompileCopy1_vi_Instance_7_LoopTimer_forMsec>.entity <rvi_CrioFpga_vi_FPGACompileCopy1_vi_Instance_7_LoopTimer_forMsec> with generics:  WIDTHWI_TopEnablePassThru_TopEnables: from generic/parameter on instance : integer (0 to 2147483647) := 3  WIDTHWO_TopEnablePassThru_TopEnables: from generic/parameter on instance : integer (0 to 2147483647) := 2-->
Total memory usage is 351336 kilobytes
Number of errors   :    2 (   0 filtered)Number of warnings :    1 (   0 filtered)Number of infos    :    0 (   0 filtered)
ERROR:Xflow - Program xst returned error code 6. Aborting flow execution...
Thanks in advance for any help.
 
-Ron
Van_L
2008-04-04 19:40:12 UTC
Permalink
Hi RonW This compile error usually comes up under 2 conditions:1. When there are unconnected inputs of subVI's&gt;&gt;Right click on the unconnected subVI's and create a constant<a href="http://digital.ni.com/public.nsf/websearch/FE379EAFF553982286256D740076B9C5?OpenDocument" target="_blank">NI KnowledgeBase: FPGA VI Can Return Compile Error When Using SubVIs with Unconnected Inputs</a> 2. When there are non-determined size arrays&gt;&gt;You must use a fixed sized array<a href="http://digital.ni.com/public.nsf/allkb/691EB3BCE86CF0DC86256D25004E75FC?OpenDocument" target="_blank">NI KnowledgeBase: My FPGA VI Does Not Compile When I Have An Unbounded Array</a> Hope this helpsP.S: These KB's are found on NI.com search field by typing in error message or compile error
RonW
2008-04-07 20:10:09 UTC
Permalink
It turned out I had a 16-bit constant wired to a loop timer that had an 8-bit internal counter. I fixed that and it recompiled without error.
Van_L
2008-04-07 20:40:09 UTC
Permalink
Great to hear you solved the problem It's incredible how much resources you can find on the forum and ni.comGood luck
Loading...