Make two objects out of two pieces separated by boolean difference modifier
You will need to Apply the boolean modifier (it's a button in the modifier panel), then use the Spacebar menu to find the Separate operator, and choose the "By loose parts" option.