Line 21... |
Line 21... |
case (iOperation)
|
case (iOperation)
|
`SWIZZLE_XXX: SwizzleX = Source0_X;
|
`SWIZZLE_XXX: SwizzleX = Source0_X;
|
`SWIZZLE_YYY: SwizzleX = Source0_Y;
|
`SWIZZLE_YYY: SwizzleX = Source0_Y;
|
`SWIZZLE_ZZZ: SwizzleX = Source0_Z;
|
`SWIZZLE_ZZZ: SwizzleX = Source0_Z;
|
`SWIZZLE_YXZ: SwizzleX = Source0_Y;
|
`SWIZZLE_YXZ: SwizzleX = Source0_Y;
|
default: SwizzleX = `DATA_ROW_WIDTH'd0;
|
default: SwizzleX = `WIDTH'd0;
|
endcase
|
endcase
|
end
|
end
|
//-----------------------------------------------------
|
//-----------------------------------------------------
|
always @ ( * )
|
always @ ( * )
|
begin
|
begin
|
case (iOperation)
|
case (iOperation)
|
`SWIZZLE_XXX: SwizzleY = Source0_X;
|
`SWIZZLE_XXX: SwizzleY = Source0_X;
|
`SWIZZLE_YYY: SwizzleY = Source0_Y;
|
`SWIZZLE_YYY: SwizzleY = Source0_Y;
|
`SWIZZLE_ZZZ: SwizzleY = Source0_Z;
|
`SWIZZLE_ZZZ: SwizzleY = Source0_Z;
|
`SWIZZLE_YXZ: SwizzleY = Source0_X;
|
`SWIZZLE_YXZ: SwizzleY = Source0_X;
|
default: SwizzleY = `DATA_ROW_WIDTH'd0;
|
default: SwizzleY = `WIDTH'd0;
|
endcase
|
endcase
|
end
|
end
|
//-----------------------------------------------------
|
//-----------------------------------------------------
|
always @ ( * )
|
always @ ( * )
|
begin
|
begin
|
case (iOperation)
|
case (iOperation)
|
`SWIZZLE_XXX: SwizzleZ = Source0_X;
|
`SWIZZLE_XXX: SwizzleZ = Source0_X;
|
`SWIZZLE_YYY: SwizzleZ = Source0_Y;
|
`SWIZZLE_YYY: SwizzleZ = Source0_Y;
|
`SWIZZLE_ZZZ: SwizzleZ = Source0_Z;
|
`SWIZZLE_ZZZ: SwizzleZ = Source0_Z;
|
`SWIZZLE_YXZ: SwizzleZ = Source0_Z;
|
`SWIZZLE_YXZ: SwizzleZ = Source0_Z;
|
default: SwizzleZ = `DATA_ROW_WIDTH'd0;
|
default: SwizzleZ = `WIDTH'd0;
|
endcase
|
endcase
|
end
|
end
|
//-----------------------------------------------------
|
//-----------------------------------------------------
|
endmodule
|
endmodule
|
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
No newline at end of file
|
No newline at end of file
|