From 7d6b6f375420c42a04c5f344966c4ea057af3735 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 19 Feb 2020 23:08:30 +0000 Subject: [PATCH] remove clock, use rename on clk in settings --- examples/alu.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/alu.py b/examples/alu.py index 2fa14a0..3979b08 100644 --- a/examples/alu.py +++ b/examples/alu.py @@ -9,13 +9,13 @@ class ALU(Elaboratable): 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) @@ -35,6 +35,5 @@ def create_ilang(dut, ports, test_name): 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") -- 2.30.2