130 likes | 285 Views
NetFPGA Environment. Prepared by Van Quoc Dung. Agency. Way to connect to server Subversion control Xilinx development environment Testing problem. Connecting to server …. 2 ways to connect From: Linux ssh -XC netfpga@172.28.11.155 From: Window Using Putty + Xming
E N D
NetFPGA Environment Prepared by Van Quoc Dung
Agency • Way to connect to server • Subversion control • Xilinx development environment • Testing problem
Connecting to server … • 2 ways to connect • From: Linux • ssh -XC netfpga@172.28.11.155 • From: Window • Using Putty + Xming • Putty: enable forward X11 (SSH – X11 tab) • Xming: handle GUI (Xming font + Xming)
Subversion control • Why using??? • Easily control project version • Check out projects • svn co svn+ssh://netfpga@172.28.11.155/projects/NIDS • Check status • svn status • Add file to prepare check in • svn add fileAfileB … • Check in status • svnci –m ‘Message telling how your code is changed’
Xilinx development • Xilinx Flow Compile & Simulation Verilog Synthesis NDC NGDbuild NGD NCD MAP Place and Route Bitgen NCD & PCF
Xilinx development • Development Approach • Interactive Gui • ISE • PlanAhead • Command Line • For large project -> increase productivity • Dedicated server -> some ocassions not support GUI • Resource utilization
Xilinx development • Command Line Mode • Scripting Language: • Perl • TCL • Unix bash • Build Flow Approach: • Direct Invocation • XFLOW • XTCLSH • PlanAhead
Xilinx development • Using Perl and invoke direct command from ISE command • xst –ifn nf2_top.prj –ofn nf2_top.ngc • ngdbuild –p xv2p50-ff1152-7 “nf2_top.ngc” • map … • Par … • Bitgen … Integrated to netfpga.plperl file
Xilinx development • Using netfpga.pl • netfpga.pl -clear // clear all unnecessary files • netfpga.pl -core // generate IP from xco files • netfpga.pl -syn// synthesize projects ISE • netfpga.pl –syn -top nf2_top // synthesize projects without ISE created • netfpga.pl –bit –top nf2_top // generate bit file • netfpga.pl –sim –top debug // simulation Note: Type command in project directory. Make sure that you turn on the TMAC license
Xilinx development • Some other command tool need deploy • Data2mem: change value of Bram in Bit file • Mem_edit: edit memory
Testing problem NIC in Board NIC out Send directly out to port, no need TCP/IP mechanism
Testing problem Networking Traffic Switch Board ARP, TCP, UDP Need operate like an NIC
Testing problem Networking Traffic Switch Board Not need operate like an NIC, but 1 – Board send random packet so that switch can cache the MAC add 2 – Network Traffic is generate by autotool which indentifies Board MAC add