-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.ps1
More file actions
55 lines (41 loc) · 859 Bytes
/
debug.ps1
File metadata and controls
55 lines (41 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Executar com .\banco_ula.ps1 no terminal
# ULA
ghdl -a ula.vhd
ghdl -e ula
# RAM
ghdl -a ram.vhd
ghdl -e ram
# Registrador 16 bits
ghdl -a reg_16bits.vhd
ghdl -e reg_16bits
# Banco de registradores
ghdl -a reg_bank.vhd
ghdl -e reg_bank
# PC
ghdl -a pc.vhd
ghdl -e pc
# ROM
ghdl -a rom.vhd
ghdl -e rom
# Máquina de estados
ghdl -a state_machine.vhd
ghdl -e state_machine
# Registrador de instruções
ghdl -a reg_instr.vhd
ghdl -e reg_instr
# Registrador de flags
ghdl -a reg_flags.vhd
ghdl -e reg_flags
# Unidade de Controle
ghdl -a ctrl_unit.vhd
ghdl -e ctrl_unit
# Processador
ghdl -a processor.vhd
ghdl -e processor
# Testbench do processador
ghdl -a processor_tb.vhd
ghdl -e processor_tb
# Simulação do processador
ghdl -r processor_tb --wave=processor_tb.ghw
# Visualização no simulador
gtkwave processor_tb.ghw -a processor_tb.gtkw