Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

FPGA Reset

SKhan10
Novice
3,148 Views

Hallo

For our project, we are using a combination Simulink HDL coder and Quartas to generate vhdl files and program the FPGA. We create our design in Simulink and using the Simulink HDL coder we generate the VHDL files. Then we use this vhdl files to create a project in Quartus and then download it in the FPGA.

We are using an Asynchronous reset. But from Quartus we get the following message

 

Rule R102: External reset signals should be synchronized using two cascaded registers

 

I have looked through the forum and understood that we need to create 2 D-flip flops to solve this problem. But Simulink HDL coder does not allow to use a D flip flop on the design. Any idea how this problem can be solved?

 

 

0 Kudos
2 Replies
Tricky
New Contributor II
2,141 Views

D Flip flops are just Z-1 transforms in simulink.

But you might be better treating the simulink design as a block you instatiate manually in some hand coded VHDL to handle all the IO.

0 Kudos
GuaBin_N_Intel
Employee
2,141 Views

After converting into VHDL file, you can simply add sync register chain as following ​https://www.intel.co.jp/content/dam/www/programmable/us/en/pdfs/literature/quartus2/qts_qii51006.pdf,figure 9-14.

0 Kudos
Reply