what is a device which compare voltage signal and current signal and give me an output?

I would like to know if there are any device which can compare current source like 5A(alternating) with a voltage source like 1V (alternating) and give me an output. If not, which circuit I should make to have this?