shaiko
Advanced Member level 5
I have some questions regarding the following verilog code:
First,
What is the difference between the ~ and ! operators ? Don't they both do the same thing ?
Second,
When do you have to use the "begin" keyword ?
Code:
always @ ( posedge clk or negedge reset)
if (~reset) begin
q <= 1'b0;
end else begin
q <= data;
end
First,
What is the difference between the ~ and ! operators ? Don't they both do the same thing ?
Second,
When do you have to use the "begin" keyword ?