Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
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))
Ejemplo n.º 5
0
 def elab_hook(self):
     generate_dot(self)
Ejemplo n.º 6
0
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))
Ejemplo n.º 7
0
 def elab_hook(self):
     generate_dot(self)
Ejemplo n.º 8
0
 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)