5.1 5.2 5.3 5.4 1/0 STRUCTURE The VSP has two input holding registers, a Command Register and a 128-bit FIFO Buffer, and two output holding registers, the Data Register and the Status Register. On a Write cycle from the CPU, when WS becomes active (low), the control logic of the VSP routes data from the Memory Data Bus to either the FIFO Buffer (if a Speak External command is executing) or the Command Register (all other cases). Once this data has been latched in, the VSP signals completion of the data transfer to the CPU by lowering the READY Line to its active (low) condition. Similarly, on a Read cycle, when RS goes active {low), the VSP puts either the contents of the Data Register on the bus (if the preced- ing command was a Read Byte command} or the contents of the Status Register (all other cases). COMMAND REGISTER The Command Register receives command data from the Memory Data Bus and holds it for the Controller to interpret and execute. The VSP behaves as an attached processor to the host CPU and performs its synthesis tasks when appro- priate commands are sent by the host CPU. For details on available commands and format, see Section 6. FIFO BUFFER The 128-bit FIFO Buffer is organized as a 16-byte parallel-in, serial-out buffer. This buffer is used to hold speech data passed from the CPU to be processed by a Speak External command in the VSP. As required by the synthesis section, data is shifted out serially starting with the LSB from the ‘’First-In’” byte. When this byte has been exhausted, the stack ripptes down one byte and begins shifting out bits from the new "First-In’’ byte. A Stack Pointer keeps track of the location of the “Last-In’ byte and data from the CPU is always loaded just above this location. When the stack becomes fess than half full {i.e., eight byte locations are void of data), the buffer-low status condition (BL) becomes true. This signals the CPU that more data should be provided to the VSP. Under worst-case conditions, the buffer will be completely empty in one more frame period (25 milliseconds), and invalid data will be processed as external speech data. As a Fail-Safe measure, if the buffer does reach such a condition, the buffer empty status (BE) becomes true and the Talk Status Latch is reset causing speech to terminate immediately. To resume speech with data provided by the CPU, another Speak External command must be issued. DATA REGISTER The eight-bit Data Register is organized as a serial-in parallel-out Holding Register. This register is used by the VSP to formulate a byte of data from serial data fetched from the VSM during the execution of a Read Byte command. Data is loaded to the Data Register so that the last bit loaded is in the least-significant-bit location (D7). When the Data Register has been loaded and RS goes active (low), this byte is transferred to the Memory Data Bus (DO = MSB). The READY Line goes low when the data is stable. STATUS REGISTER The three bits of the Status Register provide up-to-date information to the CPU on the state of the VSP. The Status Register may be read at any time except immediately after passing a Read Byte command to the VSP. When RS goes active (low) the VSP routes the status data to the Memory Data Bus (DO = TS; D1 = BL; D2 = BE) and lowers the Ready Line when the data is stable. TS — Talk Status is active (high) when the VSP is processing speech data. Talk Status goes active at the initiation of a Speak command or after nine bytes of data are loaded into the FIFO following a Speak External command. It goes inactive (iow) when the stop code (Energy = 1111) is processed, or immediately by a buffer empty condition or a reset command. Audio output is interpolating to zero during this frame and is terminated on the next frame boundary. BL — Buffer Low is active (high) when the FIFO Buffer is more than half empty. Buffer Low is set when the “Last-In“ byte is shifted down past the half-full boundary (becomes the eighth data byte) of the stack. Buffer Low is cleared when data is loaded to the stack so that the "Last-In’’ byte lies above the half-full boundary and becomes the ninth data byte of the stack. BE — Buffer Empty is active (high) when the FIFO Buffer has run out of data while executing a Speak External command. Buffer Empty is set when the last bit of the 'Last-In’’ byte is shifted out to the Synthesis Section. This causes Talk Status to be cleared. Speech is terminated at some abnormal point and the Speak External command execution is terminated. Data from the Memory Data Bus is once again routed to the Command Register. 5