m-labs / migen

A Python toolbox for building complex digital hardware
https://m-labs.hk/migen
Other
1.2k stars 209 forks source link

Problem with an instance #265

Closed ramalmar closed 2 years ago

ramalmar commented 2 years ago

Hello,

I am trying to integrate the following frequency divider into my system. The FPGA is an ECP5N lattice.

 self.clock_domains.cd_dclk = ClockDomain()
 self.specials += [
            Instance("PCSCLKDIV",
                i_CLKI  = ClockSignal("transfer"),
                i_RST  = 0,
                o_SEL0=1,
                o_SEL1=0,
                o_SEL2=1,
                o_CDIVX = ClockSignal("dclk"),
            )]

However, when I compile the code, the process gets stuck at this point and nothing else happens.

            Info: Placed 134 cells based on constraints.
            Info: Creating initial analytic placement for 10573 cells, random placement wirelen = 704316.
            Info:     at initial placer iter 0, wirelen = 10949
            Info:     at initial placer iter 1, wirelen = 8071
            Info:     at initial placer iter 2, wirelen = 7253
            Info:     at initial placer iter 3, wirelen = 7045
            Info: Running main analytical placer.

If I remove the divider the process completes correctly. What am I doing wrong? Thank you

sbourdeauducq commented 2 years ago

Looks like a problem with nextpnr and not migen.