Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - null statements...

 
Thread Tools Search this Thread
Old 05-25-2004, 04:36 AM   #1
Default null statements...


Hi everyone?
I have some problem with buffer definition.
I coded a program and I want to transfer outbuf4 <= inbuf4 when Ira=1
and when Ira=0 I want that outbuf <= (null or open or disconected,but
not high impedance). I know that I can use outbuf <= "ZZZ". But my
question is... are there some way to do that without use HIGH
IMPEDANCE? i TRIED TO PUT NULL AND OPEN SENTENCES, BUT MAXPLUS GET A
ERROR MESSAGES. i NEED TO SYNTHETIZED.
MY DESIGN REQUIREMENTS IS TO LEFT TOTALLY OPEN WHEN Ira =0.

ANY IDEAS.........
tHANKS IN ADVANCE
JLUIS
MEXICO


LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.all;

ENTITY buff4_ir IS
PORT( Ira: IN std_logic;
inbuf4: IN std_logic_vector(2 DOWNTO 0);
outbuf4: OUT std_logic_vector(2 DOWNTO 0));
END buff4_ir;

ARCHITECTURE archbuff4_ir OF buff4_ir IS
BEGIN
PROCESS(Ira, inbuf4)
BEGIN
IF Ira = '1' then
outbuf4 <= inbuf4;
ELSE
outbuf4 <= null;
end if;
end process;
END archbuff4_ir;


Jluis
  Reply With Quote
Old 05-25-2004, 05:19 AM   #2
Tim Hubberstey
 
Posts: n/a
Default Re: null statements...
Jluis wrote:
> Hi everyone?
> I have some problem with buffer definition.
> I coded a program and I want to transfer outbuf4 <= inbuf4 when Ira=1
> and when Ira=0 I want that outbuf <= (null or open or disconected,but
> not high impedance). I know that I can use outbuf <= "ZZZ". But my
> question is... are there some way to do that without use HIGH
> IMPEDANCE?


No. Think hardware: null or open or disconected _IS_ high Z.
--
Tim Hubberstey, P.Eng. . . . . . Hardware/Software Consulting Engineer
Marmot Engineering . . . . . . . VHDL, ASICs, FPGAs, embedded systems
Vancouver, BC, Canada . . . . . . . . . . . http://www.marmot-eng.com



Tim Hubberstey
  Reply With Quote
Old 05-25-2004, 06:11 AM   #3
Charles Bailey
 
Posts: n/a
Default Re: null statements...

"Jluis" <> wrote in message
news: om...
> Hi everyone?
> I have some problem with buffer definition.
> I coded a program and I want to transfer outbuf4 <= inbuf4 when Ira=1
> and when Ira=0 I want that outbuf <= (null or open or disconected,but
> not high impedance). I know that I can use outbuf <= "ZZZ". But my
> question is... are there some way to do that without use HIGH
> IMPEDANCE? i TRIED TO PUT NULL AND OPEN SENTENCES, BUT MAXPLUS GET A
> ERROR MESSAGES. i NEED TO SYNTHETIZED.
> MY DESIGN REQUIREMENTS IS TO LEFT TOTALLY OPEN WHEN Ira =0.

This requirement doesn't make sense. What is wrong with setting the
output to Z, high impedance?

>
> ANY IDEAS.........
> tHANKS IN ADVANCE
> JLUIS
> MEXICO
>
>
> LIBRARY IEEE;
> USE IEEE.STD_LOGIC_1164.all;
>
> ENTITY buff4_ir IS
> PORT( Ira: IN std_logic;
> inbuf4: IN std_logic_vector(2 DOWNTO 0);
> outbuf4: OUT std_logic_vector(2 DOWNTO 0));
> END buff4_ir;
>
> ARCHITECTURE archbuff4_ir OF buff4_ir IS
> BEGIN
> PROCESS(Ira, inbuf4)
> BEGIN
> IF Ira = '1' then
> outbuf4 <= inbuf4;
> ELSE
> outbuf4 <= null;

"null;" is a statement, not a value. Can't do this.

> end if;
> end process;
> END archbuff4_ir;





Charles Bailey
  Reply With Quote
Old 06-08-2004, 10:39 AM   #4
Just an Illusion
 
Posts: n/a
Default Re: null statements...


Charles Bailey wrote:

>"Jluis" <> wrote in message
>news:. com...
>
>
>>Hi everyone?
>>I have some problem with buffer definition.
>>I coded a program and I want to transfer outbuf4 <= inbuf4 when Ira=1
>>and when Ira=0 I want that outbuf <= (null or open or disconected,but
>>not high impedance). I know that I can use outbuf <= "ZZZ". But my
>>question is... are there some way to do that without use HIGH
>>IMPEDANCE? i TRIED TO PUT NULL AND OPEN SENTENCES, BUT MAXPLUS GET A
>>ERROR MESSAGES. i NEED TO SYNTHETIZED.
>>MY DESIGN REQUIREMENTS IS TO LEFT TOTALLY OPEN WHEN Ira =0.
>>
>>
>>...
>>
>>ARCHITECTURE archbuff4_ir OF buff4_ir IS
>> BEGIN
>> PROCESS(Ira, inbuf4)
>> BEGIN
>> IF Ira = '1' then
>> outbuf4 <= inbuf4;
>> ELSE
>> outbuf4 <= null;
>>
>>

