measure_core.v: first version