• 2021-04-14
    根据下列真值表,采用case语句描述一个8-3编码器,输入信号:x[7..0]时,输出y[2..0]。
    输入X
    输出Y
    X0
    X1
    X2
    X3
    X4
    X5
    X6
    X7
    Y2
    Y1
    Y0
    1
    0
    0
    0
    0
    0
    0
    0
    0
    0
    0
    0
    1
    0
    0
    0
    0
    0
    0
    0
    0
    1
    0
    0
    1
    0
    0
    0
    0
    0
    0
    1
    0
    0
    0
    0
    1
    0
    0
    0
    0
    0
    1
    1
    0
    0
    0
    0
    1
    0
    0
    0
    1
    0
    0
    0
    0
    0
    0
    0
    1
    0
    0
    1
    0
    1
    0
    0
    0
    0
    0
    0
    1
    0
    1
    1
    0
    0
    0
    0
    0
    0
    0
    0
    1
    1
    1
    1