Is it possible to have a simulink model and run a co simulation using the model along with verilog either user created or from the HDL Coder?

Hi,
I am looking to use the HDL Coder to create verilog from a simulink model but my question is, can this sumlink model be simulated along side the verilog?
I ask as I want to create the overall model of the system using Simulink and then code the system myself in verilog but I want to make sure the verilog I create matches what was expected from the Simulink model.
Thanks, Chris

 Accepted Answer

Yes. The HDL Verifier tool allows cosimulation between Simulink and HDL code. This code can be generated by HDL Coder, or it can be handwritten code, or a combination of the two.
https://www.mathworks.com/products/hdl-verifier/

1 Comment

Thanks for the help. I have looked over the HDL Verifier and completed the tutorials that Mathworks provide and I am now going to attempt to take a simple verilog block through HDL Verifier and co-sim it with a model from Simulink. Wish me luck!

Sign in to comment.

More Answers (0)

Categories

Find more on Code Generation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!