1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
// DESCRIPTION: Verilog-Perl: Example Verilog for testing package
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2010-2012 by Wilson Snyder.
module 51_vrename_kwd;
// Keyword
wire do;
wire \do ;
// Non escapes
wire chg_non_2non;
wire chg_non_2non_nospace
;
wire \chg_non_2ext ;
wire \chg_non_2ext_nospace
;
wire \chg_non[ape]_2esc ;
wire \chg_non[ape]_2esc_nospace
;
// Extra unnecessary escapes
// Note we cannot legally remove spaces if replacing with non-escaped name
wire chg_ext_2non ;
wire chg_ext_2non_nospace
;
wire \chg_ext_2ext ;
wire \chg_ext_2ext_nospace
;
wire \chg_ext[ape]_2esc ;
wire \chg_ext[ape]_2esc_nospace
;
// Necessary escapes
wire chg_escape_2non ;
wire chg_escape_2non_nospace
;
wire \chg_escape_2ext ;
wire \chg_escape_2ext_nospace
;
wire \chg_esc[ape]_2esc ;
wire \chg_esc[ape]_2esc_nospace
;
// Strings
initial $display("bar");
initial $display("bar.bar");
initial $display("baz_foo");
initial $display("foo_baz");
endmodule
|