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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
  
     | 
    
      // DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2023 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/
   // Inputs
   clk
   );
   input clk;
   int   a;
   int   b;
   int   c;
   int cyc = 0;
   always @(posedge clk) begin
      cyc <= cyc + 1;
   end
   // NOTE this grammar hasn't been checked with other simulators,
   // is here just to avoid uncovered code lines in the grammar.
   property p_strong;
      strong(a);
   endproperty
   property p_weak;
      weak(a);
   endproperty
   property p_until;
      a until b;
   endproperty
   property p_suntil;
      a s_until b;
   endproperty
   property p_untilwith;
      a until_with b;
   endproperty
   property p_suntilwith;
      a s_until_with b;
   endproperty
   property p_implies;
      a implies b;
   endproperty
   property p_poundminuspound1;
      a #-# b;
   endproperty
   property p_poundeqpound;
      a #=# b;
   endproperty
   property p_nexttime;
      nexttime a;
   endproperty
   property p_nexttime2;
      nexttime [2] a;
   endproperty
   property p_snexttime;
      s_nexttime a;
   endproperty
   property p_snexttime2;
      s_nexttime [2] a;
   endproperty
   property p_nexttime_always;
      nexttime always a;
   endproperty
   property p_nexttime_always2;
      nexttime [2] always a;
   endproperty
   property p_nexttime_eventually;
      nexttime eventually a;
   endproperty
   property p_nexttime_eventually2;
      nexttime [2] always a;
   endproperty
   property p_nexttime_seventually;
      nexttime s_eventually a;
   endproperty
   property p_nexttime_seventually2;
      nexttime s_eventually [2:$] always a;
   endproperty
   property p_accepton;
      accept_on (a) b;
   endproperty
   property p_syncaccepton;
      sync_accept_on (a) b;
   endproperty
   property p_rejecton;
      reject_on (a) b;
   endproperty
   property p_syncrejecton;
      sync_reject_on (a) b;
   endproperty
   property p_iff;
      a iff b;
   endproperty
   property p_arg_propery(property inprop);
      inprop;
   endproperty
   property p_arg_seqence(sequence inseq);
      inseq;
   endproperty
   property p_case_1;
      case (a) endcase
   endproperty
   property p_case_2;
      case (a) default: b; endcase
   endproperty
   property p_if;
      if (a) b
   endproperty
   property p_ifelse;
      if (a) b else c
   endproperty
   always @(posedge clk) begin
      if (cyc == 10) begin
         $write("*-* All Finished *-*\n");
         $finish;
      end
   end
endmodule
 
     |