Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI don't understand some of the statements.
--- Quote Start --- For example, if you want to initialize it to all std_logic '0's, you need to *write* to the memory the value of '0' at every clock cycle. --- Quote End --- But the original question is referring to an initial block, which is simply inferring a constant initialization of a RAM, similar to a *.mif file. Furthermore, the discussion is about simulation rather than synthesis. In simulation, "everything goes". --- Quote Start --- a module's internal variables are not accessible from other modules --- Quote End --- Generally, Verilog allows access through hierachical names. So the question is, why it's not working here.