Download Low-Cost Telemetry Encoder Backplane Communication
Transcript
25 BP_ADDR <= “00000000”; TEMP_ADDR <= TEMP_ADDR; BP_OE <= ‘1’; BP_DATA <= BP_DATA; BP_READY <= ‘0’; BP_ENBL_WAIT BP_SMPL CLKBP_SYNC BP_CNT = “100” BP_ADDR <= “00000000”; TEMP_ADDR <= SMPL_ADDR; BP_OE <= ‘1’; BP_DATA <= BP_DATA; BP_READY <= ‘0’; BP_CNT = “100” ADDR_OUT OE_OUT BP_ADDR <= TEMP_ADDR; TEMP_ADDR <= TEMP_ADDR; BP_OE <= ‘0’; BP_DATA <= BP_DATA; BP_READY <= ‘0’; BP_ADDR <= TEMP_ADDR; TEMP_ADDR <= TEMP_ADDR; BP_OE <= ‘1’; BP_DATA <= BP_DATA; BP_READY <= ‘0’; WAIT2 BP_ADDR <= TEMP_ADDR; TEMP_ADDR <= TEMP_ADDR; BP_OE <= ‘0’; BP_DATA <= BP_DATA; BP_READY <= ‘0’; BP_CNT = “100” DATA_RD BP_ADDR <= TEMP_ADDR; TEMP_ADDR <= TEMP_ADDR; BP_OE <= ‘1’; BP_DATA <= BP_DATA_IN; BP_READY <= ‘1’; BP_CNT = “100” WAIT1 BP_ADDR <= TEMP_ADDR; TEMP_ADDR <= TEMP_ADDR; BP_OE <= ‘1’; BP_DATA <= BP_DATA; BP_READY <= ‘0’; BP_CNT = “100” Fig. 3.5: BP REG state machine diagram. to the BP REG module, the state machine is activated and moves to a new state where the backplane address is output to the backplane address bus. After counters indicate that sufficient time has passed, the state machine moves to a new state again where the address continues to be held on the backplane address bus and the output enable signal is driven low. This enables the addressed board on the stack to output data to the backplane data bus. When the counters in the BP REG module indicate a second time that the correct amount of time has passed, the state machine continues to the next state where the data bus is read and the output enable line is driven back high, disabling the backplane data bus. The data is then available to the rest of the BP REG module and the state machines returns to the idle state where it awaits the next backplane sample request. Specifically, the state machine idles in the BP ENBL WAIT state until the BP SMPL H signal is pulsed. This pulse moves the state machine to the CLKBP SYNC state where