I am trying to instantiate a verilog module multiple times with different instance name such that it depend on a Macro definition. It is something like this
`define CHAN_NO 0
mymodule #(.chan_no(`CHAN_NO)) inst<CHAN_NO> (
.Addr (ADDR_A )
,.Data (DATA_A )
,.Clk (CLK )
);
of course this is a simplified example because instantiation and macro come from different files.
Is this possible , if yes what is right way of doing such instantiation.