any suggestions on where to add linebreaks? Must be something very simple, otherwise I'd suggest to put this functionality into a beautifier...
out of pure curiosity: what are u using vMAGIC for?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With an old version of vmagic i had an expression LineBreak extending Primary with nested Expression, calling writer.newLine() after the expression. It worked, but since a linebreak is no VHDL-expression it was just a hack.
You could add a method like breakLineAfterThis() to Expression and call a method with writer.newLine() in the Visitor if breakLine is set for the Expression. Its simple, but maybe you don't like it in the structure of your API. ;)
I'm connecting IP-Cores with the Wishbone-Bus. You say like "connect 10 instances of this cpu with 20 instances of this memory" and my program generates the bus and connects the cores. In this example my bus arbiter would have huge expressions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
any suggestions on where to add linebreaks? Must be something very simple, otherwise I'd suggest to put this functionality into a beautifier...
out of pure curiosity: what are u using vMAGIC for?
With an old version of vmagic i had an expression LineBreak extending Primary with nested Expression, calling writer.newLine() after the expression. It worked, but since a linebreak is no VHDL-expression it was just a hack.
You could add a method like breakLineAfterThis() to Expression and call a method with writer.newLine() in the Visitor if breakLine is set for the Expression. Its simple, but maybe you don't like it in the structure of your API. ;)
I'm connecting IP-Cores with the Wishbone-Bus. You say like "connect 10 instances of this cpu with 20 instances of this memory" and my program generates the bus and connects the cores. In this example my bus arbiter would have huge expressions.
I think this is a useful feature. I'll add it when I finish the new output system.