Das folgende Modul (Verilog) wird bei mir fehlerfrei synthetisiert.
Anscheinend wird das `endif im String tatsächlich als `endif gewertet.
Der Modelsim Simulator beschwert sich, dass kein endif im File vorkommt.
Weiss jemand ob ` in Quartus Verilog Strings verboten sind?
1 | module test1 ;
|
2 | reg [10*8:1] s ;
|
3 |
|
4 | `ifdef POSEDGE
|
5 | s = "`endif // foo";
|
6 |
|
7 | endmodule
|
Vielleicht könnt Ihr das auch mal unter Quartus ausprobieren.
(Ich weiss, dass das Modul sinnlos ist, es ist durch Eindampfen meines
eigentlichen Programms entstanden, so dass der "Fehler" gerade noch
auftrat.)