swat123
Newbie level 1
i am working in verilog coding. i am getting the following error
" illegal reference to net q "
my code is as follow:-
plz help me
" illegal reference to net q "
my code is as follow:-
Code Verilog - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 ---------------------------------------------------------------------------------------------------------------------- T-flip flop module tff(t,clk,reset,clear,q,qb); input t,clk,reset,clear; inout q,qb; reg q,qb; always@(negedge clk or reset or clear) begin if(reset==1) begin q = 0; qb = 1; end else if (clear==1) begin q=0; qb=1; end else if(t==1 && clk==0) begin q =!q; qb =!qb; end else begin q=q; qb=qb; end end endmodule -----------------------------------------------------------------------------------------------------------------------------------
Last edited by a moderator: