MG-Verilog: Multi-grained Dataset Towards Enhanced LLM-assisted Verilog Generation