self.a = Signal(width)
self.b = Signal(width)
self.o = Signal(width)
- self.m_clock = Signal(reset_less=True)
- self.p_reset = Signal(reset_less=True)
self.add = Adder(width)
self.sub = Subtractor(width)
def elaborate(self, platform):
m = Module()
- m.domains.sync = ClockDomain()
- m.d.comb += ClockSignal().eq(self.m_clock)
+ #m.domains.sync = ClockDomain()
+ #m.d.comb += ClockSignal().eq(self.m_clock)
m.submodules.add = self.add
m.submodules.sub = self.sub
if __name__ == "__main__":
alu = ALU(width=16)
- create_ilang(alu, [alu.m_clock, alu.p_reset,
+ create_ilang(alu, [#alu.m_clock, alu.p_reset,
alu.op, alu.a, alu.b, alu.o], "alu_hier")