Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Optimize LPC logic for modern chips. Fixes XBlast OS on 1.0 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaasedelen authored and Ryzee119 committed Aug 5, 2023
1 parent ddff195 commit af83c4b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Firmware/openxenium.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,13 @@ PROCESS (LPC_CLK, LPC_RST, TSOPBOOT) BEGIN
LPC_CURRENT_STATE <= TAR2;
WHEN TAR2 =>
LPC_CURRENT_STATE <= SYNCING;
COUNT <= 6;
COUNT <= 2;

--SYNCING STAGE
WHEN SYNCING =>
COUNT <= COUNT - 1;
--Buffer IO reads during syncing. Helps output timings
IF COUNT = 1 THEN
IF COUNT = 0 THEN
IF CYCLE_TYPE = MEM_READ THEN
READBUFFER <= FLASH_DQ;

Expand All @@ -376,7 +376,6 @@ PROCESS (LPC_CLK, LPC_RST, TSOPBOOT) BEGIN
READBUFFER <= REG_00EF_READ;
END IF;
END IF;
ELSIF COUNT = 0 THEN
LPC_CURRENT_STATE <= SYNC_COMPLETE;
END IF;
WHEN SYNC_COMPLETE =>
Expand Down

0 comments on commit af83c4b

Please sign in to comment.