>"null;" is a statement, not a value. Can't do this.
>

outbuf4 <= open;

Simply, not ?

JaI



Just an Illusion
  Reply With Quote
Old 06-10-2004, 06:26 PM   #5
Jluis
 
Posts: n/a
Default Re: null statements...
tHANKS VHDL GROUP i SOLVE D THE PROBLEM
THIS QUESTION WAS AS PART OF MY BUS CONTROL PROGRAM, SO I DONT USE "Z"
I JUST PUT A PROCESS INSIDE OF MY TOP DESIGN, AND THAT´S IT, SO INSIDE
OF THIS PROCESS I PUT SEVERAL IF´s snetence, like this:::

LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.all;

ENTITY datapath2 IS
PORT(
);

END datapath2;



ARCHITECTURE archdatapath2 OF datapath2 IS
COMPONENT instreg
END COMPONENT;

COMPONENT regfile
END COMPONENT;

COMPONENT alu
END COMPONENT;

COMPONENT proc
END COMPONENT;

COMPONENT ccl
END COMPONENT;

COMPONENT MAR
END COMPONENT;


COMPONENT MBR
END COMPONENT;

COMPONENT DATA
END COMPONENT;


SIGNALSSSSSSSS buss: std_logic_vector(21 DOWNTO 0);
MORE SIGNALS............

BEGIN
PROCESS(Irdir, Irk, Rfb, RfaB, Rfa, AluC, PCout, memout, Ira, Irb)
BEGIN
--- THIS if´S SOLVE MY BUS CONTROL PROBLEM
IF Irdir='1' THEN
buss <= bussA;
END IF;

IF Irk='1' THEN
buss <= bussB;
END IF;

IF Rfb='1' THEN
buss <= bussD;
END IF;

IF RfaB='1' THEN
buss <= bussEalu;
END IF;

IF Rfa = '1' THEN
Awire <= bussEalu;
END IF;

IF AluC='1' THEN
buss <= bussF;
END IF;

IF PCout='1' THEN
buss <= bussG;
END IF;

IF memout='1' THEN
buss <= bussH;
END IF;

IF Ira='1' THEN
Rwirea <= Rawire;
END IF;

IF Irb='1' THEN
Rwireb <= Rbwire;
END IF;

END PROCESS;

U1: instreg PORT MAP();
U2: regfile PORT MAP();
U3: alu PORT MAP();
U4: proc PORT MAP();
U5: ccl PORT MAP();
U6: MAR PORT MAP();
U7: MBR PORT MAP();
U8: DATA PORT MAP();

END archdatapath2;




(Jluis) wrote in message news:<. com>...
> Hi everyone?
> I have some problem with buffer definition.
> I coded a program and I want to transfer outbuf4 <= inbuf4 when Ira=1
> and when Ira=0 I want that outbuf <= (null or open or disconected,but
> not high impedance). I know that I can use outbuf <= "ZZZ". But my
> question is... are there some way to do that without use HIGH
> IMPEDANCE? i TRIED TO PUT NULL AND OPEN SENTENCES, BUT MAXPLUS GET A
> ERROR MESSAGES. i NEED TO SYNTHETIZED.
> MY DESIGN REQUIREMENTS IS TO LEFT TOTALLY OPEN WHEN Ira =0.
>
> ANY IDEAS.........
> tHANKS IN ADVANCE
> JLUIS
> MEXICO
>
>
> LIBRARY IEEE;
> USE IEEE.STD_LOGIC_1164.all;
>
> ENTITY buff4_ir IS
> PORT( Ira: IN std_logic;
> inbuf4: IN std_logic_vector(2 DOWNTO 0);
> outbuf4: OUT std_logic_vector(2 DOWNTO 0));
> END buff4_ir;
>
> ARCHITECTURE archbuff4_ir OF buff4_ir IS
> BEGIN
> PROCESS(Ira, inbuf4)
> BEGIN
> IF Ira = '1' then
> outbuf4 <= inbuf4;
> ELSE
> outbuf4 <= null;
> end if;
> end process;
> END archbuff4_ir;



Jluis
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Null Pointer rits General Help Related Topics 0 02-12-2009 04:31 PM
videoControl return null while trying to record video aaozgull General Help Related Topics 0 03-13-2008 09:42 AM
How to know if a variable is null peace2007 Software 1 09-30-2007 06:22 AM
doesn't doPostBack,is it a vs2005 bug ??? ead_no1 Software 0 10-21-2006 05:01 PM
How to store dataset to a table in the database. Please be specific. Urgent fullblown General Help Related Topics 0 09-20-2006 03:55 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46