params: add a mechanism to the config system to specify cycles
Review Request #9 - Created April 18, 2010 and discarded
| Information | |
|---|---|
| Nathan Binkert | |
| gem5 | |
| Reviewers | |
| Default | |
params: add a mechanism to the config system to specify cycles Latencies can be specified as '2ns' or '1t' meaning 2 nanoseconds and one "tick" respectively. This patch adds '1c' which means 1 cycle. The cycle is the clock cycle of the current object, so the current object must have an object called clock that is a parameter of type Clock. Literally, '1c' means 1 * Self.clock.latency, so it's not strictly necessary, but it sure is handy.
Review request changed
Updated (April 18, 2010, 3:45 p.m.)
Diff: |
Revision 2 (+10) |
|---|
I'm guessing this leads to confusing error messages when the object doesn't have a 'clock' param, but that's not easily fixable.
