• Support PF! Buy your school textbooks, materials and every day products Here!

High Impedance in Verilog?

  • Thread starter l46kok
  • Start date
  • #1
296
0
High Impedance in Verilog????

Homework Statement



Provide the correct Verilog text for encoding the following numerical values:

A) A 16 bit hexadecimal with all positions in the high impedance state:

B) An unsized hex number BEEF

Homework Equations



Verilog Problem. There is no relavant equation to be used.

The Attempt at a Solution



What the.. I didn't even know a variable can literally be declared as high impedance. I thought high impedance state occurs when the variable is neither off or on.

Also, I thought the variables you declare in verilog MUST be sized.

How are these accomplished?
 
Last edited:

Answers and Replies

  • #2
9
0

Homework Statement



Provide the correct Verilog text for encoding the following numerical values:

A) A 16 bit hexadecimal with all positions in the high impedance state:

B) An unsized hex number BEEF

Homework Equations



Verilog Problem. There is no relavant equation to be used.

The Attempt at a Solution



What the.. I didn't even know a variable can literally be declared as high impedance. I thought high impedance state occurs when the variable is neither off or on.

Also, I thought the variables you declare in verilog MUST be sized.

How are these accomplished?
You actually can have the states as high-impedance. In your case, it would be

16'h????
or
16'hz

would work.

There is no such thing as unsized hex number. Even if you forget to declare the size, by default, verilog would size it as 32 bit.
 

Related Threads on High Impedance in Verilog?

  • Last Post
Replies
0
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
0
Views
2K
Replies
0
Views
3K
  • Last Post
Replies
0
Views
1K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
0
Views
2K
Replies
0
Views
13K
  • Last Post
Replies
1
Views
2K
Replies
0
Views
18K
Top