Created
June 5, 2017 06:51
-
-
Save inkwisit/ea4d31fc1b34092b6df347b0ecaba1f4 to your computer and use it in GitHub Desktop.
Parallel multiplier : demonstration of "parameter" key word and its advantages
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
module practise #(parameter width = 8) | |
( | |
input [width-1:0]multiplier,multiplicand, | |
output [2*width-1:0]product | |
); | |
assign product = multiplier*multiplicand; | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment