Presentation is loading. Please wait.

Presentation is loading. Please wait.

Hub The Only Co-Simulation Tool of Its Kind on the Market The Only Co-Simulation Tool of Its Kind on the Market.

Similar presentations


Presentation on theme: "Hub The Only Co-Simulation Tool of Its Kind on the Market The Only Co-Simulation Tool of Its Kind on the Market."— Presentation transcript:

1 Hub The Only Co-Simulation Tool of Its Kind on the Market The Only Co-Simulation Tool of Its Kind on the Market

2 Hub Perform Co-Simulation of Designs Easily Perform Co-Simulation of Designs Easily Ensure Parts Work Together Before Silicon Ensure Parts Work Together Before Silicon

3 Introduction Why to do Co-Simulation? Two verification environments use different simulators ? ? VCS-based RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs … Modelsim-based RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs … VCS-based RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs … VCSMX-based RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs …

4 Introduction Why to do Co-Simulation? Two verification environments are too complex to be put under one testbench. ? Very Complex Env RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs … Very Complex Env RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs …

5 Introduction Why to do Co-Simulation? Two environments together exceed computer memory size Could not be simulated on 4G machine. Solution: Use 8G machine or Co-Simulate on two 4G machines 2.5G Model RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs … 2.5G Model RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs …

6 Introduction Why to do Co-Simulation? One design is Verilog, the other is VHDL ? Not all simulators perform mixed Verilog-VHDL simulation. Solution: Use Co-Simulation tool. Verilog RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs … VHDL RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs …

7 Introduction Why to do Co-Simulation? Two designs are physically in distant locations. ? Solution: Co-Simulate over the Internet. Do not have to share IPs. Only interface information is shared. In Tokyo, Japan RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs … In Sunnyvale, CA RTL/Gate HDL Design Testbench Monitors Checkers Drivers BFMs …

8 Introduction Hub allows the simulated models to communicate over the network or on a single computer

9 Hub Overview Hub has three main components : hub executable Runs on the network. Communicates with the simulators. hub_ifc shared library Used by the simulators to communicate with hub. Verilog hook-up module (optional, but recommended) Instantiated by both simulated models. Has interface signals. Has PLI call to communicate with hub.

10 Hub Overview hub Communicates with the simulators. hub_ifc shared library Used by the simulators to communicate with hub. hub comp2comp1 hub_ifc hooku p

11 Hub Overview Verilog hook-up module hub comp2comp1 hub_if c hooku p module hookup(clk, reset, Q, QQ); input clk, reset; input [3:0] Q; output [3: 0] QQ; reg [3:0] QQ; always @(posedge clk) begin $hub_event_comp1; end endmodule module hookup(clk, reset, Q, QQ); input clk, reset; input [3:0] Q; output [3: 0] QQ; reg [3:0] QQ; always @(posedge clk) begin $hub_event_comp2; end endmodule

12 Hub Overview Verilog Interface Signals Output Signals Can be from any place in the Verilog design hierarchy. Must be an input to a module. It is recommended to bring all the signals to be transmitted to the hook-up module. Input Signals Must be declared as reg somewhere. It is recommended to declare them in the hook-up module and make them outputs of the hook-up module.

13 Hub Overview Hook-up modules in both simulated models Network Comp2 hookup Comp1 hookup comp1_out1 comp1_out2 reg comp2_in1 reg comp2_in2 comp2_out1comp1_in1 reg 88 44 top

14 Hub Overview Interface files (comp1.ifc and comp2.ifc) Hub and hub interfaces of the simulated models need information about the interface signals. The user must put comp1.ifc and comp2.ifc in the run directory. The tool does complete check of the ifc files before run. Checks input/output Checks signal path Checks signal width Any errors are reported in parse_ifc_err.out in the run directory comp1.ifc comp2.ifc output top.hookup.comp1_out1 8 output top.hookup.comp1_out2 1 input top.hookup.comp1_in1 4 input top.hookup.comp2_in1 8 input top.hookup.comp2_in2 1 output top.hookup.comp2_out1 4

15 Hub Overview Host file - hub.host The simulated models have to be aware of the IP address of the Hub computer. Assign two available ports for Hub to communicate with the simulated models. The user must put the host file in the run directory. hub.host ip 192.168.0.6 comp1_port 9733 comp2_port 9734

16 Hub Overview Hub configuration file – hub.cfg Specify hub timeout before it is connected to the simulated models in sec (for example, 60) Specify hub timeout after it is connected to the simulated models in sec (for example, 10) The user must put hub.cfg in the run directory. hub.cfg timeout_before_connect 60 timeout_after_connect 10

17 Tool Demonstration Setup A Linux LAN consists of two machines Two Linux computers are connected through a router. The machines are named host1 and host2. The machines have IP address 192.168.0.6 and 192.168.0.7 SLURM (Simple Linux Utility for Resource Management) We use SLURM to submit Hub and both simulation models to any machine in the LAN. The two communicating Verilog designs are called Counter and Follower Counter is a four bit counter with an active low reset. Four bit Counter output and the reset are transmitted to Follower. Follower implements another counter that increments only when the Counter output reaches 4bf. Follower resets when reset is asserted. The output of the Follower is sent back to the counter model.

18 Tool Demonstration Setup The Verilog simulator used on this project is Icarus Verilog. Free IEEE compliant Verilog simulator developed by Stephen Williams Shell scripts to automatically compile both Hub and Verilog designs are created.


Download ppt "Hub The Only Co-Simulation Tool of Its Kind on the Market The Only Co-Simulation Tool of Its Kind on the Market."

Similar presentations


Ads by Google