Skip to content

Instantly share code, notes, and snippets.

@mkusher
Created June 5, 2014 18:11
Show Gist options
  • Save mkusher/df494b2c5eabcd5abeb1 to your computer and use it in GitHub Desktop.
Save mkusher/df494b2c5eabcd5abeb1 to your computer and use it in GitHub Desktop.
type MuCommand is (StartCommand, NextCommand, WriteAcc, ReadAcc, WriteRamAddress,
ReadRam, WriteRam, IncrementPC, ReadPC, WritePC, ReadROM, WriteTemp, ReadTemp,
ReadR0Address, AluCompare, CheckNC, JMP, NOPE, WriteBus, ReadPSW, WritePSW);
type MuState is array(0 to 15) of MuCommand;
type MuGraph is array(0 to 63) of MuState;
constant MovADataGraph : MuGraph := (
(ReadPC, others => nope),
(IncrementPC, others => nope),
(WritePC, WriteBus, others => nope),
(ReadROM, others => nope),
(ReadPC, WriteACC, others => nope),
(IncrementPC, others => nope),
(WritePC, WriteBus, others => nope),
(ReadROM, others => nope),
(StartCommand, others => nope),
others => ( others => nope )
);
constant MovR0AGraph : MuGraph := (
(WriteRamAddress, ReadR0Address, others => nope),
(ReadACC, others => nope),
(WriteRam, ReadPC, others => nope),
(IncrementPC, others => nope),
(WritePC, WriteBus, others => nope),
(ReadROM, others => nope),
(StartCommand, others => nope),
others => ( others => nope )
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment