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

leave a port without input in block diagram

Ahoora
Beginner
1,376 Views

I made a counter using the lpm library and did not assign input for both cnt_en and sset pins.(first photo)

(Because I thought that according to the Intel document (second photo) by default, it sets the values ​​to 1 for cnt_en and 0 for sset, respectively.

But when I ran this counter on the Modelsim, the outputs did not change and it looked like either the sset was 0 or the cnt_en was 1. On the other hand, when I assign input to these pins and give a value (1 for cnt_en and 0 for sset) , it works properly in the Modelsim.

Now my question is Why, when we do not assign input to the pins, does not work according to the Intel document and the counter does not work properly?1.JPG

2.JPG

0 Kudos
7 Replies
ShengN_Intel
Employee
1,342 Views

Hi Ahoora,

 

Want to know what version of Quartus you are using Lite/Std/Pro?

 

Best regards,
Sheng


0 Kudos
Ahoora
Beginner
1,316 Views

Prime Lite 20.1

0 Kudos
ShengN_Intel
Employee
1,304 Views

Hi Ahoora,

 

Did you refer to this manual of lpm_counter ? Looks like that manual is main for Quartus Pro 20.3.

 

I used Lite 20.1 to synthesis the lpm_counter bdf with port cnt_en and sset unconnected. However, I couldn't find any cnt_en and sset as default pin in converted VHDL.

ShengN_Intel_0-1640785309617.png

ShengN_Intel_1-1640785572446.png

 

When I tried the lpm_counter bdf with Pro 20.3. I found that there is a different folder ''tmp-clearbox'' in Pro 20.3 folder with a .tdf file in it (file attached below).

ShengN_Intel_2-1640786020857.png                                                                                                                                                                                                    In .tdf file, the cnt_en and sset pins are both set to default values when unconnected. I think quite possibly that causes the difference between Pro 20.3 and Lite 20.1 regarding unconnected port.

 

Best regards,
Sheng

0 Kudos
ShengN_Intel
Employee
1,289 Views

Hi Ahoora,

 

Looks like Lite 20.1 also got the .tdf file in db folder.

I found this link which explains the pin default value and how does it work.

Seems like the actual meaning of pin default value is sets a default value of GND or VCC to a input pin in a Text Design File (.tdf).       

**The pin default value is used when an input port to a lower level file is left unconnected in an upper level instance. Default values are only recognized in lower-level files—they are ignored for top level files. If a pin in the top level design has a default of VCC, it does not mean that if the device input pin is unconnected, it will default to VCC. This only has an effect on a lower level design pin.   

So those input ports still need to be connected and can be assigned a default value in .tdf file.

 

Best regards,
Sheng

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos.

0 Kudos
ShengN_Intel
Employee
1,253 Views

Hi Ahoora,

 

Any update on this thread?

 

Best regards,
Sheng

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos.

0 Kudos
Ahoora
Beginner
1,244 Views

thanks! i got it

0 Kudos
ShengN_Intel
Employee
1,239 Views

Hi Ahoora,

I’m glad that you find the solution provided helpful.
I'll now transition this thread to community support.
If you have a new question, feel free to open a new thread to get the support from Intel experts.

Thank you.

Best regards,
Sheng

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos.

0 Kudos
Reply