-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
46,274 additions
and
22,633 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
-- EASE/HDL begin -------------------------------------------------------------- | ||
-- Architecture 'a0' of 'DUAL_PORT_RAM. | ||
-------------------------------------------------------------------------------- | ||
-- Copy of the interface declaration of Entity 'DUAL_PORT_RAM' : | ||
-- | ||
-- port( | ||
-- DATA_IN : in std_logic_vector(11 downto 0); | ||
-- DATA_OUT : out std_logic_vector(11 downto 0); | ||
-- RDCLOCK : in std_logic; | ||
-- RD_ADDRESS : in integer range 2020 downto 0; | ||
-- WE : in std_logic; | ||
-- WRCLOCK : in std_logic; | ||
-- WR_ADDRESS : in integer range 2020 downto 0); | ||
-- | ||
-- EASE/HDL end ---------------------------------------------------------------- | ||
|
||
architecture a0 of DUAL_PORT_RAM is | ||
|
||
type MEM is array(0 to 2020) of std_logic_vector(11 downto 0); | ||
signal RAM_BLOCK : MEM; | ||
signal RD_ADDRESS_REG : integer range 0 to 2020; | ||
|
||
begin | ||
|
||
process (WRCLOCK) | ||
begin | ||
if (WRCLOCK'event and WRCLOCK = '1') then | ||
if (WE = '1') then | ||
RAM_BLOCK(WR_ADDRESS) <= DATA_IN; | ||
end if; | ||
end if; | ||
end process; | ||
|
||
process (RDCLOCK) | ||
BEGIN | ||
if (RDCLOCK'event and RDCLOCK = '1') then | ||
DATA_OUT <= RAM_BLOCK(RD_ADDRESS_REG); | ||
RD_ADDRESS_REG <= RD_ADDRESS; | ||
end if; | ||
end process; | ||
|
||
end architecture a0 ; -- of DUAL_PORT_RAM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
-- EASE/HDL begin -------------------------------------------------------------- | ||
-- Architecture 'rtl' of 'FAKE_DATA_GEN. | ||
-------------------------------------------------------------------------------- | ||
-- Copy of the interface declaration of Entity 'FAKE_DATA_GEN' : | ||
-- | ||
-- port( | ||
-- CLK200MHz : in std_logic; | ||
-- FAKE_DATA_NEG : out std_logic_vector(11 downto 0); | ||
-- FAKE_DATA_POS : out std_logic_vector(11 downto 0); | ||
-- SYSRST : in std_logic); | ||
-- | ||
-- EASE/HDL end ---------------------------------------------------------------- | ||
|
||
architecture rtl of FAKE_DATA_GEN is | ||
|
||
signal DATA_PLUS_TWO: std_logic_vector(11 downto 0); | ||
signal FAKE_DATA_POS_TMP: std_logic_vector(11 downto 0); | ||
|
||
begin | ||
|
||
-- Fake data generator | ||
-- Increment positive fake data by two | ||
DATA_PLUS_TWO(0) <= '0'; | ||
FAKE_DATA_POS <= FAKE_DATA_POS_TMP; | ||
|
||
process(CLK200MHz,SYSRST) | ||
begin | ||
if SYSRST = '1' then | ||
DATA_PLUS_TWO(11 downto 1) <= (others => '0'); | ||
elsif (CLK200MHz'event and CLK200MHz = '1') then | ||
DATA_PLUS_TWO(11 downto 1) <= DATA_PLUS_TWO(11 downto 1) + "00000000001"; | ||
end if; | ||
end process; | ||
|
||
-- Take over DATA_PLUS_TWO on positive edge to get FAKE_DATA_POS | ||
process(CLK200MHz) | ||
begin | ||
if (CLK200MHz'event and CLK200MHz = '1') then | ||
FAKE_DATA_POS_TMP <= DATA_PLUS_TWO; | ||
end if; | ||
end process; | ||
|
||
-- Increment FAKE_DATA_POS by one | ||
process(CLK200MHz) | ||
begin | ||
if (CLK200MHz'event and CLK200MHz = '0') then -- negative edge | ||
FAKE_DATA_NEG <= FAKE_DATA_POS_TMP + "000000000001"; | ||
end if; | ||
end process; | ||
|
||
end architecture rtl ; -- of FAKE_DATA_GEN | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- EASE/HDL begin -------------------------------------------------------------- | ||
-- Architecture 'a0' of 'LED_DRIVER. | ||
-------------------------------------------------------------------------------- | ||
-- Copy of the interface declaration of Entity 'LED_DRIVER' : | ||
-- | ||
-- port( | ||
-- CLK10MHz : in std_logic; | ||
-- INP : in std_logic; | ||
-- OUTP : out std_logic; | ||
-- SYSRST : in std_logic); | ||
-- | ||
-- EASE/HDL end ---------------------------------------------------------------- | ||
|
||
architecture a0 of LED_DRIVER is | ||
|
||
signal LEDSHINE_COUNTER: std_logic_vector(20 downto 0); -- Full is about 0.2 seconds | ||
|
||
begin | ||
|
||
process(CLK10MHz, SYSRST, INP) | ||
begin | ||
if (SYSRST = '1' or INP = '1') then | ||
LEDSHINE_COUNTER <= "000000000000000000000"; | ||
elsif (CLK10MHz'event and CLK10MHz = '1') then | ||
if (LEDSHINE_COUNTER /= "111111111111111111111") then | ||
LEDSHINE_COUNTER <= LEDSHINE_COUNTER + "000000000000000000001"; | ||
else | ||
LEDSHINE_COUNTER <= LEDSHINE_COUNTER; -- locks at full | ||
end if; | ||
end if; | ||
end process; | ||
|
||
OUTP <= '1' when (LEDSHINE_COUNTER /= "111111111111111111111") else '0'; | ||
|
||
end architecture a0 ; -- of LED_DRIVER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
-- EASE/HDL begin -------------------------------------------------------------- | ||
-- Architecture 'a0' of 'LED_ONE_SHOT. | ||
-------------------------------------------------------------------------------- | ||
-- Copy of the interface declaration of Entity 'LED_ONE_SHOT' : | ||
-- | ||
-- port( | ||
-- CLK10MHz : in std_logic; | ||
-- INP : in std_logic; | ||
-- OUTP : out std_logic; | ||
-- STARTUP : in std_logic; | ||
-- SYSRST : in std_logic); | ||
-- | ||
-- EASE/HDL end ---------------------------------------------------------------- | ||
|
||
architecture a0 of LED_ONE_SHOT is | ||
|
||
signal LEDSHINE_COUNTER: std_logic_vector(20 downto 0); -- Full is about 0.2 seconds | ||
signal LED_ON: std_logic; | ||
|
||
begin | ||
|
||
process(CLK10MHz, SYSRST, INP) | ||
begin | ||
if (SYSRST = '1' or INP = '1') then | ||
LEDSHINE_COUNTER <= "000000000000000000000"; | ||
LED_ON <= '0'; | ||
elsif (CLK10MHz'event and CLK10MHz = '1') then | ||
if (LEDSHINE_COUNTER /= "111111111111111111111") then | ||
LEDSHINE_COUNTER <= LEDSHINE_COUNTER + "000000000000000000001"; | ||
LED_ON <= '1'; | ||
else | ||
LEDSHINE_COUNTER <= LEDSHINE_COUNTER; -- locks at full | ||
LED_ON <= '0'; | ||
end if; | ||
end if; | ||
end process; | ||
|
||
OUTP <= LED_ON and not STARTUP; | ||
|
||
end architecture a0 ; -- of LED_ONE_SHOT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.