Ronfante
Newbie level 4
Hi all,
I'm searching for a solution to my problem: I've a driver with 3 ports, 2 inout integer and 1 in std_logic, I've to get the data from a bus connected to an unknown number of driver (I've to get the capacitance of each fan-out driver and sum into output).
I cannot use a tri state buffer because it' doesn't work with integer, so I've found something like that:
But I'm unable to make it work with my driver as I don't know what to pass to the function
and get the capacitance data.
Any suggestion?
Thankyou
I'm searching for a solution to my problem: I've a driver with 3 ports, 2 inout integer and 1 in std_logic, I've to get the data from a bus connected to an unknown number of driver (I've to get the capacitance of each fan-out driver and sum into output).
Code:
component Driver
generic(
capacitance : INTEGER := 3
);
port (
CLK : in STD_LOGIC;
Load_capacitance : inout INTEGER;
InOut_capacitance : inout INTEGER
);
end component;
Code:
FUNCTION wired_and (drivers : MVL_VECTOR) RETURN MVL IS
VARIABLE accumulate : MVL := '1';
BEGIN
FOR i IN drivers'RANGE LOOP
accumulate := accumulate AND drivers(i);
END LOOP;
RETURN accumulate;
END wired_and;
But I'm unable to make it work with my driver as I don't know what to pass to the function
and get the capacitance data.
Any suggestion?
Thankyou