Design an active-high SR latch that behaves like a cross-coupled NOR latch with deterministic handling of the illegal input combination.

Requirements
sr_latch_norSRQQnS=1, R=0 → Q=1, Qn=0 (Set)S=0, R=1 → Q=0, Qn=1 (Reset)S=0, R=0 → Hold previous stateS=1, R=1 → Treated as Reset (deterministic mapping)always @(*)) to infer level-sensitive storage (no clocks).S=0, R=0, leave outputs unassigned to hold state.Qn must remain the logical complement of Q.Behaviour / Worked Example
Starting from reset:
R=1,S=0 → Q=0,Qn=1R=0,S=0 → hold Q=0,Qn=1R=0,S=1 → Q=1,Qn=0R=0,S=0 → hold Q=1,Qn=0R=1,S=1 → treated as Reset → Q=0,Qn=1R=0,S=0 → hold Q=0,Qn=1