Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

conversion of " and not " with verilog

Status
Not open for further replies.

taoshen

Junior Member level 1
Joined
Mar 11, 2004
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
130
in a vhdl file, there are the two following expression:

===========================

variable tt : std_logic_vector(7 downto 0);
...
tt := (others => '-' );

if ( exp1 and not exp2 )

===========================

how to express the same meaning of "-" and " and not " with VerilogHDL.
 

well im not sure what exactically "-" is.. my guess would be say 8'bxxxx_xxxx;..

as for the and not..

if ((expr1) & ~(expr2))

jelydonut
 

Thank jelydonut for kind help. : )

excuse me,thesr is another puzzling question about is_x

==========================
pc : std_logic_vector(31 downto 0);

...

if not is_x(pc) then
...
==========================
The "is_x" means that each bit of the vector are "x" or some of the vector are "x" .
I try to find the definition of "is_x". but fail.
are the "is_x" a user-defined function or constant ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top