I am trying to run a testbench which was written for a neuromorphic chip named ODIN. Irun this code in Xilinx ISE. I get some errors that do not make sense. here is a part of code:
$display("----- Starting verification of programmed SNN parameters");
assert(snn_0.spi_slave_0.SPI_GATE_ACTIVITY == 1'b1) else $fatal(0, "SPI_GATE_ACTIVITY parameter not correct.");
assert(snn_0.spi_slave_0.SPI_OPEN_LOOP == `SPI_OPEN_LOOP ) else $fatal(0, "SPI_OPEN_LOOP parameter not correct.");
assert(snn_0.spi_slave_0.SPI_SYN_SIGN == `SPI_SYN_SIGN ) else $fatal(0, "SPI_SYN_SIGN parameter not correct.");
assert(snn_0.spi_slave_0.SPI_BURST_TIMEREF == `SPI_BURST_TIMEREF ) else $fatal(0, "SPI_BURST_TIMEREF parameter not correct.");
assert(snn_0.spi_slave_0.SPI_OUT_AER_MONITOR_EN == `SPI_OUT_AER_MONITOR_EN ) else $fatal(0, "SPI_OUT_AER_MONITOR_EN parameter not correct.");
assert(snn_0.spi_slave_0.SPI_AER_SRC_CTRL_nNEUR == `SPI_AER_SRC_CTRL_nNEUR ) else $fatal(0, "SPI_AER_SRC_CTRL_nNEUR parameter not correct.");
assert(snn_0.spi_slave_0.SPI_MONITOR_NEUR_ADDR == `SPI_MONITOR_NEUR_ADDR ) else $fatal(0, "SPI_MONITOR_NEUR_ADDR parameter not correct.");
assert(snn_0.spi_slave_0.SPI_MONITOR_SYN_ADDR == `SPI_MONITOR_SYN_ADDR ) else $fatal(0, "SPI_MONITOR_SYN_ADDR parameter not correct.");
assert(snn_0.spi_slave_0.SPI_UPDATE_UNMAPPED_SYN == `SPI_UPDATE_UNMAPPED_SYN ) else $fatal(0, "SPI_UPDATE_UNMAPPED_SYN parameter not correct.");
assert(snn_0.spi_slave_0.SPI_PROPAGATE_UNMAPPED_SYN == `SPI_PROPAGATE_UNMAPPED_SYN) else $fatal(0, "SPI_PROPAGATE_UNMAPPED_SYN parameter not correct.");
assert(snn_0.spi_slave_0.SPI_SDSP_ON_SYN_STIM == `SPI_SDSP_ON_SYN_STIM ) else $fatal(0, "SPI_SDSP_ON_SYN_STIM parameter not correct.");
I get this error for each line:
Syntax error near "else".