SystemRDL/systemrdl-compiler

Allow Elaboration without addrmap

Opened this issue · 1 comments

EAlexJ commented

It would be handy to allow other nodes than addrmaps to be the top most nodes. At the moment, inputting a file that does not contain an addrmap throws a fatal error. This is limiting when it comes to generating output from regfiles definitions. For example creating headerfiles should not require the input of an addrmap.

I considered writing an importer that would allow this by wrapping the regfile in a dummy addrmap, but wanted to discuss this anyway. Is this the way a situation like mine is supposed to be handled?

EAlexJ commented

I noticed that the definition does not represent an instance and I assume that an instance requires an addressmap.

This would mean that the importer is the way to solve this, as the compiler itself has no use for definitions only.

Is my assumption correct?