mirror of
https://github.com/simh/simh.git
synced 2026-04-19 17:22:55 +00:00
TMXR: Support input speed limits with a multiplier factor
Many simulators run instructions one or more orders of magnitude faster than the original systems did. Limiting simulated serial port input speeds to legacy bits per second values presents the arriving data much slower than the original systems ever saw it. Given the processing capacity of the simulated systems and the fact that the software and device interfaces only know how to deal with the legacy speed values there is a need to provide a way to allow input to arrive faster. This problem is solved by providing a speed factor as a part of a speed specification. For example a speed can be specified as "speed*factor" or "9600*10".
This commit is contained in:
@@ -167,6 +167,8 @@ struct tmln {
|
||||
uint32 rxpbsize; /* rcv packet buffer size */
|
||||
uint32 rxpboffset; /* rcv packet buffer offset */
|
||||
uint32 rxbps; /* rcv bps speed (0 - unlimited) */
|
||||
double rxbpsfactor; /* receive speed factor (scaled to usecs) */
|
||||
#define TMXR_RX_BPS_UNIT_SCALE 1000000.0
|
||||
uint32 rxdelta; /* rcv inter character min time (usecs) */
|
||||
double rxnexttime; /* min time for next receive character */
|
||||
uint8 *txpb; /* xmt packet buffer */
|
||||
|
||||
Reference in New Issue
Block a user