Author Topic: Verilog - Connect non-top level module to pins directly  (Read 2732 times)

0 Members and 1 Guest are viewing this topic.

Offline pigtwoTopic starter

  • Regular Contributor
  • *
  • Posts: 137
Verilog - Connect non-top level module to pins directly
« on: June 22, 2014, 08:30:32 pm »
Hello everyone!

I have a hard to google question so I'm hoping someone here might know.

I'm working with a project in Verilog and I was wondering if there was a way to have a non-top level module have some of its inputs/outputs connect directly to a pin without going through the top-level module. 

I hope that made sense, it's kind of hard to explain.  I'll try to explain more in an example.  Say I have a module that just blinks a LED and I don't want this to be done in the top level module.  Is there a way that I could have that module connect directly to a pin without it going through the top level module at all?  So in this(extreme) case that module would actually have no connection to the top level module.

I'm using Quartus II if that helps. 

Thanks!
 

Offline marshallh

  • Supporter
  • ****
  • Posts: 1462
  • Country: us
    • retroactive
Re: Verilog - Connect non-top level module to pins directly
« Reply #1 on: June 22, 2014, 10:02:21 pm »
Nope
Verilog tips
BGA soldering intro

11:37 <@ktemkin> c4757p: marshall has transcended communications media
11:37 <@ktemkin> He speaks protocols directly.
 

Offline pigtwoTopic starter

  • Regular Contributor
  • *
  • Posts: 137
Re: Verilog - Connect non-top level module to pins directly
« Reply #2 on: June 22, 2014, 10:09:09 pm »
Damn

Sent from my SCH-I545 using Tapatalk

 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Verilog - Connect non-top level module to pins directly
« Reply #3 on: June 23, 2014, 12:14:23 am »
You can always make a block diagram/schematic file top level. And then create a symbol file from your Verilog modules.
Insert the created symbol in your bdf file and connect it to a pin.

Insert your previous top level as a symbol in there too so it can do what it needs to do.
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2051
  • Country: nl
Re: Verilog - Connect non-top level module to pins directly
« Reply #4 on: June 24, 2014, 07:22:41 am »
You probably can do it in Quartus, but it will no doubt be more trouble than it's worth. You can do it in ISE, and I know it is more trouble than it's worth there. :P You would have to muck about with putting constraints on signals to make sure they are not optimized away and are connected. Incidentally, do the altera tools have the equivalent of fpga editor (a la xilinx)? Reason I ask, you can also do this "connect to pin" business using fpga editor. And again, for the job of connecting a non-top level signal to the io pins this is more trouble than it's worth.

So the short answer is already given by marshallh.  ;D
 

Offline AndyC_772

  • Super Contributor
  • ***
  • Posts: 4277
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: Verilog - Connect non-top level module to pins directly
« Reply #5 on: June 24, 2014, 07:54:01 am »
I often allocate some top level pins as test points for exactly this reason. Each lower level component has some test point outputs, which I map to the 'real' TP pins as and when there's something I need to debug at the lower level.

There's no shame in including some test & debug capability as part of your design, and you can always just program the external TP's to drive 0 in the final design if you don't want to expose any of the inner workings of your logic through them.

Offline pigtwoTopic starter

  • Regular Contributor
  • *
  • Posts: 137
Re: Verilog - Connect non-top level module to pins directly
« Reply #6 on: June 24, 2014, 05:12:58 pm »
That's what I was expecting.   I was hoping there would be like a keyword you could add or something.   

Sent from my SCH-I545 using Tapatalk

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf