您好,夏老师,请问为何在程序中我用casex,但是synplify pro综合的电路没有看到数据选择器呢?
casex(step4Res[FBits+1:FBits])
2'b1x:
begin
E3<=step4SE[EBits-1:0]+7'b000_0001;
F3<=step4Res[FBits:1];
end
2'b01:
begin
E3<=step4SE[EBits-1:0];
F3<=step4Res[FBits-1:0];
end
2'b00: //shift to get the E3 and F3
begin
casex(step4Res[FBits-1:0]) //synthesis parallel_case
17'b1_xxxx_xxxx_xxxx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_0001;
F3<={step4Res[FBits-2:0],1'b0};
end
17'b0_1xxx_xxxx_xxxx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_0010;
F3<={step4Res[FBits-3:0],2'b0};
end
17'b0_01xx_xxxx_xxxx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_0011;
F3<={step4Res[FBits-4:0],3'b0};
end
17'b0_001x_xxxx_xxxx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_0100;
F3<={step4Res[FBits-5:0],4'b0};
end
17'b0_0001_xxxx_xxxx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_0101;
F3<={step4Res[FBits-6:0],5'b0};
end
17'b0_0000_1xxx_xxxx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_0110;
F3<={step4Res[FBits-7:0],6'b0};
end
17'b0_0000_01xx_xxxx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_0111;
F3<={step4Res[FBits-8:0],7'b0};
end
17'b0_0000_001x_xxxx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_1000;
F3<={step4Res[FBits-9:0],8'b0};
end
17'b0_0000_0001_xxxx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_1001;
F3<={step4Res[FBits-10:0],9'b0};
end
17'b0_0000_0000_1xxx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_1010;
F3<={step4Res[FBits-11:0],10'b0};
end
17'b0_0000_0000_01xx_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_1011;
F3<={step4Res[FBits-12:0],11'b0};
end
17'b0_0000_0000_001x_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_1100;
F3<={step4Res[FBits-13:0],12'b0};
end
17'b0_0000_0000_0001_xxxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_1101;
F3<={step4Res[FBits-14:0],13'b0};
end
17'b0_0000_0000_0000_1xxx:
begin
E3<=step4SE[EBits-1:0]-7'b000_1110;
F3<={step4Res[FBits-15:0],14'b0};
end
17'b0_0000_0000_0000_01xx:
begin
E3<=step4SE[EBits-1:0]-7'b000_1111;
F3<={step4Res[FBits-16:0],15'b0};
end
17'b0_0000_0000_0000_001x:
begin
E3<=step4SE[EBits-1:0]-7'b001_0000;
F3<={step4Res[FBits-17:0],16'b0};
end
17'b0_0000_0000_0000_0001:
begin
E3<=step4SE[EBits-1:0]-7'b001_0001;
F3<=17'b0;
end
default:
begin
E3<={(EBits){1'b0}};
F3<={(FBits){1'b0}};
end
endcase
end
endcase |