##// END OF EJS Templates
Fixed top LFR-FM for simulation.
Jean-christophe Pellion -
r685:17d0356c0267 Simu-LFR-FM draft
parent child
Show More
@@ -25,6 +25,7 USE IEEE.std_logic_1164.ALL;
25 25 LIBRARY grlib;
26 26 USE grlib.amba.ALL;
27 27 USE grlib.stdlib.ALL;
28 library axcelerator;
28 29 LIBRARY techmap;
29 30 USE techmap.gencomp.ALL;
30 31 USE techmap.axcomp.ALL;
@@ -48,8 +49,7 USE lpp.general_purpose.ALL;
48 49 USE lpp.lpp_lfr_management.ALL;
49 50 USE lpp.lpp_leon3_soc_pkg.ALL;
50 51
51 --library proasic3l;
52 --use proasic3l.all;
52
53 53
54 54 ENTITY LFR_FM IS
55 55 GENERIC (
@@ -170,7 +170,8 ARCHITECTURE beh OF LFR_FM IS
170 170
171 171 SIGNAL clk50MHz_int : STD_LOGIC := '0';
172 172
173 component clkint port(A : in std_ulogic; Y :out std_ulogic); end component;
173 --component clkint port(A : in std_ulogic; Y :out std_ulogic); end component;
174 --component hclkint port(A : in std_ulogic; Y :out std_ulogic); end component;
174 175
175 176 SIGNAL rstn_50 : STD_LOGIC;
176 177 SIGNAL clk_lock : STD_LOGIC;
@@ -55,7 +55,7 ARCHITECTURE behav OF testbench IS
55 55 -- nSRAM_SCRUB : OUT STD_LOGIC; -- new
56 56 SIGNAL nSRAM_W : STD_LOGIC; -- new
57 57 SIGNAL nSRAM_G : STD_LOGIC; -- new
58 SIGNAL nSRAM_BUSY : STD_LOGIC; -- new
58 SIGNAL nSRAM_BUSY : STD_LOGIC := '1'; -- new
59 59 -- SPW --------------------------------------------------------------------
60 60 SIGNAL spw1_en : STD_LOGIC; -- new
61 61 SIGNAL spw1_din : STD_LOGIC;
@@ -293,7 +293,19 spw2_sin <= '1';
293 293 -----------------------------------------------------------------------------
294 294 -- SRAMS Same as EM, we don't have UT8ER1M32 models
295 295 -----------------------------------------------------------------------------
296 nSRAM_BUSY <= '1'; -- TODO emulate scrubbing
296 buy_gen: process
297 begin
298 IF end_of_simu /= '1' THEN
299 nSRAM_BUSY <= '0';
300 wait for 100 ns;
301 nSRAM_BUSY <= '1';
302 WAIT FOR 100 us;
303 ELSE
304 WAIT FOR 10 ps;
305 assert false report "end of test" severity note;
306 WAIT;
307 END IF;
308 end process;
297 309
298 310 nSRAM_CE <= not nSRAM_E1;
299 311
General Comments 0
You need to be logged in to leave comments. Login now