Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

accessing internal nodes

In verilog, I am trying to connect to internal nodes from the top level of a design for debug. The debug module is a serial input DAC control module that is used to look at internal nodes using an oscilloscope. It would be very painful to bring all the nodes I would like to look up through the hierarchy to a single location. I have simulated something similar with cadence ncsim before without an issue… I do believe the internal node needed to be a wire. Is there a way to do this in Quartus?

This is in the top module: hierTest

sysLogic I1 (

.IN(DATA[7:0]),

.CLK(CLK),

.RESET(RESET));

dacCtl I2 (

.IN(I1.I2.OUT[7:0]), // I1.I1.OUT[7:0] is the output a registers in I1.I1, Also tried a wire

.LD(I1.I2.LD),

.SDO(SDO)

.SCK(SCK),

.SLD(SLD),

.CLK(CLK),

.RESET(RESET));

Error (10207): Verilog HDL error at hierTest.v(31): can't resolve reference to object "OUT"

14 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    FvM,

    That's a good idea. I think if I was starting my design from scratch, I would add the hook in the port list for a debug bus and maybe a compiler directive to switch it in & out. Maybe using a tri-state assignment and letting the compiler convert it to muxs. I know this conversion works in a single module, but I never tried it connecting separate modules.

    Regards,

    Lindy
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In VHDL, it's sufficient to initialize the port to (others =>'Z') to disable all drivers to the bus by default. If no drivers exist, the bus will effectively discarded in synthesis. Muxes will be generated, if specific bits have multiple drivers and are selected by a global select signal.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    GPK,

    Yes I want to connect some internal logic that controls an external serial DAC. I just want to connect the input to this module to other circuit nodes without writing/rearranging my verilog code.

    Regards,

    Lindy

    --- Quote End ---

    Hi Lindy,

    I don't think there is a feature in Quartus which solve your problem. How many signals do you need ? Will they change during the project ?

    Kind regards

    GPK
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi GPK,

    Currently I have 5 different signals, but this can change. Just like the logic analyzer.

    Lindy