1package xiangshan.backend.issue 2 3import chipsalliance.rocketchip.config.Parameters 4import freechips.rocketchip.diplomacy.LazyModule 5import top.{ArgParser, BaseConfig, Generator} 6import xiangshan.{XSCoreParameters, XSCoreParamsKey} 7 8object IssueQueueMain extends App { 9 override def main(args: Array[String]): Unit = { 10 val (config, firrtlOpts, firrtlComplier, firtoolOpts) = ArgParser.parse(args) 11 12 val backendParams = config(XSCoreParamsKey).backendParams 13 14 val iqParams: IssueBlockParams = backendParams.intSchdParams.get.issueBlockParams.head 15 val iq: IssueQueue = LazyModule(new IssueQueue(iqParams)(config)) 16 17 Generator.execute( 18 firrtlOpts, 19 iq.module, 20 firrtlComplier, 21 firtoolOpts 22 ) 23 } 24 25} 26