Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I am working on my design which should be based on the supplied B_UART (v1.5). Being without hardware for now and later even with hardware - is there any way to simulate/debug the components behaviour without flashing it to the PSoC? I have access to ModelSim, but can't find any ressources on how to test a Verilog-based design which makes heavy use of all the Cypress extensions in ModelSim or some other Verilog simulator!?
The files with .v extension can be tested on simulators like Modelsim.
But the Datapath implementation which is used in the creation of components like UART cannot be tested on the simulators. Equivalent verilog code can be written to perform the datapath's operation which can be simulated.
Test bench has to be written to provide the inputs and necessary clock.
Other freeware such as ICARUS can also be used for the purpose of simulation. Do make sure that the syntax of the verilog code matches with that of the standard.
If Debugging of the verilog code can be done, then a symbol can be created for the component, with required pins. The project containing this component can be executed in "debug" mode and output can be probed from the pins on the oscilloscope.
Control Register data can be used as clock by toggling appropriately.
As Gautam told, it is not so easy to debug codes written in Verilog. But you can take out those signals and use Status registers externally to see the functionality. But if it is more of timing issues, then better use Modelsim to simulate.