Modeling S-R Flip flip for HDL code generation

8 views (last 30 days)
Shvetal Patel
Shvetal Patel on 2 Jun 2022
Answered: Kiran Kintali on 4 Jun 2022
For the functional model I used S-R flip flop in simulink library. I realized that the model is incompatible with HDL code generation. The HDL work flow section 2.3 flags error message: incompatible with :..Combinatorial Logic' is not supported for HDL code generation. To continue with code generation, comment out this block..."
The error is specific to the combinatorial logic block used in the S-R flip flop model available in the simulink library.
Please point me to an appropriate answer record which implements HDL compatible S-R flip flop model.
Thank You
  1 Comment
Bharath Venkataraman
Bharath Venkataraman on 3 Jun 2022
Do you require the S-R flip flop or will the delay block that simulates the behavior of a register meet your needs?

Sign in to comment.

Answers (1)

Kiran Kintali
Kiran Kintali on 4 Jun 2022
Attached in an example model that works in 22a release.

Community Treasure Hunt

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

Start Hunting!