Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- As we know "logic" data type has 4 states = 0, 1, X & Z --- Quote End --- std_logic data type has 9 states: "U, X, 1, 0, Z, W, L, H, - " u: Uninitialized x: Unknown 1: Logic 1 0: Logic 0 Z: High impendance W: Weak signal, can't tell if it should be 0 or 1 L: Weak signal that should probably go to 0 H: Weak signal that should probably go to 1 -: Don't care. --- Quote Start --- In this is example I have use bit as datatype for clk and reset_n signal. because it is obvious that clock can not be X or Z. --- Quote End --- In your example, U state can be useful if you forget to initialize a signal in your component testbench.