Skip to content

Instantly share code, notes, and snippets.

@inkwisit
Created June 5, 2017 06:51
Show Gist options
  • Save inkwisit/ea4d31fc1b34092b6df347b0ecaba1f4 to your computer and use it in GitHub Desktop.
Save inkwisit/ea4d31fc1b34092b6df347b0ecaba1f4 to your computer and use it in GitHub Desktop.
Parallel multiplier : demonstration of "parameter" key word and its advantages
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