[vivad_ip] add new hw spinlock configuration

This commit is contained in:
stnolting 2025-03-29 20:58:12 +01:00
parent accb2e9157
commit 8fdb2a784e
2 changed files with 10 additions and 2 deletions

View file

@ -409,6 +409,11 @@ proc setup_ip_gui {} {
add_params $group { add_params $group {
{ IO_CRC_EN {Enable CRC} } { IO_CRC_EN {Enable CRC} }
} }
set group [add_group $page {Hardware Spinlocks (HWSPINLOCK)}]
add_params $group {
{ IO_HWSPINLOCK_EN {Implement 32 HW-based spinlocks} }
}
} }
setup_ip_gui setup_ip_gui

View file

@ -129,7 +129,9 @@ entity neorv32_vivado_ip is
IO_SLINK_EN : boolean := false; IO_SLINK_EN : boolean := false;
IO_SLINK_RX_FIFO : natural range 1 to 2**15 := 1; IO_SLINK_RX_FIFO : natural range 1 to 2**15 := 1;
IO_SLINK_TX_FIFO : natural range 1 to 2**15 := 1; IO_SLINK_TX_FIFO : natural range 1 to 2**15 := 1;
IO_CRC_EN : boolean := false IO_CRC_EN : boolean := false;
IO_HWSPINLOCK_EN : boolean := false
); );
port ( port (
-- ------------------------------------------------------------ -- ------------------------------------------------------------
@ -439,7 +441,8 @@ begin
IO_SLINK_EN => IO_SLINK_EN, IO_SLINK_EN => IO_SLINK_EN,
IO_SLINK_RX_FIFO => IO_SLINK_RX_FIFO, IO_SLINK_RX_FIFO => IO_SLINK_RX_FIFO,
IO_SLINK_TX_FIFO => IO_SLINK_TX_FIFO, IO_SLINK_TX_FIFO => IO_SLINK_TX_FIFO,
IO_CRC_EN => IO_CRC_EN IO_CRC_EN => IO_CRC_EN,
IO_HWSPINLOCK_EN => IO_HWSPINLOCK_EN
) )
port map ( port map (
-- Global control -- -- Global control --