Without checking the equivalence of the two solutions I can say: It is up to you whether to use software, hardware or both for the solution of a problem.
In your case you must keep in mind that a pure hardware solution frees the CPU so that it could perform other jobs in the meantime.
Thank you for your answer Bob,
I know that Verilog maps to logic (UDBs) and C runs on the CPU, that's why I've done more versions of the same project.
I'll continue to wait for a more specific answer to my question.
1 of 1 people found this helpful
Just re-reading your question.
A UDB contains a conrolreg, a statusreg, 2 LUTs some more logic, a counter and a programmable ALU. So it will not matter much whether using an LUT or a control register.
Bob that's great! Reading again the Digital Design Best Practices AN I read this at the end of page 13 (the note):
Note: The PSoC Creator Control and Status Register Components can be configured as one to eight control outputs
or status inputs, as Figure 17 shows. Although it is possible to create multiple single Control or Status Components,
each Component uses an entire UDB register. A better method is to use Control or Status Components with multiple
outputs or inputs. This is especially true for status inputs which have a common clock.
As underlined I'm just using the whole register in the UDB and not the whole UDB, I had doubts on this!
Thank you very much, you were really helpful!
Credits to you dear Bob
The LUTs are made using the PLDs (Programmable Logic Device)
Yes Bob, I modified my last answer many times. I'm quite new to this platform and a lot to learn in electronics but I'm trying hard!
I read that few rows down the pdf.
A pleasure to co-op with you.