Signal prefixes are removed by migen, so double

This commit is contained in:
Aadi Desai 2023-03-03 17:05:53 +00:00
parent 740316a47f
commit 52eb0bdaf7
No known key found for this signature in database

View file

@ -9,12 +9,15 @@ class TestLed(Module, AutoCSR):
def __init__(self, platform, pads): def __init__(self, platform, pads):
self.pads = pads self.pads = pads
leds = Signal(3) leds = Signal(3)
# # #
self.comb += pads.eq(leds) self.comb += pads.eq(leds)
self.specials += Instance("flip", self.specials += Instance("flip",
i_clk = ClockSignal(), i_i_clk = ClockSignal("dac"),
o_ledr = leds[0], o_o_ledr = leds[0],
o_ledg = leds[1], o_o_ledg = leds[1],
o_ledb = leds[2] o_o_ledb = leds[2]
) )
platform.add_source("rtl/flip.sv") platform.add_source("rtl/flip.sv")