Skip to content

Register Monitoring System

Neelakandan Manihatty Bojan edited this page Oct 26, 2013 · 4 revisions

The register monitoring system is used to monitor the status of the registers in the oputput port lookup of the projects while running the HW tests. Currently register infrastructure for the output port lookup is available for reference_switch, reference_switch_lite and reference_router projects.The register monitoring system is currently not available for reference_nic project as its design is simple and it doesn't have any registers in the output port lookup, but we will be adding registers in the future.

The register monitoring system can be found inside the sw/host/register_monitor/ folder.Once you have the system ready to run the HW tests as mentioned here, you can proceed with the following

Move into the corresponding project's register_monitor folder

[root@nf-test109 ~]# cd $NF_DESIGN_DIR
[root@nf-test109 reference_switch_lite]# cd sw/host/register_monitor/

Run the Make file and you will get the executable.

[root@nf-test109 register_monitor]# make

use watch to monitor the system.

[root@nf-test109 register_monitor]# watch ./switch_lite_regs

The register system for reference_switch_lite project will look like below.

![] (register_monitor.png)

Below shows two images while we run the HW Tests for reference_switch_lite. The left terminal is one in which the tests are run and on the right terminal we observe the register changes.

![] (switch_lite_test1.png) ![] (switch_lite_test2.png)

Clone this wiki locally