J
James
Guest
i need to conditionally compile a module
`ifdef SOMETHING
thiscore core();
`else
thatcore core();
`endif
It seems like it might not be safe to just `define SOMETHING in the toplevel
as there could possibly be a reset parameters directive someplace in the
project.
i have already used named parameters to pass the buswidth into the module
but i
assume i cannot do:
`ifdef BUSWIDTH=16
is there a usual (&safe) way to do this sort of thing?
thanks james
`ifdef SOMETHING
thiscore core();
`else
thatcore core();
`endif
It seems like it might not be safe to just `define SOMETHING in the toplevel
as there could possibly be a reset parameters directive someplace in the
project.
i have already used named parameters to pass the buswidth into the module
but i
assume i cannot do:
`ifdef BUSWIDTH=16
is there a usual (&safe) way to do this sort of thing?
thanks james