@@ -0,0 +1,100 | |||||
|
1 | ---------------------------------------------------------------------------------- | |||
|
2 | -- Company: | |||
|
3 | -- Engineer: | |||
|
4 | -- | |||
|
5 | -- Create Date: 15:20:11 12/08/2013 | |||
|
6 | -- Design Name: | |||
|
7 | -- Module Name: GPMC_SLAVE - Behavioral | |||
|
8 | -- Project Name: | |||
|
9 | -- Target Devices: | |||
|
10 | -- Tool versions: | |||
|
11 | -- Description: | |||
|
12 | -- | |||
|
13 | -- Dependencies: | |||
|
14 | -- | |||
|
15 | -- Revision: | |||
|
16 | -- Revision 0.01 - File Created | |||
|
17 | -- Additional Comments: | |||
|
18 | -- | |||
|
19 | ---------------------------------------------------------------------------------- | |||
|
20 | library IEEE; | |||
|
21 | use IEEE.STD_LOGIC_1164.ALL; | |||
|
22 | use IEEE.numeric_std.all; | |||
|
23 | library grlib, techmap; | |||
|
24 | use grlib.stdlib.all; | |||
|
25 | use techmap.gencomp.all; | |||
|
26 | use techmap.allclkgen.all; | |||
|
27 | library lpp; | |||
|
28 | use lpp.general_purpose.all; | |||
|
29 | ||||
|
30 | entity GPMC_SLAVE is | |||
|
31 | generic ( | |||
|
32 | memtech : integer := 0; | |||
|
33 | padtech : integer := 0 | |||
|
34 | ); | |||
|
35 | Port ( | |||
|
36 | clk : in STD_LOGIC; | |||
|
37 | reset : in STD_LOGIC; | |||
|
38 | GPMC_AD : inout std_logic_vector(15 downto 0); | |||
|
39 | GPMC_A : in std_logic_vector(19 downto 0); | |||
|
40 | GPMC_CLK_MUX0 : in std_ulogic; | |||
|
41 | GPMC_WEN : in std_ulogic; | |||
|
42 | GPMC_OEN_REN : in std_ulogic; | |||
|
43 | GPMC_ADVN_ALE : in std_ulogic; | |||
|
44 | GPMC_CSN : in std_ulogic_vector(2 downto 0); | |||
|
45 | GPMC_BE0N_CLE : in std_ulogic; | |||
|
46 | GPMC_BE1N : in std_ulogic; | |||
|
47 | GPMC_WAIT0 : in std_ulogic; | |||
|
48 | GPMC_WPN : in std_ulogic | |||
|
49 | ); | |||
|
50 | end GPMC_SLAVE; | |||
|
51 | ||||
|
52 | architecture Behavioral of GPMC_SLAVE is | |||
|
53 | constant VectInit : std_logic_vector(15 downto 0):=(others => '0'); | |||
|
54 | ||||
|
55 | signal data_out :std_logic_vector(15 downto 0); | |||
|
56 | signal data_in :std_logic_vector(15 downto 0); | |||
|
57 | ||||
|
58 | type RAMarrayT is array (0 to 255) of std_logic_vector(15 downto 0); | |||
|
59 | signal RAMarray : RAMarrayT:=(others => VectInit); | |||
|
60 | signal ramindex : integer range 0 to 255; | |||
|
61 | ||||
|
62 | begin | |||
|
63 | ||||
|
64 | data_pad : iopadv generic map (tech=> padtech,width => 16) | |||
|
65 | port map ( | |||
|
66 | pad => GPMC_AD(15 downto 0), | |||
|
67 | o => data_in(15 downto 0), | |||
|
68 | en => GPMC_OEN_REN, | |||
|
69 | i => data_out(15 downto 0) | |||
|
70 | ); | |||
|
71 | ||||
|
72 | process(reset,GPMC_CLK_MUX0) | |||
|
73 | begin | |||
|
74 | if reset = '0' then | |||
|
75 | data_out <= (others => '0'); | |||
|
76 | ramindex <= 0; | |||
|
77 | elsif GPMC_CLK_MUX0'event and GPMC_CLK_MUX0 = '1' then | |||
|
78 | ramindex <= to_integer(unsigned(GPMC_A)); | |||
|
79 | data_out <= RAMarray(ramindex); | |||
|
80 | if GPMC_WEN = '0' then | |||
|
81 | RAMarray(ramindex) <= data_in; | |||
|
82 | end if; | |||
|
83 | end if; | |||
|
84 | end process; | |||
|
85 | ||||
|
86 | end Behavioral; | |||
|
87 | ||||
|
88 | ||||
|
89 | ||||
|
90 | ||||
|
91 | ||||
|
92 | ||||
|
93 | ||||
|
94 | ||||
|
95 | ||||
|
96 | ||||
|
97 | ||||
|
98 | ||||
|
99 | ||||
|
100 |
@@ -4,6 +4,7 NET "CLK" LOC = "K20"| slew | |||||
4 | NET "CLKM" TNM_NET = "clkm_net"; |
|
4 | NET "CLKM" TNM_NET = "clkm_net"; | |
5 |
TIMESPEC "TS_clkm_net" = PERIOD "clkm_net" 10 ns HIGH 50%; |
|
5 | TIMESPEC "TS_clkm_net" = PERIOD "clkm_net" 10 ns HIGH 50%; | |
6 |
|
6 | |||
|
7 | ||||
7 | NET "RESET" CLOCK_DEDICATED_ROUTE = FALSE; |
|
8 | NET "RESET" CLOCK_DEDICATED_ROUTE = FALSE; | |
8 |
NET "RESET" LOC = "AB11" | slew=FAST | IOSTANDARD=LVTTL; |
|
9 | NET "RESET" LOC = "AB11" | slew=FAST | IOSTANDARD=LVTTL; | |
9 |
|
10 | |||
@@ -91,6 +92,58 NET "Data(2)" LOC = "A20"| slew=FAS | |||||
91 | NET "Data(1)" LOC = "B18"| slew=FAST | IOSTANDARD=LVTTL; # sdram data |
|
92 | NET "Data(1)" LOC = "B18"| slew=FAST | IOSTANDARD=LVTTL; # sdram data | |
92 | NET "Data(0)" LOC = "A18"| slew=FAST | IOSTANDARD=LVTTL; # sdram data |
|
93 | NET "Data(0)" LOC = "A18"| slew=FAST | IOSTANDARD=LVTTL; # sdram data | |
93 |
|
94 | |||
|
95 | NET "GPMC_AD(0)" LOC = "M1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
96 | NET "GPMC_AD(1)" LOC = "M2"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
97 | NET "GPMC_AD(2)" LOC = "AB3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
98 | NET "GPMC_AD(3)" LOC = "AB2"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
99 | NET "GPMC_AD(4)" LOC = "N1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
100 | NET "GPMC_AD(5)" LOC = "N3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
101 | NET "GPMC_AD(6)" LOC = "AB5"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
102 | NET "GPMC_AD(7)" LOC = "AB4"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
103 | NET "GPMC_AD(8)" LOC = "R1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
104 | NET "GPMC_AD(9)" LOC = "V1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
105 | NET "GPMC_AD(10)" LOC = "U3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
106 | NET "GPMC_AD(11)" LOC = "T1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
107 | NET "GPMC_AD(12)" LOC = "V2"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
108 | NET "GPMC_AD(13)" LOC = "W1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
109 | NET "GPMC_AD(14)" LOC = "T2"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
110 | NET "GPMC_AD(15)" LOC = "U1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
111 | ||||
|
112 | ||||
|
113 | ||||
|
114 | NET "GPMC_A(0)" LOC = "N4"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
115 | NET "GPMC_A(1)" LOC = "N6"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
116 | NET "GPMC_A(2)" LOC = "P3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
117 | NET "GPMC_A(3)" LOC = "P4"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
118 | NET "GPMC_A(4)" LOC = "R4"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
119 | NET "GPMC_A(5)" LOC = "T5"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
120 | NET "GPMC_A(6)" LOC = "T6"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
121 | NET "GPMC_A(7)" LOC = "T3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
122 | NET "GPMC_A(8)" LOC = "L1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
123 | NET "GPMC_A(9)" LOC = "K1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
124 | NET "GPMC_A(10)" LOC = "L3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
125 | NET "GPMC_A(11)" LOC = "K2"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
126 | NET "GPMC_A(12)" LOC = "F1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
127 | NET "GPMC_A(13)" LOC = "F2"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
128 | NET "GPMC_A(14)" LOC = "G3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
129 | NET "GPMC_A(15)" LOC = "H2"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
130 | NET "GPMC_A(16)" LOC = "G1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
131 | NET "GPMC_A(17)" LOC = "H1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
132 | NET "GPMC_A(18)" LOC = "J1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
133 | NET "GPMC_A(19)" LOC = "J3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
134 | ||||
|
135 | NET "GPMC_CLK_MUX0" CLOCK_DEDICATED_ROUTE = FALSE; | |||
|
136 | NET "GPMC_CLK_MUX0" LOC = "R3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
137 | NET "GPMC_WEN" LOC = "W3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
138 | NET "GPMC_OEN_REN" LOC = "Y2"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
139 | NET "GPMC_ADVN_ALE" LOC = "AA2"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
140 | NET "GPMC_CSN(0)" LOC = "M3"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
141 | NET "GPMC_CSN(1)" LOC = "P1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
142 | NET "GPMC_CSN(2)" LOC = "P2"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
143 | NET "GPMC_BE0N_CLE" LOC = "Y1"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
144 | NET "GPMC_BE1N" LOC = "AB21"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
145 | NET "GPMC_WAIT0" LOC = "AA21"| slew=FAST | IOSTANDARD=LVTTL; | |||
|
146 | NET "GPMC_WPN" LOC = "W22"| slew=FAST | IOSTANDARD=LVTTL; | |||
94 |
|
147 | |||
95 |
|
148 | |||
96 |
|
149 | |||
@@ -107,3 +160,8 NET "Data(0)" LOC = "A18"| slew=FAS | |||||
107 |
|
160 | |||
108 |
|
161 | |||
109 |
|
162 | |||
|
163 | ||||
|
164 | ||||
|
165 | ||||
|
166 | ||||
|
167 |
@@ -55,6 +55,21 entity BeagleSynth is | |||||
55 |
|
|
55 | utxd1 : out std_ulogic; | |
56 |
|
|
56 | LED : out std_ulogic_vector(2 downto 0); | |
57 | -------------------------------------------------------- |
|
57 | -------------------------------------------------------- | |
|
58 | ---- Beaglebone GPMC | |||
|
59 | -------------------------------------------------------- | |||
|
60 | GPMC_AD : inout std_logic_vector(15 downto 0); | |||
|
61 | GPMC_A : in std_logic_vector(19 downto 0); | |||
|
62 | GPMC_CLK_MUX0 : in std_ulogic; | |||
|
63 | GPMC_WEN : in std_ulogic; | |||
|
64 | GPMC_OEN_REN : in std_ulogic; | |||
|
65 | GPMC_ADVN_ALE : in std_ulogic; | |||
|
66 | GPMC_CSN : in std_ulogic_vector(2 downto 0); | |||
|
67 | GPMC_BE0N_CLE : in std_ulogic; | |||
|
68 | GPMC_BE1N : in std_ulogic; | |||
|
69 | GPMC_WAIT0 : in std_ulogic; | |||
|
70 | GPMC_WPN : in std_ulogic; | |||
|
71 | ||||
|
72 | -------------------------------------------------------- | |||
58 | ---- SDRAM |
|
73 | ---- SDRAM | |
59 | ---- For SDRAM config have a look on leon3-altera-ep1c20 |
|
74 | ---- For SDRAM config have a look on leon3-altera-ep1c20 | |
60 | ---- design from GRLIB, the IS42S32400E is similar to |
|
75 | ---- design from GRLIB, the IS42S32400E is similar to | |
@@ -127,6 +142,7 signal smpclk : std_logic; | |||||
127 | signal smpclk_reg : std_logic; |
|
142 | signal smpclk_reg : std_logic; | |
128 | signal DAC_SDO : std_logic; |
|
143 | signal DAC_SDO : std_logic; | |
129 |
|
144 | |||
|
145 | signal gpmc_clk : std_logic; | |||
130 | begin |
|
146 | begin | |
131 |
|
147 | |||
132 | DAC_nCLR <= '1'; |
|
148 | DAC_nCLR <= '1'; | |
@@ -323,6 +339,24 elsif clkm'event and clkm = '1' then | |||||
323 | end if; |
|
339 | end if; | |
324 | end process; |
|
340 | end process; | |
325 |
|
341 | |||
|
342 | gpmc_clk_pad : clkpad GENERIC MAP (tech => padtech) PORT MAP (GPMC_CLK_MUX0, gpmc_clk); | |||
|
343 | GPMCS0: entity work.GPMC_SLAVE | |||
|
344 | generic map(memtech,padtech) | |||
|
345 | Port map( | |||
|
346 | clk => clkm, | |||
|
347 | reset => rstn, | |||
|
348 | GPMC_AD => GPMC_AD, | |||
|
349 | GPMC_A => GPMC_A, | |||
|
350 | GPMC_CLK_MUX0 => gpmc_clk, | |||
|
351 | GPMC_WEN => GPMC_WEN, | |||
|
352 | GPMC_OEN_REN => GPMC_OEN_REN, | |||
|
353 | GPMC_ADVN_ALE => GPMC_ADVN_ALE, | |||
|
354 | GPMC_CSN => GPMC_CSN, | |||
|
355 | GPMC_BE0N_CLE => GPMC_BE0N_CLE, | |||
|
356 | GPMC_BE1N => GPMC_BE1N, | |||
|
357 | GPMC_WAIT0 => GPMC_WAIT0, | |||
|
358 | GPMC_WPN => GPMC_WAIT0 | |||
|
359 | ); | |||
326 |
|
360 | |||
327 | end rtl; |
|
361 | end rtl; | |
328 |
|
362 |
@@ -17,7 +17,7 VHDLOPTSYNFILES= | |||||
17 |
|
17 | |||
18 |
|
18 | |||
19 | VHDLSYNFILES= \ |
|
19 | VHDLSYNFILES= \ | |
20 | config.vhd BeagleSynth.vhd BeagleSynth_MCTRL.vhd |
|
20 | config.vhd BeagleSynth.vhd BeagleSynth_MCTRL.vhd GPMC_SLAVE.vhd | |
21 | #VHDLSIMFILES=testbench.vhd |
|
21 | #VHDLSIMFILES=testbench.vhd | |
22 | #SIMTOP=testbench |
|
22 | #SIMTOP=testbench | |
23 | #SDCFILE=$(GRLIB)/boards/$(BOARD)/default.sdc |
|
23 | #SDCFILE=$(GRLIB)/boards/$(BOARD)/default.sdc |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (508 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (1030 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (2370 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (6296 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (984 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (1033 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (19493 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (19493 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed | ||
This diff has been collapsed as it changes many lines, (1051 lines changed) Show them Hide them |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now