Case statement is usually used to model read-only memory (ROM). For some compiler or certain device family, either the address or the output has to be registered for ROM code to be inferred. block RAM resources could be used to implemented ROMs with synchronous outputs or address inputs.


Please create ROM blocks in a separate module which include only the ROM logics since you might need to treat the ROM as a black box.

Related Questions:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.