Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- I guess I misunderstood your notation and problem description. I had understood that when you placed the '***' next to the state=3 deassertion, that when you removed that line you got the hang. I hadn't understood that this line had been there in both broken cases. Anyway, yes you should look at SignalTap as dsl mentioned and confirm your waveforms match Figure 1-6 of the user guide. Beyond that, your code is kind of simple so it might be something unrelated. Regarding your mistmatched system ID or timestamp, no it is not normal. It is the tools telling you that you aren't running on the same FPGA design that the software is compiled to expect. For example, maybe your are running on an FPGA that doesn't even have your custom instruction present and hangs for that reason. Furthermore, your 'DONE' bit is being set conditional on the value of 'DATAB', so depending on what your software is supplying, your instruction might take a REALLY long time to execute and simply appear to be hung when it is in fact operating normally. --- Quote End --- Thank you Ted for your suggestions. I will check SignalTap; at the moment i don't ever know what it is. Regarding problems of id and timestamp mismatch, I'm really puzzled because this problem appears sometimes also in base (untouched) example: from time to time you have to reprogram fpga or delete run configuration. Even in an example that should work perfectly: I follow exactly the tutorial to build the core and the Eclipse project. A long run time due to operands is not the case: in my example datab is 10, so the c.i. must complete in approx 10 clock cycles.