Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17252 ディスカッション

Problem with ALTACCUMULATE megafunction

Altera_Forum
名誉コントリビューター II
2,597件の閲覧回数

Dear all, 

 

I am new in Quartus II and I have a problem which might be due to my lack of experience in this particular software. I would appreciate any help. 

 

I am using Quartus II 10 with SP 1,  

 

I am trying to make a very simple design (using schematic no VHDL) which will use an accumulator, so, I used the ALTACCUMULATE megafunction. 

 

The problem is that I cannot set specific values to the width of the WIDTH_IN (data[] input bus) and the WIDTH_OUT (result[] output bus).  

 

When I go to the properties of the ALTACCUMULATE and to the Parameters Tab, naturally, there are 4 columns: Name, Value, Type and Description. In the Type column, I use "unsigned integer". However it is impossible to set a numeric value to the Value column. It only gives me 2 choices: UNSIGNED and SIGNED. So, when I compile my project I get the following error  

 

Error: Bus range for signal "port "data[WIDTH_IN-1..0]" (ID ALTACCUMULATE:inst)" must be a number 

Error: Bus range for signal "port "result[WIDTH_OUT-1..0]" (ID ALTACCUMULATE:inst)" must be a number 

 

the error seems to imply that it needs numerical values into the VALUE column of the properties but it doesn't allow me to do so. 

 

Strangely, it IS possible to set numeric values (in the VALUE column) for the input and output buses of other functions. I have a divider, a counter and a comparator and I can set specific values for their buses. But not for my Accumulator.... 

 

Can anybody think why this happens? 

 

I would appreciate any help in this topic. 

 

Thank you all in advance, 

 

Bbonik
0 件の賞賛
7 返答(返信)
Altera_Forum
名誉コントリビューター II
1,792件の閲覧回数

i tried and was able to type values into WIDTH_IN, WIDTH_OUT 

 

alternatively you could create an ALT_ACCUM with the MegaWizard and instantiate it in your design
Altera_Forum
名誉コントリビューター II
1,792件の閲覧回数

i tried 10.1 (no sp) Subscription Edition on Linux and Windows 7, it works fine for me 

 

if anything else acts strange i would suspect an installation issue. are you using Web Edition? i think i may be able to give that a try
Altera_Forum
名誉コントリビューター II
1,792件の閲覧回数

i also tried 10.1sp1 SE for Linux, no problems there 

 

you might just build an accumulator in bdf or HDL if you just want to move on
Altera_Forum
名誉コントリビューター II
1,792件の閲覧回数

I must say that indeed I use the WebEdition Quartus II.  

Maybe this is the problem..... 

 

I suspect that my only option is to build an accumulator from scratch in bdf. 

I don't see any other solution. I just hope that I won't face similar problems with other components.... 

 

Thank you all very much for your time.... 

 

Bbonik
Altera_Forum
名誉コントリビューター II
1,792件の閲覧回数

i tried 10.1 Web Edition on Linux, it still works 

 

i'm not sure i have 10.1 Web Edition on Windows anywhere
Altera_Forum
名誉コントリビューター II
1,792件の閲覧回数

yet another option would be hacking the .bdf, maybe it will make the parameter field editable after you give it a value. here's an extraction from mine: 

 

(parameter "WIDTH_IN" "25" "Width of Input, any integer > 0" ) (parameter "WIDTH_OUT" "25" "Width of Output, any integer > 0" )
Altera_Forum
名誉コントリビューター II
1,792件の閲覧回数

Thank you very very much! 

 

That actually worked! hacking the .bdf was the only way to add the numerical values to the Accumulator. 

 

Thank you very much again!
返信