def test_generate_dot(top, key): assert key not in top.env.config generate_dot(top) assert key in top.env.config files = os.listdir(os.curdir) for key in top.env.config: if key.startswith('sim.dot.') and key.endswith('.file'): assert top.env.config[key] not in files
def elab_hook(self): # We generate DOT representations of the component hierarchy. It is # only after elaboration that the component tree is fully populated and # connected, thus generate_dot() is called here in elab_hook(). generate_dot(self)
def test_generate_dot_file_enables(top, key): top.env.config['sim.dot.enable'] = True top.env.config[key] = '' generate_dot(top) assert all(name.endswith('.dot') for name in os.listdir(os.curdir))
def elab_hook(self): generate_dot(self)