fhdl/structure: store clock domain name
This commit is contained in:
parent
3201554f76
commit
473fd20f8c
|
@ -384,6 +384,7 @@ class Fragment:
|
||||||
|
|
||||||
class ClockDomain:
|
class ClockDomain:
|
||||||
def __init__(self, n1, n2=None):
|
def __init__(self, n1, n2=None):
|
||||||
|
self.name = n1
|
||||||
if n2 is None:
|
if n2 is None:
|
||||||
n_clk = n1 + "_clk"
|
n_clk = n1 + "_clk"
|
||||||
n_rst = n1 + "_rst"
|
n_rst = n1 + "_rst"
|
||||||
|
|
Loading…
Reference in New Issue