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

Dicrepancy between compiled projects in Quartus II Prime

HugoStein
Beginner
1,025 Views

Hello,

 

Im trying to build a project that contains a lot of sub modules in quartus and, trying to debug the system because of a supposedly malfunctioning module, I found out that, if I compile the whole project, the result for that said module is missing some inputs (when observed on the RTL viewer) if compared to the result for the module compiled alone.

 

As can be seen in the first image, if I compile the module alone using his file as the top level all the input appears correctly in the RTL Viewer.

 

HugoStein_0-1682798085671.png

 

But if I compile the whole project, in the RTL Viewer to the corresponding module I get the result in the following image. In which its missing the entries CHANNEL_A_mon_i and CHANNEL_B_mon_i.

 

HugoStein_1-1682798225678.png

 

I don't know if it's because I'm using too many blocks or if something is interacting wrongly.

 

 

0 Kudos
1 Solution
_AK6DN_
Valued Contributor I
997 Views

Well  if that indeed is your top level schematic, you have wired channels A...H and the trigger all to the same 16b bus.

So it is not surprising at all that logic is eliminated.

View solution in original post

0 Kudos
5 Replies
_AK6DN_
Valued Contributor I
1,017 Views

When compiled as a top module, all inputs and outputs are assumed to be used by Quartus, and the logic is generated.

Once instantiated as a sub module, Quartus can detect unused logic paths, and remove them.

Probably what you are seeing happen.

0 Kudos
HugoStein
Beginner
1,001 Views

Oh, I see.

 

At first, I thought there was some misconnection in the system, but my knowledge of quartus with block diagram is limited, so I didn't find a proper way of checking. Given that I'm using symbols in the block diagram with Verilog code as shown in the images below, do you have any suggestions?

 

HugoStein_0-1682813669406.png

HugoStein_1-1682813731776.png

 

 

Thank you so much for the reply,

 

Best regards,

Hugo Stein

 

 

0 Kudos
_AK6DN_
Valued Contributor I
998 Views

Well  if that indeed is your top level schematic, you have wired channels A...H and the trigger all to the same 16b bus.

So it is not surprising at all that logic is eliminated.

0 Kudos
Nurina
Employee
914 Views

Hello,


May I know if above comment help?


0 Kudos
HugoStein
Beginner
869 Views

Well, it did, but the issue my colleague acknowledged above wasn't the root problem.

 

I was using a problematic parameter register, which had been truncated for some reason, and thus some inputs, in this case CHANNEL_A_mon_i and CHANNEL_B_mon_i, were not properly connected, leaving some unused logic paths as mentioned before.

 

Also, @_AK6DN_  said that connecting several paths to the same buffer would create redundant logic that would later be eliminated by the compiler. But now seeing the problem I disagree with that statement.

0 Kudos
Reply