Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Leandro Ariel Otouzbirian
FPGA
Commits
7cd96cf3
Commit
7cd96cf3
authored
1 year ago
by
Ignacio Losiggio
Browse files
Options
Download
Email Patches
Plain Diff
fix en la cancioncita
parent
dbc64046
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
ruidito/Makefile
ruidito/Makefile
+1
-1
ruidito/square_wave_gen_tb.vhd
ruidito/square_wave_gen_tb.vhd
+14
-7
No files found.
ruidito/Makefile
View file @
7cd96cf3
...
...
@@ -7,7 +7,7 @@ TOP_ENTITY = square_wave_gen_tb
ruidito.vcd
:
$(FILES)
ghdl
-a
$(FILES)
# Analiza
ghdl
-e
$(TOP_ENTITY)
# Elabora
ghdl
-r
$(TOP_ENTITY)
--stop-time
=
7
000ms
--vcd
=
$@
# Corre
ghdl
-r
$(TOP_ENTITY)
--stop-time
=
20
000ms
--vcd
=
$@
# Corre
out.wav
:
wav ruidito.vcd
./wav ruidito.vcd sample[15:0]
...
...
This diff is collapsed.
Click to expand it.
ruidito/square_wave_gen_tb.vhd
View file @
7cd96cf3
...
...
@@ -158,18 +158,25 @@ begin
-- C5 C5
proc_do_something
(
523
,
100
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
523
,
100
ms
,
freq
,
note_on
,
note_off
);
-- C5 C5
D5 D5
-- C5 C5
B4 B4
proc_do_something
(
523
,
100
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
523
,
150
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
587
,
150
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
587
,
150
ms
,
freq
,
note_on
,
note_off
);
--
D5 D5
proc_do_something
(
587
,
100
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
587
,
100
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
494
,
150
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
494
,
150
ms
,
freq
,
note_on
,
note_off
);
--
B4 B4
proc_do_something
(
494
,
100
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
494
,
100
ms
,
freq
,
note_on
,
note_off
);
-- C5 B4 A4
proc_do_something
(
523
,
100
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
494
,
150
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
440
,
300
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
440
,
100
ms
,
freq
,
note_on
,
note_off
);
wait
for
50
ms
;
proc_do_something
(
440
,
100
ms
,
freq
,
note_on
,
note_off
);
wait
for
10
ms
;
proc_do_something
(
440
,
80
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
440
,
80
ms
,
freq
,
note_on
,
note_off
);
proc_do_something
(
440
,
500
ms
,
freq
,
note_on
,
note_off
);
wait
for
1000
ms
;
end
process
;
STIM_PROC
:
process
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment