0 Replies Latest reply on Jul 23, 2018 9:06 AM by yihaohong

    How to dynamic change the parameter of module when I run simulation with testbentch?


      Hey Guys,

      I have a simple module which has a parameter to define the different logic. When I wrote testbench for it, I found I can't change the parameter in one simulation. Do you have any experience for this?



      The module below, if I want to do simulation for both parameter "1" and "0", have any way to do it?


      module Edge


        parameter   EDGE = 1 //Rising edge//0 for falling edge



          input   iClk,

          input   iRst,

          input   iSignal,

          output  oEdge