Forum Discussion
Altera_Forum
Honored Contributor
10 years agoVerilog Assignment
Hi all, I have a very basic question, I think. I develop in VHDL but in this moment I have to port a Verilog crunk of code.... the problem is that I don't know the Verilog... :( ! Can anyone h...
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- This is logically equivalent to: if (y == z) x = 1; else x =0; A clearer way to write it would have been: assign x = (y == z); // x assigned result of Boolean equality comparison or assign x = (y == z) ? : 1'b1 : 1'b0; // Called a conditional assignment in verilog --- Quote End --- Thank you very much.