Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

Quartus accepts `endif within quoted String "`endif // foo" as endif ?

$
0
0
I am using Quartus Prime Lite 17.0.0 and it accepts the following file:
Code:

module ParserErrorV01( input wire D0, output wire LED1 ) ;

  reg [10*8:1] s ;
  assign LED1=D0 ;
 
  `ifdef POSEDGE
  s = "`endif // foo";
   
endmodule

Is it right that Quartus accepts macro-conent within quoted strings?
Or is the accent grave ` forbidden in quoted strings? If I remove
the line s=.... Quartus complains that a endif is missing. That is ok.

Qould someone out there perhaps verify my observation with the above content?
Is there an explanation? (I am a FPGA-Noob)

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>