summaryrefslogtreecommitdiffstats
path: root/zpu/hdl/zpu4/test
diff options
context:
space:
mode:
authoroharboe <oharboe>2008-05-04 19:29:07 +0000
committeroharboe <oharboe>2008-05-04 19:29:07 +0000
commit1362bd4ace3ce962ed744a153e5f969154bb6682 (patch)
tree0b01b48171f661f1eea5741c4b2086f5e49692f7 /zpu/hdl/zpu4/test
parented14271c9743490ebc4947ba7904adaa0d16e279 (diff)
downloadzpu-1362bd4ace3ce962ed744a153e5f969154bb6682.zip
zpu-1362bd4ace3ce962ed744a153e5f969154bb6682.tar.gz
* Make code synthesize on Synopsis
zpu/hdl/zpu4/src/zpu_core_small.vhd zpu/hdl/zpu4/src/io.vhd
Diffstat (limited to 'zpu/hdl/zpu4/test')
-rw-r--r--zpu/hdl/zpu4/test/interrupt/int.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/zpu/hdl/zpu4/test/interrupt/int.c b/zpu/hdl/zpu4/test/interrupt/int.c
index 2be6483..1b6ec01 100644
--- a/zpu/hdl/zpu4/test/interrupt/int.c
+++ b/zpu/hdl/zpu4/test/interrupt/int.c
@@ -6,7 +6,10 @@
int counter;
-/* Example of single, fixed interval non-maskable, nested interrupt */
+/* Example of single, fixed interval non-maskable, nested interrupt. The interrupt signal is
+ * held high for enough cycles to guarantee that it will be noticed, i.e. longer than
+ * any io access + 4 cycles roughly.
+ */
void _zpu_interrupt(void)
{
/* interrupts are enabled so we need to finish up quickly,
OpenPOWER on IntegriCloud