Created
May 9, 2019 13:29
-
-
Save ZipCPU/2eee912838d67eeec2e021f5351f54f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// This example was provided by Clifford Wolf | |
// | |
module foo; | |
parameter X = 9; | |
initial begin | |
if (X % 3 != 0) begin | |
$display("Parameter X in %m must be divisible by 3! Value %d is not.", X); | |
$stop; | |
end | |
end | |
endmodule | |
module top; | |
foo #(.X(7)) bar (); | |
endmodule |
The error is created when the code is elaborated. Go ahead and run hierarchy and it will die. hierarchy is the first command within prep, proc, synth, synth_xilinx, synth_ice40, synth_ecp5, etc.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't seem to error?