> In the ns_gige code there are a few blocks surrounded by "if (clock)" > statements that all seem to be related to the tx/rx kick generation and > handling. By default the clock is set to 0 and the tx/rx kick is disabled. > I'd like to firm up the checks on the clock and add a check to ensure it is > not zero. Therefore, I'd like to either remove the code entirely, or get it > in such a shape that the clock is used properly.
Sorry for taking so long. Been sick, out of town, holiday, etc. For some background on the clock, basically, it was an attempt to give the NIC itself some notion of performance so that it was not able to do operations instantaneously. Basically if you wanted to make short packets not work at line rate or something like that, you could set a clock that would effectively set how often you could transition between states in the state machine. The 0ns clock disabled that feature and made the state machine run as fast as possible. I can see how you can get rid of the clock code (though it did work at one point when I was doing my thesis), but I don't see how you can get rid of the kick code. They get triggered whenever any event happens on the receive/transmit sides (like packet received). Nate _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
