self.b = Signal(width)
self.o = Signal(width)
self.co = Signal()
- self.m_clock = Signal(reset_less=True)
- self.p_reset = Signal(reset_less=True)
+ #self.m_clock = Signal(reset_less=True)
+ #self.p_reset = Signal(reset_less=True)
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)
with m.If(self.sel == 0b00):
m.d.sync += self.o.eq(self.a | self.b)
if __name__ == "__main__":
alu = ALU(width=16)
- create_ilang(alu, [alu.m_clock, alu.p_reset,
- alu.o, alu.a, alu.b, alu.co], "alu")
+ create_ilang(alu, [alu.o, alu.a, alu.b, alu.co], "alu")