As trade friction between the United States and China deepens and Washington restricts Beijing’s access to advanced semiconductor technology, Japan is rushing to revive its chip manufacturing base to ensure its carmakers and information technology companies do not run short of the key component.