Livt packages
Livt.Bus
Version 2.0.1
Configurable Avalon, AXI4-Lite, and Wishbone memory-mapped masters, interfaces, bridges, and test components.
Published files (67)
tests/wishbone/WishboneTimeoutBeforeBoundaryTest.lvt
namespace Livt.Bus.Tests.Wishbone
using Livt.Bus.Wishbone
using Livt.Bus.Wishbone.Testing
/**
* Verifies Wishbone timeout immediately before the acknowledgement boundary.
*/
@Test
component WishboneTimeoutBeforeBoundaryTest
{
master: WishboneMaster32
target: WishboneTestSlave32
/**
* Creates a fresh fixture for the failing boundary.
*/
new()
{
this.master = new WishboneMaster32()
this.target = new WishboneTestSlave32(this.master)
}
/**
* Verifies timeout after six stalls, one evaluation before acknowledgement.
*/
@Test
fn TimesOutImmediatelyBeforeAcknowledgement()
{
target.Clear()
target.ConfigureAckDelay(0 as uint)
master.SetTimeoutTicks(6 as uint)
assert master.TryRead32(0x00 as uint) == false
assert master.LastTimedOut() == true
}
}