Added a register for Din which resolved issue on Beeb, upped version to 0.26

Change-Id: Ic23e4a212675ca58a4e1ad1ea09a020f54b8fdc3
This commit is contained in:
David Banks 2015-06-17 14:35:25 +01:00
parent 6d732a01ec
commit 2599920e75
2 changed files with 9 additions and 3 deletions

View File

@ -113,7 +113,7 @@ char *triggerStrings[NUM_TRIGGERS] = {
};
#define VERSION "0.25"
#define VERSION "0.26"
#ifdef EMBEDDED_6502
#define NUM_CMDS 24

View File

@ -155,8 +155,14 @@ begin
Addr <= memory_addr when (memory_rd = '1' or memory_wr = '1') else Addr_int;
Sync <= Sync_int;
Din <= Data;
memory_din <= Data;
data_latch : process(Phi0)
begin
if falling_edge(Phi0) then
Din <= Data;
memory_din <= Data;
end if;
end process;
Data <= memory_dout when cpu_clk = '0' and memory_wr = '1' else
Dout when cpu_clk = '0' and R_W_n_int = '0' and memory_rd = '0' else
(others => 'Z');