summaryrefslogtreecommitdiff
path: root/FPGA/vhdl
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-06-13 16:06:19 +0200
committerPacien TRAN-GIRARD2014-06-13 16:06:19 +0200
commit70318492f3472ff2ec3b1735cf69a4eef1f6a51d (patch)
tree0f4243099ea9379bc164dc37a9fee3ab255f0f7e /FPGA/vhdl
parentd091bb2cb82f66d187df8f3aba6afcf4041b72ce (diff)
downloadfpga-home-automation-70318492f3472ff2ec3b1735cf69a4eef1f6a51d.tar.gz
Update project
Diffstat (limited to 'FPGA/vhdl')
-rw-r--r--FPGA/vhdl/LCD_message.bdf415
-rw-r--r--FPGA/vhdl/codec_config.vhd21
-rw-r--r--FPGA/vhdl/dds_sinus.vhd4
-rw-r--r--FPGA/vhdl/greybox_tmp/cbx_args.txt12
-rw-r--r--FPGA/vhdl/i2c_master.vhd526
-rw-r--r--FPGA/vhdl/lpm_shiftreg0.qip0
-rw-r--r--FPGA/vhdl/message.vhd66
-rw-r--r--FPGA/vhdl/message.vhd.bak67
8 files changed, 813 insertions, 298 deletions
diff --git a/FPGA/vhdl/LCD_message.bdf b/FPGA/vhdl/LCD_message.bdf
new file mode 100644
index 0000000..71d3ff7
--- /dev/null
+++ b/FPGA/vhdl/LCD_message.bdf
@@ -0,0 +1,415 @@
1/*
2WARNING: Do NOT edit the input and output ports in this file in a text
3editor if you plan to continue editing the block that represents it in
4the Block Editor! File corruption is VERY likely to occur.
5*/
6/*
7Copyright (C) 1991-2013 Altera Corporation
8Your use of Altera Corporation's design tools, logic functions
9and other software and tools, and its AMPP partner logic
10functions, and any output files from any of the foregoing
11(including device programming or simulation files), and any
12associated documentation or information are expressly subject
13to the terms and conditions of the Altera Program License
14Subscription Agreement, Altera MegaCore Function License
15Agreement, or other applicable license agreement, including,
16without limitation, that your use is for the sole purpose of
17programming logic devices manufactured by Altera and sold by
18Altera or its authorized distributors. Please refer to the
19applicable agreement for further details.
20*/
21(header "graphic" (version "1.4"))
22(pin
23 (input)
24 (rect 80 56 248 72)
25 (text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
26 (text "clk" (rect 5 0 21 11)(font "Arial" ))
27 (pt 168 8)
28 (drawing
29 (line (pt 84 12)(pt 109 12))
30 (line (pt 84 4)(pt 109 4))
31 (line (pt 113 8)(pt 168 8))
32 (line (pt 84 12)(pt 84 4))
33 (line (pt 109 4)(pt 113 8))
34 (line (pt 109 12)(pt 113 8))
35 )
36 (text "VCC" (rect 128 7 149 17)(font "Arial" (font_size 6)))
37 (annotation_block (location)(rect 24 72 80 88))
38)
39(pin
40 (input)
41 (rect 80 72 248 88)
42 (text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
43 (text "resetn" (rect 5 0 37 11)(font "Arial" ))
44 (pt 168 8)
45 (drawing
46 (line (pt 84 12)(pt 109 12))
47 (line (pt 84 4)(pt 109 4))
48 (line (pt 113 8)(pt 168 8))
49 (line (pt 84 12)(pt 84 4))
50 (line (pt 109 4)(pt 113 8))
51 (line (pt 109 12)(pt 113 8))
52 )
53 (text "VCC" (rect 128 7 149 17)(font "Arial" (font_size 6)))
54 (annotation_block (location)(rect 16 88 80 104))
55)
56(pin
57 (output)
58 (rect 80 104 256 120)
59 (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
60 (text "lcd_rs" (rect 90 0 120 11)(font "Arial" ))
61 (pt 0 8)
62 (drawing
63 (line (pt 0 8)(pt 52 8))
64 (line (pt 52 4)(pt 78 4))
65 (line (pt 52 12)(pt 78 12))
66 (line (pt 52 12)(pt 52 4))
67 (line (pt 78 4)(pt 82 8))
68 (line (pt 82 8)(pt 78 12))
69 (line (pt 78 12)(pt 82 8))
70 )
71 (annotation_block (location)(rect 256 120 312 136))
72)
73(pin
74 (output)
75 (rect 80 120 256 136)
76 (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
77 (text "lcd_on" (rect 90 0 124 11)(font "Arial" ))
78 (pt 0 8)
79 (drawing
80 (line (pt 0 8)(pt 52 8))
81 (line (pt 52 4)(pt 78 4))
82 (line (pt 52 12)(pt 78 12))
83 (line (pt 52 12)(pt 52 4))
84 (line (pt 78 4)(pt 82 8))
85 (line (pt 82 8)(pt 78 12))
86 (line (pt 78 12)(pt 82 8))
87 )
88 (annotation_block (location)(rect 256 136 312 152))
89)
90(pin
91 (output)
92 (rect 80 136 256 152)
93 (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
94 (text "lcd_data[7..0]" (rect 90 0 156 11)(font "Arial" ))
95 (pt 0 8)
96 (drawing
97 (line (pt 0 8)(pt 52 8))
98 (line (pt 52 4)(pt 78 4))
99 (line (pt 52 12)(pt 78 12))
100 (line (pt 52 12)(pt 52 4))
101 (line (pt 78 4)(pt 82 8))
102 (line (pt 82 8)(pt 78 12))
103 (line (pt 78 12)(pt 82 8))
104 )
105 (annotation_block (location)(rect 256 152 312 168))
106)
107(pin
108 (output)
109 (rect 80 152 256 168)
110 (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
111 (text "lcd_blon" (rect 90 0 132 11)(font "Arial" ))
112 (pt 0 8)
113 (drawing
114 (line (pt 0 8)(pt 52 8))
115 (line (pt 52 4)(pt 78 4))
116 (line (pt 52 12)(pt 78 12))
117 (line (pt 52 12)(pt 52 4))
118 (line (pt 78 4)(pt 82 8))
119 (line (pt 82 8)(pt 78 12))
120 (line (pt 78 12)(pt 82 8))
121 )
122 (annotation_block (location)(rect 256 168 312 184))
123)
124(pin
125 (output)
126 (rect 80 168 256 184)
127 (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
128 (text "lcd_en" (rect 90 0 124 11)(font "Arial" ))
129 (pt 0 8)
130 (drawing
131 (line (pt 0 8)(pt 52 8))
132 (line (pt 52 4)(pt 78 4))
133 (line (pt 52 12)(pt 78 12))
134 (line (pt 52 12)(pt 52 4))
135 (line (pt 78 4)(pt 82 8))
136 (line (pt 82 8)(pt 78 12))
137 (line (pt 78 12)(pt 82 8))
138 )
139 (annotation_block (location)(rect 256 184 312 200))
140)
141(symbol
142 (rect 544 56 760 296)
143 (text "LCD_controller" (rect 5 0 81 11)(font "Arial" ))
144 (text "inst" (rect 8 224 26 235)(font "Arial" ))
145 (port
146 (pt 0 32)
147 (input)
148 (text "clk" (rect 0 0 15 11)(font "Arial" ))
149 (text "clk" (rect 21 27 36 38)(font "Arial" ))
150 (line (pt 0 32)(pt 16 32))
151 )
152 (port
153 (pt 0 48)
154 (input)
155 (text "resetn" (rect 0 0 31 11)(font "Arial" ))
156 (text "resetn" (rect 21 43 52 54)(font "Arial" ))
157 (line (pt 0 48)(pt 16 48))
158 )
159 (port
160 (pt 0 64)
161 (input)
162 (text "en_250kHz" (rect 0 0 57 11)(font "Arial" ))
163 (text "en_250kHz" (rect 21 59 78 70)(font "Arial" ))
164 (line (pt 0 64)(pt 16 64))
165 )
166 (port
167 (pt 0 80)
168 (input)
169 (text "mode[1..0]" (rect 0 0 53 11)(font "Arial" ))
170 (text "mode[1..0]" (rect 21 75 74 86)(font "Arial" ))
171 (line (pt 0 80)(pt 16 80)(line_width 3))
172 )
173 (port
174 (pt 0 96)
175 (input)
176 (text "char[7..0]" (rect 0 0 46 11)(font "Arial" ))
177 (text "char[7..0]" (rect 21 91 67 102)(font "Arial" ))
178 (line (pt 0 96)(pt 16 96)(line_width 3))
179 )
180 (port
181 (pt 0 112)
182 (input)
183 (text "address[6..0]" (rect 0 0 63 11)(font "Arial" ))
184 (text "address[6..0]" (rect 21 107 84 118)(font "Arial" ))
185 (line (pt 0 112)(pt 16 112)(line_width 3))
186 )
187 (port
188 (pt 0 128)
189 (input)
190 (text "write_char" (rect 0 0 53 11)(font "Arial" ))
191 (text "write_char" (rect 21 123 74 134)(font "Arial" ))
192 (line (pt 0 128)(pt 16 128))
193 )
194 (port
195 (pt 0 144)
196 (input)
197 (text "write_address" (rect 0 0 69 11)(font "Arial" ))
198 (text "write_address" (rect 21 139 90 150)(font "Arial" ))
199 (line (pt 0 144)(pt 16 144))
200 )
201 (port
202 (pt 0 160)
203 (input)
204 (text "D" (rect 0 0 9 11)(font "Arial" ))
205 (text "D" (rect 21 155 30 166)(font "Arial" ))
206 (line (pt 0 160)(pt 16 160))
207 )
208 (port
209 (pt 0 176)
210 (input)
211 (text "C" (rect 0 0 9 11)(font "Arial" ))
212 (text "C" (rect 21 171 30 182)(font "Arial" ))
213 (line (pt 0 176)(pt 16 176))
214 )