diff options
author | Pacien TRAN-GIRARD | 2014-06-13 16:06:19 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-06-13 16:06:19 +0200 |
commit | 70318492f3472ff2ec3b1735cf69a4eef1f6a51d (patch) | |
tree | 0f4243099ea9379bc164dc37a9fee3ab255f0f7e /FPGA/pwm | |
parent | d091bb2cb82f66d187df8f3aba6afcf4041b72ce (diff) | |
download | fpga-home-automation-70318492f3472ff2ec3b1735cf69a4eef1f6a51d.tar.gz |
Update project
Diffstat (limited to 'FPGA/pwm')
41 files changed, 2506 insertions, 0 deletions
diff --git a/FPGA/pwm/greybox_tmp/cbx_args.txt b/FPGA/pwm/greybox_tmp/cbx_args.txt new file mode 100644 index 0000000..662f251 --- /dev/null +++ b/FPGA/pwm/greybox_tmp/cbx_args.txt | |||
@@ -0,0 +1,7 @@ | |||
1 | LPM_REPRESENTATION=UNSIGNED | ||
2 | LPM_TYPE=LPM_COMPARE | ||
3 | LPM_WIDTH=23 | ||
4 | DEVICE_FAMILY="Cyclone II" | ||
5 | dataa | ||
6 | datab | ||
7 | alb | ||
diff --git a/FPGA/pwm/greybox_tmp/greybox_tmp/mgbt9.v b/FPGA/pwm/greybox_tmp/greybox_tmp/mgbt9.v new file mode 100644 index 0000000..90c1893 --- /dev/null +++ b/FPGA/pwm/greybox_tmp/greybox_tmp/mgbt9.v | |||
@@ -0,0 +1,52 @@ | |||
1 | //lpm_mux CBX_SINGLE_OUTPUT_FILE="ON" LPM_SIZE=4 LPM_TYPE="LPM_MUX" LPM_WIDTH=1 LPM_WIDTHS=2 data result sel | ||
2 | //VERSION_BEGIN 13.0 cbx_mgl 2013:06:12:18:04:42:SJ cbx_stratixii 2013:06:12:18:04:00:SJ cbx_util_mgl 2013:06:12:18:04:00:SJ VERSION_END | ||
3 | // synthesis VERILOG_INPUT_VERSION VERILOG_2001 | ||
4 | // altera message_off 10463 | ||
5 | |||
6 | |||
7 | |||
8 | // Copyright (C) 1991-2013 Altera Corporation | ||
9 | // Your use of Altera Corporation's design tools, logic functions | ||
10 | // and other software and tools, and its AMPP partner logic | ||
11 | // functions, and any output files from any of the foregoing | ||
12 | // (including device programming or simulation files), and any | ||
13 | // associated documentation or information are expressly subject | ||
14 | // to the terms and conditions of the Altera Program License | ||
15 | // Subscription Agreement, Altera MegaCore Function License | ||
16 | // Agreement, or other applicable license agreement, including, | ||
17 | // without limitation, that your use is for the sole purpose of | ||
18 | // programming logic devices manufactured by Altera and sold by | ||
19 | // Altera or its authorized distributors. Please refer to the | ||
20 | // applicable agreement for further details. | ||
21 | |||
22 | |||
23 | |||
24 | //synthesis_resources = lpm_mux 1 | ||
25 | //synopsys translate_off | ||
26 | `timescale 1 ps / 1 ps | ||
27 | //synopsys translate_on | ||
28 | module mgbt9 | ||
29 | ( | ||
30 | data, | ||
31 | result, | ||
32 | sel) /* synthesis synthesis_clearbox=1 */; | ||
33 | input [3:0] data; | ||
34 | output [0:0] result; | ||
35 | input [1:0] sel; | ||
36 | |||
37 | wire [0:0] wire_mgl_prim1_result; | ||
38 | |||
39 | lpm_mux mgl_prim1 | ||
40 | ( | ||
41 | .data(data), | ||
42 | .result(wire_mgl_prim1_result), | ||
43 | .sel(sel)); | ||
44 | defparam | ||
45 | mgl_prim1.lpm_size = 4, | ||
46 | mgl_prim1.lpm_type = "LPM_MUX", | ||
47 | mgl_prim1.lpm_width = 1, | ||
48 | mgl_prim1.lpm_widths = 2; | ||
49 | assign | ||
50 | result = wire_mgl_prim1_result; | ||
51 | endmodule //mgbt9 | ||
52 | //VALID FILE | ||
diff --git a/FPGA/pwm/greybox_tmp/greybox_tmp/mgtbb.v b/FPGA/pwm/greybox_tmp/greybox_tmp/mgtbb.v new file mode 100644 index 0000000..8fab5c3 --- /dev/null +++ b/FPGA/pwm/greybox_tmp/greybox_tmp/mgtbb.v | |||
@@ -0,0 +1,51 @@ | |||
1 | //lpm_compare CBX_SINGLE_OUTPUT_FILE="ON" LPM_REPRESENTATION="UNSIGNED" LPM_TYPE="LPM_COMPARE" LPM_WIDTH=23 alb dataa datab | ||
2 | //VERSION_BEGIN 13.0 cbx_mgl 2013:06:12:18:04:42:SJ cbx_stratixii 2013:06:12:18:04:00:SJ cbx_util_mgl 2013:06:12:18:04:00:SJ VERSION_END | ||
3 | // synthesis VERILOG_INPUT_VERSION VERILOG_2001 | ||
4 | // altera message_off 10463 | ||
5 | |||
6 | |||
7 | |||
8 | // Copyright (C) 1991-2013 Altera Corporation | ||
9 | // Your use of Altera Corporation's design tools, logic functions | ||
10 | // and other software and tools, and its AMPP partner logic | ||
11 | // functions, and any output files from any of the foregoing | ||
12 | // (including device programming or simulation files), and any | ||
13 | // associated documentation or information are expressly subject | ||
14 | // to the terms and conditions of the Altera Program License | ||
15 | // Subscription Agreement, Altera MegaCore Function License | ||
16 | // Agreement, or other applicable license agreement, including, | ||
17 | // without limitation, that your use is for the sole purpose of | ||
18 | // programming logic devices manufactured by Altera and sold by | ||
19 | // Altera or its authorized distributors. Please refer to the | ||
20 | // applicable agreement for further details. | ||
21 | |||
22 | |||
23 | |||
24 | //synthesis_resources = lpm_compare 1 | ||
25 | //synopsys translate_off | ||
26 | `timescale 1 ps / 1 ps | ||
27 | //synopsys translate_on | ||
28 | module mgtbb | ||
29 | ( | ||
30 | alb, | ||
31 | dataa, | ||
32 | datab) /* synthesis synthesis_clearbox=1 */; | ||
33 | output alb; | ||
34 | input [22:0] dataa; | ||
35 | input [22:0] datab; | ||
36 | |||
37 | wire wire_mgl_prim1_alb; | ||
38 | |||
39 | lpm_compare mgl_prim1 | ||
40 | ( | ||
41 | .alb(wire_mgl_prim1_alb), | ||
42 | .dataa(dataa), | ||
43 | .datab(datab)); | ||
44 | defparam | ||
45 | mgl_prim1.lpm_representation = "UNSIGNED", | ||
46 | mgl_prim1.lpm_type = "LPM_COMPARE", | ||
47 | mgl_prim1.lpm_width = 23; | ||
48 | assign | ||
49 | alb = wire_mgl_prim1_alb; | ||
50 | endmodule //mgtbb | ||
51 | //VALID FILE | ||
diff --git a/FPGA/pwm/lpm_compare0.bsf b/FPGA/pwm/lpm_compare0.bsf new file mode 100644 index 0000000..d31d901 --- /dev/null +++ b/FPGA/pwm/lpm_compare0.bsf | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | WARNING: Do NOT edit the input and output ports in this file in a text | ||
3 | editor if you plan to continue editing the block that represents it in | ||
4 | the Block Editor! File corruption is VERY likely to occur. | ||
5 | */ | ||
6 | /* | ||
7 | Copyright (C) 1991-2013 Altera Corporation | ||
8 | Your use of Altera Corporation's design tools, logic functions | ||
9 | and other software and tools, and its AMPP partner logic | ||
10 | functions, and any output files from any of the foregoing | ||
11 | (including device programming or simulation files), and any | ||
12 | associated documentation or information are expressly subject | ||
13 | to the terms and conditions of the Altera Program License | ||
14 | Subscription Agreement, Altera MegaCore Function License | ||
15 | Agreement, or other applicable license agreement, including, | ||
16 | without limitation, that your use is for the sole purpose of | ||
17 | programming logic devices manufactured by Altera and sold by | ||
18 | Altera or its authorized distributors. Please refer to the | ||
19 | applicable agreement for further details. | ||
20 | */ | ||
21 | (header "symbol" (version "1.2")) | ||
22 | (symbol | ||
23 | (rect 0 0 128 96) | ||
24 | (text "lpm_compare0" (rect 20 0 126 16)(font "Arial" (font_size 10))) | ||
25 | (text "inst" (rect 8 81 26 92)(font "Arial" )) | ||
26 | (port | ||
27 | (pt 0 48) | ||
28 | (input) | ||
29 | (text "dataa[22..0]" (rect 0 0 68 13)(font "Arial" (font_size 8))) | ||
30 | (text "dataa[22..0]" (rect 20 42 78 54)(font "Arial" (font_size 8))) | ||
31 | (line (pt 0 48)(pt 16 48)(line_width 3)) | ||
32 | ) | ||
33 | (port | ||
34 | (pt 0 64) | ||
35 | (input) | ||
36 | (text "datab[22..0]" (rect 0 0 68 13)(font "Arial" (font_size 8))) | ||
37 | (text "datab[22..0]" (rect 20 58 78 70)(font "Arial" (font_size 8))) | ||
38 | (line (pt 0 64)(pt 16 64)(line_width 3)) | ||
39 | ) | ||