[an error occurred while processing this directive]
|
CONSTANT WIDTH = 8;CONSTANT NUM_SEL_INPUTS = CEIL(LOG2(WIDTH));
subdesign tst2 (
in[WIDTH-1..0]:input;
sel[NUM_SEL_INPUTS-1..0]:input;
out:output;
)
begin
defaults
out = VCC;
end defaults;for i in 0 to WIDTH-1 generate
if (sel[]==i) then
out = in[i];
end if;
end generate;end;
E-mail: info@telesys.ru