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/avalon/AvalonTimeoutBoundaryTest.lvt
namespace Livt.Bus.Tests.Avalon
using Livt.Bus.Avalon
using Livt.Bus.Avalon.Testing
/**
* Verifies the exact Avalon-MM request timeout boundary.
*/
@Test
component AvalonTimeoutBoundaryTest
{
master: AvalonMaster32
target: AvalonTestSlave32
/**
* Creates a fresh fixture for the successful boundary.
*/
new()
{
this.master = new AvalonMaster32()
this.target = new AvalonTestSlave32(this.master)
}
/**
* Verifies success when this scheduled target accepts on the sixth evaluation.
* The native edge scoreboard separately checks the protocol-level deadline.
*/
@Test
fn CountsTheConfiguredDeadlineExactly()
{
target.Clear()
target.Configure(0 as uint, 0b00)
master.SetTimeoutTicks(6 as uint)
assert master.TryRead32(0x00 as uint) == true
assert master.LastTimedOut() == false
}
}