B
blakaxe@gmail.com
Guest
I have a parametrized I/O pin in my module
I want my module declaration in the following format.
EXAMPLE:
module abcd
(
input [X-1:0] data
);
parameter X = .....;
But the parameter is defined after it is used, and i get an error.
Where can I declare the parameter?
I get an error if parameter is declared before the module too.
Thanks
I want my module declaration in the following format.
EXAMPLE:
module abcd
(
input [X-1:0] data
);
parameter X = .....;
But the parameter is defined after it is used, and i get an error.
Where can I declare the parameter?
I get an error if parameter is declared before the module too.
Thanks