- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page