接入TL2CDR

This commit is contained in:
Ruige Lee
2025-01-10 15:25:10 +08:00
parent 134440812b
commit 981b492a8b
2 changed files with 4 additions and 4 deletions

View File

@@ -52,14 +52,14 @@ object b4b5Decoder{
object Dualb4b5Encoder{
def apply( enq: UInt ): UInt = {
require( enq.getWidth == 8 )
require( enq.getWidth == 8, "Require Failed @ Dualb4b5Encoder!" )
Cat( b4b5Encoder(enq(7,4)), b4b5Encoder(enq(3,0)) )
}
}
object Dualb4b5Decoder{
def apply( enq: UInt ): UInt = {
require( enq.getWidth == 10 )
require( enq.getWidth == 10, "Require Failed @ Dualb4b5Decoder!" )
Cat( b4b5Decoder(enq(9,5)), b4b5Decoder(enq(5,0)) )
}
}