Download FlexModel User`s Manual
Transcript
Chapter 2: Using FlexModels v FlexModel User’s Manual before the line that reads `include model_pkg.inc 2. Qualify all FlexModel commands with their corresponding instance names. For example: // The two instances are called i1 and i2. mpc740 i1(...); The first instance mpc740 i2(...); The second instance // The command stream for i1. initial begin // command flow for i1 goes here i1.mpc740_idle(...); // and so forth for i1 end // The command stream for i2. initial begin // command flow for i2 goes here i2.mpc740_idle(...); // and so forth for i2 end 3. On the simulator invocation line add the multi-instance specification to your invocation. +define+flex_multi_inst Controlling the FlexModel Command Flow You can control the flow of FlexModel commands in several ways, as explained in the following sections: 20 ● “Resetting the Simulation” on page 21 ● “Transferring Control to a C Testbench” on page 21 ● “Using Multiple Command Streams in a C Testbench” on page 21 ● “Using Uncoupled Mode in a C Testbench” on page 22 ● “Burst Transfers” on page 24 ● “Non-pipelined Bus Operations” on page 24 ● “Pipelined Bus Operations” on page 25 ● “Synchronizing the Command Flow” on page 27 Synopsys, Inc. August 28, 2001