aboutsummaryrefslogtreecommitdiffstats
path: root/tests/asicworld/code_tidbits_reg_combo_example.v
blob: 9689788c4335fba471251fff5650144fd4199ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module reg_combo_example( a, b, y);
input a, b;
output y;

reg   y;
wire a, b;

always @ ( a or b)
begin	
  y = a & b;
end

endmodule
an interrupt activation). This simplifies some things and generally * seems a good thing. * * Copyright (c) 2003, K A Fraser * Copyright (c) 1992, Linus Torvalds */ #include <xen/config.h> #include <xen/init.h> #include <xen/mm.h> #include <xen/sched.h> #include <xen/softirq.h> #ifndef __ARCH_IRQ_STAT irq_cpustat_t irq_stat[NR_CPUS]; #endif static softirq_handler softirq_handlers[NR_SOFTIRQS]; asmlinkage void do_softirq() { unsigned int i, pending, cpu = smp_processor_id(); pending = softirq_pending(cpu); ASSERT(pending != 0); do { i = find_first_set_bit(pending); clear_bit(i, &softirq_pending(cpu)); (*softirq_handlers[i])(); } while ( (pending = softirq_pending(cpu)) != 0 ); } void open_softirq(int nr, softirq_handler handler) { softirq_handlers[nr] = handler; }