11/*
2- Traffic generator for synthesize results of a stand alone S4NOC.
2+ Dummy traffic generator for synthesize results of a stand alone S4NOC.
33
44 Author: Martin Schoeberl ([email protected] ) 55 license see LICENSE
@@ -8,7 +8,7 @@ package s4noc
88
99import chisel3 ._
1010
11- class S4nocTrafficGen (conf : Config ) extends Module {
11+ class S4NoCVerilogGen (conf : Config ) extends Module {
1212
1313 val s4noc = Module (new S4NoCTop (conf))
1414 // This is almost Chisel 3 syntax.
@@ -27,6 +27,7 @@ class S4nocTrafficGen(conf: Config) extends Module {
2727 s4noc.io.cpuPorts(i).address := cntReg(7 , 2 )
2828 s4noc.io.cpuPorts(i).wrData := cntReg(conf.width+ 7 , 8 )
2929 s4noc.io.cpuPorts(i).wr := cntReg(0 )
30+ s4noc.io.cpuPorts(i).wrMask := 0xf .U
3031 s4noc.io.cpuPorts(i).rd := cntReg(1 )
3132 // Have some registers before or reduce
3233 if (i == 0 ) {
@@ -41,7 +42,7 @@ class S4nocTrafficGen(conf: Config) extends Module {
4142 io.data := RegNext (outReg(conf.n- 1 ))
4243}
4344
44- object S4nocTrafficGen extends App {
45- println(" Generating the S4NoC hardware with a traffic generator" )
46- emitVerilog(new S4nocTrafficGen (Config (args(0 ).toInt, BubbleType (8 ), BubbleType (8 ), BubbleType (8 ), 32 )), Array (" --target-dir" , " generated" ))
45+ object S4NoCVerilogGen extends App {
46+ println(" Generating the S4NoC hardware with a dummy traffic generator" )
47+ emitVerilog(new S4NoCVerilogGen (Config (args(0 ).toInt, BubbleType (8 ), BubbleType (8 ), BubbleType (8 ), 32 )), Array (" --target-dir" , " generated" ))
4748}
0 commit comments