• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. how to run ovm cookbook example by IUS?

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 66
  • Views 14471
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to run ovm cookbook example by IUS?

RomanDW
RomanDW over 15 years ago

 Hi all,

i can run the ovm cookbook example by default Questa, but i try to wirite a 'compile_ius.f' file, and use 'irun -f compile_ius.f' to run the ovm-examples-1.1\07_complete_testbenches\02_rtl case, but meet many errors.

who can help me release the 'compile_ius.f' based on following questa follow?

i want to run it following irun flow.

thanks

in compile_questa_sv.f

-suppress 2223
+incdir+../../hfpb
+incdir+../../fpu_sv
+incdir+../../hfpb_components
+incdir+$OVM_HOME/src
$OVM_HOME/src/ovm_pkg.sv
../../fpu_sv/float_pkg.sv
../../fpu_sv/fpu_util_pkg.sv
../../fpu_sv/fpu_tlm_pkg.sv
../../fpu_sv/fpu_pin_if.sv
../../hfpb/hfpb_if.sv
../../hfpb/clock_reset.sv
../../hfpb/hfpb_pkg.sv
../../hfpb_components/ctypes.sv
../../hfpb_components/hfpb_components_pkg.sv
top.sv

in compile_questa_vhdl.f
../../fpu_vhd/fpupack.vhd
../../fpu_vhd/comppack.vhd
../../fpu_vhd/addsub_28.vhd
../../fpu_vhd/fpu.vhd
../../fpu_vhd/mul_24.vhd
../../fpu_vhd/post_norm_addsub.vhd
../../fpu_vhd/post_norm_div.vhd
../../fpu_vhd/post_norm_mul.vhd
../../fpu_vhd/post_norm_sqrt.vhd
../../fpu_vhd/pre_norm_addsub.vhd
../../fpu_vhd/pre_norm_div.vhd
../../fpu_vhd/pre_norm_mul.vhd
../../fpu_vhd/pre_norm_sqrt.vhd
../../fpu_vhd/serial_div.vhd
../../fpu_vhd/serial_mul.vhd
../../fpu_vhd/sqrt.vhd


in run_questa
vlib work
vlog -f compile_questa_sv.f
vcom -f compile_questa_vhdl.f
vsim -suppress 2223 -do vsim.do -c -suppress 3829 top

  • Cancel
Parents
  • StephenH
    StephenH over 15 years ago

    Hello Roman.

    I'm not familiar with the cookbook examples. You might try looking at the examples that ship with OVM itself, as these have compile scripts for both Questa and IUS.

    Most of the options you're passing to Questa can be passed directly to irun. Note that if you add the -ovm switch to irun, you don't have to compile the OVM package directly. I can't recall off-hand if this makes it compile better or not! :-)

    Try something along the lines of this:

    irun -f compile_ius.f

    Where compile_ius.f contains:

    -ovm
    +incdir+../../hfpb
    +incdir+../../fpu_sv
    +incdir+../../hfpb_components
    ../../fpu_sv/float_pkg.sv
    ../../fpu_sv/fpu_util_pkg.sv
    ../../fpu_sv/fpu_tlm_pkg.sv
    ../../fpu_sv/fpu_pin_if.sv
    ../../hfpb/hfpb_if.sv
    ../../hfpb/clock_reset.sv
    ../../hfpb/hfpb_pkg.sv
    ../../hfpb_components/ctypes.sv
    ../../hfpb_components/hfpb_components_pkg.sv
    top.sv
    ../../fpu_vhd/fpupack.vhd
    ../../fpu_vhd/comppack.vhd
    ../../fpu_vhd/addsub_28.vhd
    ../../fpu_vhd/fpu.vhd
    ../../fpu_vhd/mul_24.vhd
    ../../fpu_vhd/post_norm_addsub.vhd
    ../../fpu_vhd/post_norm_div.vhd
    ../../fpu_vhd/post_norm_mul.vhd
    ../../fpu_vhd/post_norm_sqrt.vhd
    ../../fpu_vhd/pre_norm_addsub.vhd
    ../../fpu_vhd/pre_norm_div.vhd
    ../../fpu_vhd/pre_norm_mul.vhd
    ../../fpu_vhd/pre_norm_sqrt.vhd
    ../../fpu_vhd/serial_div.vhd
    ../../fpu_vhd/serial_mul.vhd
    ../../fpu_vhd/sqrt.vhd 

    If that doesn't work, it'd help if you posted the (first) error message that you get from irun.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • StephenH
    StephenH over 15 years ago

    Hello Roman.

    I'm not familiar with the cookbook examples. You might try looking at the examples that ship with OVM itself, as these have compile scripts for both Questa and IUS.

    Most of the options you're passing to Questa can be passed directly to irun. Note that if you add the -ovm switch to irun, you don't have to compile the OVM package directly. I can't recall off-hand if this makes it compile better or not! :-)

    Try something along the lines of this:

    irun -f compile_ius.f

    Where compile_ius.f contains:

    -ovm
    +incdir+../../hfpb
    +incdir+../../fpu_sv
    +incdir+../../hfpb_components
    ../../fpu_sv/float_pkg.sv
    ../../fpu_sv/fpu_util_pkg.sv
    ../../fpu_sv/fpu_tlm_pkg.sv
    ../../fpu_sv/fpu_pin_if.sv
    ../../hfpb/hfpb_if.sv
    ../../hfpb/clock_reset.sv
    ../../hfpb/hfpb_pkg.sv
    ../../hfpb_components/ctypes.sv
    ../../hfpb_components/hfpb_components_pkg.sv
    top.sv
    ../../fpu_vhd/fpupack.vhd
    ../../fpu_vhd/comppack.vhd
    ../../fpu_vhd/addsub_28.vhd
    ../../fpu_vhd/fpu.vhd
    ../../fpu_vhd/mul_24.vhd
    ../../fpu_vhd/post_norm_addsub.vhd
    ../../fpu_vhd/post_norm_div.vhd
    ../../fpu_vhd/post_norm_mul.vhd
    ../../fpu_vhd/post_norm_sqrt.vhd
    ../../fpu_vhd/pre_norm_addsub.vhd
    ../../fpu_vhd/pre_norm_div.vhd
    ../../fpu_vhd/pre_norm_mul.vhd
    ../../fpu_vhd/pre_norm_sqrt.vhd
    ../../fpu_vhd/serial_div.vhd
    ../../fpu_vhd/serial_mul.vhd
    ../../fpu_vhd/sqrt.vhd 

    If that doesn't work, it'd help if you posted the (first) error message that you get from irun.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information