This is the verilog code of RS latch. The code is working.
module RS_latch_gate(r,s,q,qbar);
input r,s;
output q,qbar;
wire q_i,qbar_i;
nor (q, r, qbar);
nor (qbar, s, q);
assign q_i = q;
assign qbar_i = qbar;
endmodule
But I want to declare initial values in q and qbar which are 1 and 0 respectively. Where and how to write code inside this code to do that ?