![]() |
|
|
|
#1 |
|
I am tying to create a module with a generic, but something is not
correct. Please help. How do I do this correctly? entity downsample_by_two is generic ( wordlength : integer := 14; ce_clk48_polarity : std_logic := '1' -- 1: hi, 0: lo ); port( -- INPUT PORTS -- x : in std_logic_vector(wordlength-1 downto 0); ce_clk48 : in std_logic; -- OUTPUT PORTS -- 7 : out std_logic_vector(wordlength-1 downto 0) ); end entity; then on down in the code I want to use if ce_clk48 = ce_clk48_polarity then Brian |
|
|
|
|
#2 |
|
Posts: n/a
|
On Nov 6, 6:58*am, Brian <brianwfar...@gmail.com> wrote:
> I am tying to create a module with a generic, but something is not > correct. Please help. How do I do this correctly? > > entity downsample_by_two is > * * * * generic ( > * * * * * * * * wordlength * * * * * * *: integer * * * := 14; > * * * * * * * * ce_clk48_polarity * * * : std_logic := '1' -- 1: hi, 0: lo > * * * * * * * * ); > * * * * port( > * * * * * * * * -- INPUT PORTS -- > * * * * * * * * x * * * * * * * : in std_logic_vector(wordlength-1 downto 0); > * * * * * * * * ce_clk48 * * * *: in std_logic; > * * * * * * * * -- OUTPUT PORTS -- > * * * * * * * * 7 * * * * * * * : out std_logic_vector(wordlength-1 downto 0) > * * * * * * * * ); > end entity; > > then on down in the code I want to use > > if ce_clk48 = ce_clk48_polarity then Your output port name is not a legal identifier in VHDL. Andy Andy |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| USB ports reporting all installs as Generic USB Hubs | jmcgovern | Computer Support | 3 | 03-05-2007 12:30 AM |
| DVD super multi drive cd write problem.. | ashjas | Computer Support | 0 | 07-16-2006 06:14 AM |
| Serial to usb generic driver? | =?Utf-8?B?aWFuc2lja282NjY=?= | Windows 64bit | 3 | 03-07-2006 05:21 PM |
| Re: Generic Host Process Error Message on Startup | Wizard | Computer Information | 0 | 03-14-2005 09:08 AM |
| generic ink epson C82? | Jethro Bodine | Computer Information | 0 | 11-22-2003 03:59 AM |