summaryrefslogtreecommitdiffstats
path: root/PIC/common.vhd
diff options
context:
space:
mode:
authorVäinö Kauppila <vaino@vke.fi>2026-04-19 00:33:08 +0300
committerVäinö Kauppila <vaino@vke.fi>2026-04-19 00:33:08 +0300
commit8bd8dd6ce07fb8e247f651b3c61c94bb1f00895a (patch)
tree87bd95bd073d68efd0ad31a34f0d8926c32ff6db /PIC/common.vhd
downloadvhdl_pic-8bd8dd6ce07fb8e247f651b3c61c94bb1f00895a.tar.gz
vhdl_pic-8bd8dd6ce07fb8e247f651b3c61c94bb1f00895a.zip
starting files and example programs
Diffstat (limited to 'PIC/common.vhd')
-rw-r--r--PIC/common.vhd10
1 files changed, 10 insertions, 0 deletions
diff --git a/PIC/common.vhd b/PIC/common.vhd
new file mode 100644
index 0000000..c986ec5
--- /dev/null
+++ b/PIC/common.vhd
@@ -0,0 +1,10 @@
+package alu_types is
+ type alu_op is (ADDWF, ANDWF, ADDLW, ANDLW, BCF, BTFSC,
+ BSF, BTFSS, CLRF, CLRW, COMF, DECF,
+ DECFSZ, INCF, INCFSZ, IORLW, MOVF, MOVWF, CALL,
+ GOTO, MOVLW, RETLW, RETUR, IORWF, NOP,
+ RLF, RRF, SUBLW, SUBWF, SWAPF, XORLW, XORWF);
+
+ -- Status register bits: Z=2, DC=1, C=0
+ type alu_flag is (FLAG_Z, FLAG_DC, FLAG_C);
+end package;