regarding problem while generating vhdl code from simulink
9 次查看(过去 30 天)
显示 更早的评论
Hello,
I have generated simulink blocks from verilog files by using "cosimWizard". Now after connection I am trying to generate vhdl/verilog code via hdl coder. But while simulating I get follwing error
HDL Cosimulation Block Error
Error reported by S-function 'shdlcosim' in 'PingPong/PingPong/VGA_Controller/S-Function':
Failed to connect to server. Make sure the loaded HDL simulator library is using shared memory
Error reported by S-function 'shdlcosim' in 'PingPong/PingPong/VGA_Controller/S-Function':
Failed to connect to server. Make sure the loaded HDL simulator library is using shared memory
and while using fixed point solver I get
Error reported by S-function 'shdlcosim' in ' PingPong/PingPong/VGA_Controller/S-Function ':
Handshaking with the server failed - Server was NOT an 'HDL Link' server, change the port
also while generating code from hdl coder I get
Error reported by S-function 'shdlcosim' in 'PingPong/PingPong/VGA_Controller/S-Function': Failed to connect to server. Make sure the loaded HDL simulator library is using shared memory
I am using shared memory option in for the connection
Please let me know what can I do to solve it.
thanks in advance
0 个评论
采纳的回答
Tim McBrayer
2016-4-8
You cannot generate code from a Cosimulation block. The purpose of this block is to take existing HDL code and simulate it with the rest of you Simulink model. You have the HDL code, sitting on disk; there is no need to generate anything. If you are trying to incorporate it into a larger design, you will need to make sure that ModelSim is loaded with the compiled code, is up and running, and is the only instance of ModelSim running. Otherwise, Simulink may not be able to communicate with your instance.
For more information, please see the HDL Verifier and HDL Coder documentation.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 HDL Coder 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!