Script to Expand Buses and Ports?

Guest
Hi:

I'm wondering if anyone knows of a script of program which will expand
the buses and ports? I'm looking to create a symbol from a VHDL module
and having a great deal of problems. Some of the code I would need to
handle:

o_pin_top_sdram_clk_en : out std_logic;

not a problem, one output pin.

i_pin_bottom_fedback_clk_in : in std_logic_vector(1 downto 0);

All right, two bits 1 and 0 on an input pin...

io_pin_sdram_dqs : inout
std_logic_vector((get_Memdqstapwidth(Mem_array_width,
SDRAM_DATA_WIDTH, Parity_present)*SDRAM_DATA_WIDTH/8) - 1 downto 0) ;

What the ???

I'm not a VHDL coder, just trying to generate a symbol. I'm wondering
if anyone knows of a tool or script or Perl Module which could parse
this and bit blast it out.

Thanks for any help.

Tom
 
On 13 Apr 2007 05:19:20 -0700, g4173c@motorola.com wrote:

Hi:

I'm wondering if anyone knows of a script of program which will expand
the buses and ports? I'm looking to create a symbol from a VHDL module

io_pin_sdram_dqs : inout
std_logic_vector((get_Memdqstapwidth(Mem_array_width,
SDRAM_DATA_WIDTH, Parity_present)*SDRAM_DATA_WIDTH/8) - 1 downto 0) ;

What the ???
A nice general piece of code :)

It's a bus. Its width is not known until elaboration time.

Unless you can compile all the VHDL (not just this module, but
all of it) and evaluate the constant function get_Memdqstapwidth(),
you have no way to know the size of the bus.

It may be easier to run the design through front-end synthesis,
and then ask the synthesis tool what it thinks about the port.

That's why we use HDLs rather than diagrams these days.
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.bromley@MYCOMPANY.com
http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
 

Welcome to EDABoard.com

Sponsor

Back
Top