Detection of chiral anomaly and valley transport in Dirac semimetals