Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Steps to be followed while reviewing Recieve Slave_Setup 1. Open HTML Export folder and open Recieve_Slave_Setup_libRecieve_Slave_Setupmenu.htm in Internet Explorer.

2. Click on Recieve_Slave_Setup_lib/Recieve_Slave_Setupmenu on the left hand side. 3. On the Right hand side, we can find the Diagram (under Diagram pane) 4. fsm is the main state machine inside Recieve_Slave_Setup, with 2 states (Idle, Recieve_Slave_Setup_State) 5. If we click Reciever_Slave_Setup_State, we can find four internal states ( Reciever_State, Transmitter_State, Diagnostics_Block, Initialization_Rountines ) 6. If we click on any of the states, We can dive into them and find the desired functionality of the respective state. Functionality This html output describes the functionality of RcvSetupSlave function in RCV.C source code. Basic details of each state are described below: Reciever_State: This state will make sure that Reciever is not in active state. This consists of Dual port ram for data entry. After passing the data, error checking is also done. Transmitter_State: This state will make sure that Transimtter is not in active state. This consists of Dual port ram for data entry. Error check is also done. Diagnostics_Block:In this state, CPU board microprocessor will perform track diagnostics. If slave is not in shunt mode it will perform track diagnostic before every reception. Then It will check flag. If flag is not clear then slave will recieve setup to perform diagnostic else recieve setup to skip diagnostic. Initialization_Routines: In this state, All the variables/signals are initialised to there corresponding values.

Following table gives the comparison:


Reciever_Slave_Setup (V&V Team) Recieve_State Reciever_Check Reciever_DPRAM Transmitter_State Transmitter_Check Transmitter_DPRAM Diagnostics_Block Initialization_Routines Reciever_Slave_Setup (Design Team) RcvSetupSlv chk_rcv_actv3 dpram_wr_err21 RCvSetupSlv chk_xmt_actv3 dpram_wr_err22 chk_shunt_logic int_rx_var and clear_tables2

Note: The current work doesnt contain DPRAM_ACCESS for storing all the data, It will be included in the final version while integrating with other sub-modules of track PCB. Steps to access the original source code documentation 1) open Track_sw_source output html index.html. 2) Go to Files Tab and open RCV.c file. 3) Click on RcvSetupSlave function to see the slavesetup related code.

You might also like