SHARE
TWEET

Untitled

a guest May 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // This example was provided by Clifford Wolf
  3. //
  4. module foo;
  5.         parameter X = 9;
  6.         initial begin
  7.                 if (X % 3 != 0) begin
  8.                         $display("Parameter X in %m must be divisible by 3! Value %d is not.", X);
  9.                         $stop;
  10.                 end
  11.         end
  12. endmodule
  13.  
  14. module top;
  15.         foo #(.X(7)) bar ();
  16. endmodule
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top