mirror of
https://github.com/trcwm/Speech256.git
synced 2025-06-07 16:48:32 +02:00
Updated license information in each verilog source file.
This commit is contained in:
parent
198c3c822a
commit
eab24a0896
@ -1,8 +1,23 @@
|
||||
// 7-segment display driver for DE0 board
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//
|
||||
// 7-segment display driver for DE0 board
|
||||
|
||||
|
||||
module segmentdisplay (
|
||||
clk,
|
||||
|
@ -1,9 +1,22 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// Speech256 DE0 board top level
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
|
||||
//`define USE_SDDAC
|
||||
`define YOUTUBE_MESSAGE
|
||||
|
@ -1,10 +1,23 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//
|
||||
// Speech256 controller / sequencer
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
//
|
||||
|
||||
module CONTROLLER (
|
||||
clk, // global Speech256 clock
|
||||
|
@ -1,9 +1,22 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// Controller testbench
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
|
||||
module CONTROLLER_TB;
|
||||
reg clk, rst_an;
|
||||
|
@ -1,10 +1,24 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//
|
||||
// 8-bit sign-magnitude to 10-bit sign-magnitude
|
||||
// conversion block
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
//
|
||||
// C1: x*8
|
||||
// C2: 301 + (x-38)*4 = 301 - 152 + x*4 = 149 + x*4
|
||||
|
@ -1,9 +1,22 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// XLAT testbench
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
|
||||
module XLAT_TB;
|
||||
reg [7:0] c8_in;
|
||||
|
@ -1,10 +1,23 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// 12th order all-pole filter with
|
||||
// internal coefficient RAM
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
|
||||
module FILTER (
|
||||
clk,
|
||||
|
@ -1,9 +1,23 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// FILTER testbench
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
|
||||
|
||||
module FILTER_TB;
|
||||
reg clk, rst_an, start, coef_load, check_finish, clear_states;
|
||||
|
@ -1,11 +1,24 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//
|
||||
// Very simple, i.e. 8-bit non noise-shaping pulse-width modulation (PWM) DAC.
|
||||
// The DAC has a pull interface.
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
//
|
||||
// For a 10 kHz output rate, the clock rate should be 2.560 MHz
|
||||
//
|
||||
|
||||
|
@ -1,9 +1,23 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//
|
||||
// PWMDAC testbench
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
|
||||
module PWMDAC_TB;
|
||||
reg clk, rst_an;
|
||||
|
@ -1,13 +1,26 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//
|
||||
// Second-order sigma-delta DAC
|
||||
// The DAC has a pull interface.
|
||||
//
|
||||
// Number of input bits used: 12
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
//
|
||||
// Designed for a clock rate of 2.5 MHz
|
||||
//
|
||||
|
||||
|
@ -1,9 +1,23 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//
|
||||
// PWMDAC testbench
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
|
||||
module SD2DAC_TB;
|
||||
reg clk, rst_an;
|
||||
|
@ -1,3 +1,21 @@
|
||||
%// SPEECH 256
|
||||
%// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
%// http://www.moseleyinstruments.com
|
||||
%//
|
||||
%// This program is free software: you can redistribute it and/or modify
|
||||
%// it under the terms of the GNU General Public License as published by
|
||||
%// the Free Software Foundation, either version 3 of the License, or
|
||||
%// (at your option) any later version.
|
||||
%//
|
||||
%// This program is distributed in the hope that it will be useful,
|
||||
%// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
%// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
%// GNU General Public License for more details.
|
||||
%//
|
||||
%// You should have received a copy of the GNU General Public License
|
||||
%// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
%//
|
||||
%//
|
||||
%
|
||||
% Show testbench results for sd2dac
|
||||
%
|
||||
|
@ -1,10 +1,22 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// Source part of speech synth
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
//
|
||||
|
||||
module SOURCE (
|
||||
clk,
|
||||
|
@ -1,9 +1,22 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// PWMDAC testbench
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
|
||||
module SOURCE_TB;
|
||||
reg clk, rst_an, strobe;
|
||||
|
@ -1,10 +1,22 @@
|
||||
//
|
||||
// Speecht256 top level
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// Speech256 top level
|
||||
//
|
||||
|
||||
module SPEECH256_TOP (
|
||||
clk, // global Speech256 clock (256*10kHz)
|
||||
|
@ -1,9 +1,23 @@
|
||||
//
|
||||
// PWMDAC testbench
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//
|
||||
// Speech256 top level testbench
|
||||
//
|
||||
|
||||
module SPEECH256_TOP_TB;
|
||||
reg clk, rst_an;
|
||||
|
@ -1,11 +1,22 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// 16bit x 10bit signed serial/parallel multiplier.
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
module SPMUL (
|
||||
clk,
|
||||
|
@ -1,9 +1,22 @@
|
||||
// SPEECH 256
|
||||
// Copyright (C) 2017 Niels Moseley / Moseley Instruments
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// SPMUL testbench
|
||||
//
|
||||
// Niels Moseley - Moseley Instruments 2017
|
||||
// http://www.moseleyinstruments.com
|
||||
//
|
||||
|
||||
module SPMUL_TB;
|
||||
reg clk, rst_an, start;
|
||||
|
Loading…
x
Reference in New Issue
Block a user