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

error:Subprogram Body cannot contain Wait Statement

Altera_Forum
Honored Contributor II
1,458 Views

Hello everyone. 

I'm studying VHDL in university. I got an error when tried to write description of d-flip-flop with using procedure in QuartusII. 

 

"Error (10532): Subprogram Body cannot contain Wait Statement" 

 

I used help and found out two things: 

1. VHDL is completely integrated into the Quartus II system. 

2. Action to correct error - Remove the Wait Statement from the Subprogram Body, or place the Wait Statement outside the Subprogram Body. (there is link on Sections 2.2 and 8.1 of the IEEE Std 1076-1993) 

 

But in section 8.1 of IEEE Std is written "The wait statement causes the suspension of a process statement or a procedure." So I think this error conflicts with VHDL Standart. Can anyone comment this? 

 

P.S. Sorry for my english, I don't know it very well :D.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
640 Views

Quartus does not support full set of vhdl but only the synthesis subset. These issues are not static facts but tool-related. So take it easy.

0 Kudos
Altera_Forum
Honored Contributor II
640 Views

But I thought this should belong synthesis subset, because Quartus can synthesise functions into a logic. 

 

I wanna it works ... :cry: 

 

I just wanted to use it like in AHDL (something like a=DFF(d,clk,,)). 

Why don't Altera do some mechanism of using this construction for VHDL?
0 Kudos
Altera_Forum
Honored Contributor II
640 Views

The standard may to do a flip flop in synthesizable VHDL is to create a process and put your code in a if rising_edge(clk) block. The wait statements in processes are usually not synthesizable.

0 Kudos
Altera_Forum
Honored Contributor II
640 Views

Thanks to all. I found answer on my question. 

 

It was just an experiment (unfortunately unsuccessful).
0 Kudos
Reply