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

schematic, bus explode, please

Altera_Forum
Contributeur émérite II
1 253 Visites

Hello friends, 

 

I need to feed LPM_ADD_SUB module which is on 37 bits with only 21 bits and the rest tied to gnd (MSB's). The problem is I can't figure out how, since those 21 bits are from LPM_MULT and the bus name is result[21..0] and the input of LPM_ADD_SUB wants datab[36..0].  

 

I know this is simple but I haven't found yet and keep me nervous :) 

 

Thanks,
0 Compliments
3 Réponses
Altera_Forum
Contributeur émérite II
501 Visites

ok, still isn't working, I wrote a small verilog to concatenate buses like that 

 

module conv21to37(in,out); input in; output out; assign out = {16'b0000000000000000,in}; endmodule 

 

But Quartus keep telling me  

 

Error: Port "datab[0]" does not exist in macrofunction "inst13" 

Error: Port "datab[10]" does not exist in macrofunction "inst13" 

Error: Port "datab[11]" does not exist in macrofunction "inst13" 

Error: Port "datab[12]" does not exist in macrofunction "inst13" 

Error: Port "datab[1]" does not exist in macrofunction "inst13" 

Error: Port "datab[2]" does not exist in macrofunction "inst13" 

Error: Port "datab[3]" does not exist in macrofunction "inst13" 

Error: Port "datab[4]" does not exist in macrofunction "inst13" 

Error: Port "datab[5]" does not exist in macrofunction "inst13" 

Error: Port "datab[6]" does not exist in macrofunction "inst13" 

Error: Port "datab[7]" does not exist in macrofunction "inst13" 

Error: Port "datab[8]" does not exist in macrofunction "inst13" 

Error: Port "datab[9]" does not exist in macrofunction "inst13" 

 

The macrofunction "inst13" is a LPM_MULT which is output 21 bits that I want to send into LPM_ADD_SUB which has a 37 bit bus on datab[36..0] 

 

Any idea?
0 Compliments
Altera_Forum
Contributeur émérite II
501 Visites

 

--- Quote Start ---  

ok, still isn't working, I wrote a small verilog to concatenate buses like that 

 

module conv21to37(in,out); input in; output out; assign out = {16'b0000000000000000,in}; endmodule 

 

But Quartus keep telling me  

 

Error: Port "datab[0]" does not exist in macrofunction "inst13" 

Error: Port "datab[10]" does not exist in macrofunction "inst13" 

Error: Port "datab[11]" does not exist in macrofunction "inst13" 

Error: Port "datab[12]" does not exist in macrofunction "inst13" 

Error: Port "datab[1]" does not exist in macrofunction "inst13" 

Error: Port "datab[2]" does not exist in macrofunction "inst13" 

Error: Port "datab[3]" does not exist in macrofunction "inst13" 

Error: Port "datab[4]" does not exist in macrofunction "inst13" 

Error: Port "datab[5]" does not exist in macrofunction "inst13" 

Error: Port "datab[6]" does not exist in macrofunction "inst13" 

Error: Port "datab[7]" does not exist in macrofunction "inst13" 

Error: Port "datab[8]" does not exist in macrofunction "inst13" 

Error: Port "datab[9]" does not exist in macrofunction "inst13" 

 

The macrofunction "inst13" is a LPM_MULT which is output 21 bits that I want to send into LPM_ADD_SUB which has a 37 bit bus on datab[36..0] 

 

Any idea? 

--- Quote End ---  

 

 

Hi, 

 

have a look to the small project.  

 

Kind regards 

 

GPK
0 Compliments
Altera_Forum
Contributeur émérite II
501 Visites

pletz, thank you very much, it was my mistake. 

 

the bus explode / combine worked like expected from schematic, but the error was generated by 2'nd LPM_MULT instance, on which I was used copy - paste instead of re-generate a new one with wizard. 

 

thanks again for example,
0 Compliments
Répondre