Forum Discussion
Altera_Forum
Honored Contributor
12 years agoTo make my question clear: let's say my sub-module ROM(addr, out) with the input variable addr being updated in the top-level module continuously from 0~7 then back to 0~7 again. Based on the updated input addr as the clock goes (e.g. addr <= addr + 1), I should have corresponding output, which is the content at updated addr. When my input addr runs from 0~7, how many instances should I have for this ROM on the top-level module, even though I only instantiate module ROM(addr, out) once in the code?