Created
November 17, 2013 08:40
-
-
Save jz5/7510913 to your computer and use it in GitHub Desktop.
$clog2 sample
This file contains hidden or 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
module m #(max_size = 1023) ( | |
input clk, | |
input rst_n, | |
input [$clog2(max_count):0] in, | |
output [$clog2(max_count):0] out | |
); | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment