N
Niv
Guest
I'm designing a flash memory controller which will have a sub-block
dedicated to a special function.
I want to use a generic to either generate the sub-module or not, and
to tie what were sub-module outputs (inputs to the main flash mem
controller block) to a default level.
Is this possible?
I've only used generate (a long time ago, 1992!) to create a
daisy-chain of JTAG modules which were always wanted.
Not sure how to do what I want, but something like:
IF gen_special GENERATE
special_inst: special PORT MAP (...............);
ELSE -- illegal?
END GENERATE;
I could have a "null" sub-module with the required default port levels,
but how do I then generate either/or?
TIA, Kev P.
dedicated to a special function.
I want to use a generic to either generate the sub-module or not, and
to tie what were sub-module outputs (inputs to the main flash mem
controller block) to a default level.
Is this possible?
I've only used generate (a long time ago, 1992!) to create a
daisy-chain of JTAG modules which were always wanted.
Not sure how to do what I want, but something like:
IF gen_special GENERATE
special_inst: special PORT MAP (...............);
ELSE -- illegal?
END GENERATE;
I could have a "null" sub-module with the required default port levels,
but how do I then generate either/or?
TIA, Kev P.