fix download bitstream and add json convert for jtag status reg
This commit is contained in:
@@ -36,4 +36,13 @@ public class CommonTest
|
||||
};
|
||||
Assert.Equal(Number.ReverseBytes(bytesArray, 4).Value, rev4Bytes);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToBitTest()
|
||||
{
|
||||
Assert.Equal(Number.ToBit(0xFF, 3).Value, true);
|
||||
Assert.Equal(Number.ToBit(0x00, 3).Value, false);
|
||||
Assert.Equal(Number.ToBit(0xAA, 3).Value, true);
|
||||
Assert.Equal(Number.ToBit(0xAA, 2).Value, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user