From 8bd8dd6ce07fb8e247f651b3c61c94bb1f00895a Mon Sep 17 00:00:00 2001 From: Väinö Kauppila Date: Sun, 19 Apr 2026 00:33:08 +0300 Subject: starting files and example programs --- PIC/common.vhd | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 PIC/common.vhd (limited to 'PIC/common.vhd') 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; -- cgit v1.3