4b5b 8b10b接线完成

This commit is contained in:
RuigeLee
2025-09-05 12:55:32 +08:00
parent 26344d60cd
commit adb1d9c1c8
6 changed files with 169 additions and 79 deletions

View File

@@ -66,20 +66,13 @@ object Dualb4b5Decoder{
class b4b5DualEncode extends Module with RequireAsyncReset{
val io = IO(new Bundle{
val dataIn = Input(UInt(8.W))
val isEnable = Input(Bool())
val dataOut = Output(UInt(10.W))
})
val io = IO(new Encode_Bundle)
io.dataOut := Dualb4b5Encoder(io.dataIn)
}
class b8b10Decode extends Module with RequireAsyncReset{
val io = IO(new Bundle{
val dataIn = Input(UInt(10.W))
val dataOut = Output(UInt(8.W))
})
class b4b5DualDecode extends Module with RequireAsyncReset{
val io = IO(new Decode_Bundle)
io.dataOut := Dualb4b5Decoder(io.dataIn)
}