integration/soc: fix sata irq initialization

The first argument to `self.irq.add()` should match the name of the
`EventManager()` object being added, i.e., "sata_irq" rather than
just plain "sata". This is necessary for interrupt signals to be
asserted as intended.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
This commit is contained in:
Gabriel Somlo 2022-08-18 16:50:41 -04:00 committed by gsomlo
parent 78a1dbbc8b
commit 01754a82c8
1 changed files with 1 additions and 1 deletions

View File

@ -1906,7 +1906,7 @@ class LiteXSoC(SoC):
if "write" in mode:
self.comb += self.sata_irq.mem2sector_dma.trigger.eq(self.sata_mem2sector.irq)
if self.irq.enabled:
self.irq.add("sata", use_loc_if_exists=True)
self.irq.add("sata_irq", use_loc_if_exists=True)
# Timing constraints.
self.platform.add_period_constraint(self.sata_phy.crg.cd_sata_tx.clk, 1e9/sata_clk_freq)