FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > Verilog

Verilog comp.lang.verilog newsgroup / usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-28-2004, 08:15 PM
dolly
Guest
 
Posts: n/a
Default port sizes dont match ?

what is this warning says?
port sizes dont match in port # 1( 16 vs 16)
???

Reply With Quote
  #2 (permalink)  
Old 10-29-2004, 10:21 PM
Andy Peters
Guest
 
Posts: n/a
Default Re: port sizes dont match ?

"dolly" <[email protected]> wrote in message news:<[email protected] alkaboutprogramming.com>...
> what is this warning says?
> port sizes dont match in port # 1( 16 vs 16)


It means your module instantiation has a problem. The module probably
has a vector for one of the ports, but you're connecting it to a
single wire or reg. The most common reason for this is that you
forgot to declare the connecting wire/reg on the higher-level module,
or that you declared it a single-wire (scalar) instead of a vector.
For example,

module lower(foo, bar);
input [1:0] foo;
output [1:0] bar;
endmodule // lower

module upper;

wire [1:0] uno;
wire dos;

lower u1
(.foo (uno),
.bar (dos)); // <- complaint here
endmodule // upper

You get the complaint because the port bar is two bits wide but the
wire that connects to it, dos, is only one bit wide.

It's only a warning (I think it should be an error!) because Verilog
will extend dos to be two bits wide. It's actually legally Verilog
but the tool vendor thought that you most likely made a mistake.

-a
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
please tell me why this inout port assignment isnt working!!! mw3382 Verilog 3 09-29-2004 05:29 PM
infer dual-port Block RAM with different dimensions kyrten Verilog 0 08-25-2004 07:55 PM
inout port in verilog Joy Chatterjee Verilog 2 06-16-2004 02:21 AM
port connection problem Rain Adelbert Verilog 3 04-02-2004 07:58 AM
Verilog operand sizes David Jones Verilog 1 09-19-2003 09:21 PM


All times are GMT +1. The time now is 10:20 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved