From: Luke Kenneth Casson Leighton Date: Wed, 19 Feb 2020 23:08:30 +0000 (+0000) Subject: remove clock, use rename on clk in settings X-Git-Tag: partial-core-ls180-gdsii~237 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d6b6f375420c42a04c5f344966c4ea057af3735;p=soclayout.git remove clock, use rename on clk in settings --- 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")