Changeset 10225 for firmware/FAD/FACT_FAD_20MHz_VAR_PS/FACT_FAD_TB_lib/hdl
- Timestamp:
- 03/04/11 10:16:36 (14 years ago)
- Location:
- firmware/FAD/FACT_FAD_20MHz_VAR_PS/FACT_FAD_TB_lib/hdl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FAD/FACT_FAD_20MHz_VAR_PS/FACT_FAD_TB_lib/hdl/REFCLK_counter_tester_beha.vhd
r10129 r10225 19 19 alarm_refclk_too_low : IN std_logic; 20 20 counter_result : IN std_logic_vector (11 DOWNTO 0); 21 clk : out std_logic; 21 22 refclk_in : OUT std_logic 22 23 ); … … 28 29 -- 29 30 ARCHITECTURE beha OF REFCLK_counter_tester IS 30 constant REFCLK_PERIOD : time := 1012ns; 31 constant REFCLK_PERIOD : time := 1012ns; 32 constant clock_period : time := 20ns; 33 34 signal refclk_i : std_logic := '0'; 35 signal refclk_en : std_logic; 31 36 32 37 BEGIN 38 refclk_in <= refclk_i and refclk_en; 33 39 34 clock_gen_proc: process 40 clk_en_proc: process 41 begin 42 refclk_en <= '1'; 43 wait for 4500 us; 44 refclk_en <= '0'; 45 wait; 46 end process clk_en_proc; 47 48 clock_gen_proc: process 49 begin 50 clk <= '0'; 51 wait for clock_period / 2; 52 clk <= '1'; 53 wait for clock_period / 2; 54 end process clock_gen_proc; 55 56 57 ref_clock_gen_proc: process 35 58 begin 36 refclk_i n<= '0';59 refclk_i <= '0'; 37 60 wait for REFCLK_PERIOD / 2; 38 refclk_i n<= '1';61 refclk_i <= '1'; 39 62 wait for REFCLK_PERIOD / 2; 40 end process clock_gen_proc;63 end process ref_clock_gen_proc; 41 64 42 65 END ARCHITECTURE beha; -
firmware/FAD/FACT_FAD_20MHz_VAR_PS/FACT_FAD_TB_lib/hdl/fad_main_tb_struct.vhd
r10180 r10225 2 2 -- 3 3 -- Created: 4 -- by - d neise.UNKNOWN (E5B-LABOR6)5 -- at - 1 6:10:14 25.02.20116 -- 7 -- Generated by Mentor Graphics' HDL Designer(TM) 2009. 2 (Build 10)4 -- by - daqct3.UNKNOWN (IHP110) 5 -- at - 18:33:01 02.03.2011 6 -- 7 -- Generated by Mentor Graphics' HDL Designer(TM) 2009.1 (Build 12) 8 8 -- 9 9 LIBRARY ieee; … … 20 20 -- 21 21 -- Created: 22 -- by - d neise.UNKNOWN (E5B-LABOR6)23 -- at - 1 6:10:15 25.02.201124 -- 25 -- Generated by Mentor Graphics' HDL Designer(TM) 2009. 2 (Build 10)22 -- by - daqct3.UNKNOWN (IHP110) 23 -- at - 18:33:01 02.03.2011 24 -- 25 -- Generated by Mentor Graphics' HDL Designer(TM) 2009.1 (Build 12) 26 26 -- 27 27 LIBRARY ieee; … … 182 182 COMPONENT w5300_emulator 183 183 PORT ( 184 int : OUT std_logic := ' 0';184 int : OUT std_logic := '1'; 185 185 addr : IN std_logic_vector (9 DOWNTO 0); 186 186 data : INOUT std_logic_vector (15 DOWNTO 0); -
firmware/FAD/FACT_FAD_20MHz_VAR_PS/FACT_FAD_TB_lib/hdl/refclk_counter_tb_struct.vhd
r10129 r10225 2 2 -- 3 3 -- Created: 4 -- by - d neise.UNKNOWN (E5B-LABOR6)5 -- at - 09:29:21 04.02.20114 -- by - daqct3.UNKNOWN (IHP110) 5 -- at - 18:11:15 03.03.2011 6 6 -- 7 -- Generated by Mentor Graphics' HDL Designer(TM) 2009. 2 (Build 10)7 -- Generated by Mentor Graphics' HDL Designer(TM) 2009.1 (Build 12) 8 8 -- 9 9 … … 22 22 -- 23 23 -- Created: 24 -- by - d neise.UNKNOWN (E5B-LABOR6)25 -- at - 09:29:21 04.02.201124 -- by - daqct3.UNKNOWN (IHP110) 25 -- at - 18:11:15 03.03.2011 26 26 -- 27 -- Generated by Mentor Graphics' HDL Designer(TM) 2009. 2 (Build 10)27 -- Generated by Mentor Graphics' HDL Designer(TM) 2009.1 (Build 12) 28 28 -- 29 29 LIBRARY ieee; … … 64 64 alarm_refclk_too_low : IN std_logic ; 65 65 counter_result : IN std_logic_vector (11 DOWNTO 0); 66 clk : OUT std_logic ; 66 67 refclk_in : OUT std_logic 67 );68 END COMPONENT;69 COMPONENT clock_generator70 GENERIC (71 clock_period : time := 20 ns;72 reset_time : time := 50 ns73 );74 PORT (75 clk : OUT std_logic := '0';76 rst : OUT std_logic := '0'77 68 ); 78 69 END COMPONENT; … … 82 73 FOR ALL : REFCLK_counter USE ENTITY FACT_FAD_lib.REFCLK_counter; 83 74 FOR ALL : REFCLK_counter_tester USE ENTITY FACT_FAD_TB_lib.REFCLK_counter_tester; 84 FOR ALL : clock_generator USE ENTITY FACT_FAD_TB_lib.clock_generator;85 75 -- pragma synthesis_on 86 76 … … 102 92 alarm_refclk_too_low => alarm_refclk_too_low, 103 93 counter_result => counter_result, 94 clk => clk, 104 95 refclk_in => refclk_in 105 );106 U_2 : clock_generator107 GENERIC MAP (108 clock_period => 20 ns,109 reset_time => 50 ns110 )111 PORT MAP (112 clk => clk,113 rst => OPEN114 96 ); 115 97 -
firmware/FAD/FACT_FAD_20MHz_VAR_PS/FACT_FAD_TB_lib/hdl/w5300_emulator_beha.vhd
r10180 r10225 17 17 ENTITY w5300_emulator IS 18 18 PORT( 19 int : out std_logic := '0';19 int : out std_logic := '1'; 20 20 addr : in std_logic_vector (9 DOWNTO 0); 21 21 data : inout std_logic_vector (15 DOWNTO 0); … … 43 43 set_proc : process 44 44 begin 45 FIFOR_CNT <= 0; 45 46 RSR_0 <= X"0000"; 46 47 RSR_1 <= X"0000"; 47 wait for 250 us;48 wait for 150 us; 48 49 RSR_1 <= X"0001"; 49 wait for 200 us;50 wait for 100 us; 50 51 RSR_1 <= X"0002"; 52 wait for 500 us; 53 FIFOR_CNT <= 1; 54 wait for 100 us; 55 FIFOR_CNT <= 2; 56 wait for 200 us; 57 FIFOR_CNT <= 3; 58 wait for 200 ns; 59 RSR_1 <= X"0000"; 60 wait for 2 ms; 61 RSR_1 <= X"0002"; 62 FIFOR_CNT <= 2; 63 64 wait for 6 ms; 65 int <= '0'; 66 67 -- wait for 1 ms; 68 -- RSR_1 <= X"0000"; 69 -- FIFOR_CNT <= 3; 51 70 wait; 52 71 end process set_proc; … … 73 92 if (FIFOR_CNT = 0) then 74 93 data_temp <= X"1800"; 75 FIFOR_CNT <= 1;94 76 95 elsif (FIFOR_CNT = 1) then 77 96 data_temp <= X"2200"; 78 FIFOR_CNT <= 2;97 79 98 elsif (FIFOR_CNT = 2) then 80 99 data_temp <= X"A000"; 81 FIFOR_CNT <= 3;100 82 101 83 102 elsif (FIFOR_CNT = 3) then 84 data_temp <= X" B000";103 data_temp <= X"A000"; 85 104 end if; 86 105 else
Note:
See TracChangeset
for help on using the changeset viewer.