data/full_repos/permissive/447976230/fpga/usrp2/control_lib/pic.v
1: b"%Error: data/full_repos/permissive/447976230/fpga/usrp2/control_lib/pic.v:163: Cannot find file containing module: 'priority_enc'\n   priority_enc priority_enc ( .in(pending & ~mask), .out(live_enc) );\n   ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/447976230/fpga/usrp2/control_lib,data/full_repos/permissive/447976230/priority_enc\n             data/full_repos/permissive/447976230/fpga/usrp2/control_lib,data/full_repos/permissive/447976230/priority_enc.v\n             data/full_repos/permissive/447976230/fpga/usrp2/control_lib,data/full_repos/permissive/447976230/priority_enc.sv\n             priority_enc\n             priority_enc.v\n             priority_enc.sv\n             obj_dir/priority_enc\n             obj_dir/priority_enc.v\n             obj_dir/priority_enc.sv\n%Error: Exiting due to 1 error(s)\n"
function trigger;
      input 	edgen, pol, lirq, dirq;
      reg 	edge_irq, level_irq;
      begin
	 edge_irq  = pol ? (lirq & ~dirq) : (dirq & ~lirq);
	 level_irq = pol ? lirq : ~lirq;
	 trigger = edgen ? edge_irq : level_irq;
      end
   endfunction
function trigger;

      input 	edgen, pol, lirq, dirq;
      reg 	edge_irq, level_irq;
      begin
	 edge_irq  = pol ? (lirq & ~dirq) : (dirq & ~lirq);
	 level_irq = pol ? lirq : ~lirq;
	 trigger = edgen ? edge_irq : level_irq;
      end
   endfunction