Altera_Forum
Honored Contributor
10 years agoReconfigurable generic interface
Dear forum members
In my current project using a (DE2-115), I have the following problem. I use a component "sub", with the following entity:ENTITY sub ISGENERIC(
Parameter : INTEGER);
PORT(
clk : IN STD_LOGIC;
rst_n : IN STD_LOGIC);
END sub; In this component, the "Parameter" is used to load timing registers, which are needed to generate a signal of a certain length. The component above is instanciated in another component "top", where I have a Constant, specifiying the value of "Parameter". CONSTANT TIME_A : INTEGER := 15; However, in the component "top", I receive data from a pc (through RS232 communication), namely, the timing value, which is intended to load the timers in the component "sub". So I've learned that a Signal cannot be used to supply a Generic value. I'm looking for an alternative solution to solve this problem. I've tried to use the type Signal for "Parameter" and pass it on as one, but then I encountered some problems loading the timer registers properly. Are Generic values intended to be reconfigurable in the first place? Thanks for your answer.