diff options
| author | Vaino Kauppila <vaino@vke.fi> | 2026-04-19 12:32:58 +0300 |
|---|---|---|
| committer | Vaino Kauppila <vaino@vke.fi> | 2026-04-19 12:32:58 +0300 |
| commit | eb8643ddbef43547eb7bfe58789a3908926c7258 (patch) | |
| tree | fadfba88a1c71b266b8c67df166a3a6ead6b30d1 /hdl/common.vhd | |
| parent | 129a1c975dbd0c042576010b1f6eb40d19fc5733 (diff) | |
| download | vhdl_pic-eb8643ddbef43547eb7bfe58789a3908926c7258.tar.gz vhdl_pic-eb8643ddbef43547eb7bfe58789a3908926c7258.zip | |
refactor dir structure, add fib.c
Diffstat (limited to 'hdl/common.vhd')
| -rw-r--r-- | hdl/common.vhd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hdl/common.vhd b/hdl/common.vhd new file mode 100644 index 0000000..c986ec5 --- /dev/null +++ b/hdl/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; |
