mirror of
https://github.com/antonblanchard/chiselwatt.git
synced 2026-01-14 15:46:35 +00:00
Remove some old tests
These modules aren't used any more. Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
This commit is contained in:
parent
858ac3281c
commit
08ca3da14e
@ -1,19 +0,0 @@
|
||||
import org.scalatest._
|
||||
import chisel3.tester._
|
||||
import chisel3._
|
||||
|
||||
class AlignStoreTester extends FlatSpec with ChiselScalatestTester with Matchers {
|
||||
behavior of "AlignStore"
|
||||
it should "pass a unit test" in {
|
||||
test(new LoadStoreAlign(64)) { p =>
|
||||
val x = BigInt(0x0102030405060708L)
|
||||
p.io.in.poke(x.U)
|
||||
|
||||
for (offset <- 0 until 7) {
|
||||
val y = (x << (offset*8)) & BigInt("FFFFFFFFFFFFFFFF", 16)
|
||||
p.io.offset.poke(offset.U)
|
||||
p.io.out.expect(y.U)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
import org.scalatest._
|
||||
import chisel3.tester._
|
||||
import chisel3._
|
||||
|
||||
class DeAlignStoreTester extends FlatSpec with ChiselScalatestTester with Matchers {
|
||||
behavior of "AlignStore"
|
||||
it should "pass a unit test" in {
|
||||
test(new LoadStoreDeAlign(64)) { p =>
|
||||
val x = BigInt(0x0102030405060708L)
|
||||
p.io.in.poke(x.U)
|
||||
|
||||
for (offset <- 0 until 7) {
|
||||
val y = (x >> (offset*8)) & BigInt("FFFFFFFFFFFFFFFF", 16)
|
||||
p.io.offset.poke(offset.U)
|
||||
p.io.out.expect(y.U)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user