48
Victor Miranda Fernandes Universidade Federal Da Paraíba www.vhdl.com.br

File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

  • Upload
    vodan

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

Page 1: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

Victor Miranda FernandesUniversidade Federal Da Paraíbawww.vhdl.com.br

Page 2: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

2

Page 3: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

3

File > New Project Wizard

Page 4: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

4

Next

Page 5: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

5

Diretório: \vhdlNome: exemplo

Page 6: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

6

Sim

Page 7: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

7

Next

Page 8: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

8

Finish

Page 9: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

9

Page 10: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

10

Page 11: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

11

File > New

Page 12: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

12

VHDL File

Page 13: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

13

Escreva o códigoEm VHDL

Page 14: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

14

MUX 4:1 em VHDLEntradas: i0, i1, i2 e i3Seleções: sel1 e sel2Saída: s0

É bom lembrar que onome da entidadetem que ser o mesmonome do projeto

Page 15: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

15

Agora vamos simular!

Page 16: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

16

Processing > Start Compilation

Page 17: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

17

Sim

Page 18: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

18

Salvar

Page 19: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

19

Espere a compilação e OK

Page 20: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

20

File > New

Page 21: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

21

Vector Waveform File

Page 22: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

22

2 clicks aquiPara abrir a pinagem

Page 23: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

23

OK

Page 24: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

24

Pins: All

Page 25: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

25

Page 26: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

26

Page 27: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

27

Page 28: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

28

CRLT + SHIFT + ESPAÇOPARA DIMINUIR O ZOOM

Page 29: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

29

Page 30: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

30

Selecione as entradasClick com direito > Grouping > Group

Page 31: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

31

Group Name: entrada

Page 32: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

32

Selecione o grupo entradaClick com direito > Value > Count Value

Para gerar um contador binário no grupo

Page 33: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

33

OK

Page 34: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

34

Veja a contagem!

Page 35: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

35

Abra o grupo para ver em binário

Page 36: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

36

Selecione as seleçõesClick com direito > Grouping > Group

Page 37: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

37

Group Name: select

Page 38: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

38

Selecione o grupo selectClick com direito > Value > Count Value

Para gerar um contador binário no grupo

Page 39: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

39

OK

Page 40: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

40

Agora vamos simular com as entradas e

Seleções que colocamos!

E ver a saída S0

Page 41: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

41

Processing > Simulator Tool

Page 42: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

42

Simulation mode: Functional

Depois click em:Generate Functional Simulation Netlist

Page 43: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

43

Espere a simulação e OK

Page 44: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

44

Agora, Start

Page 45: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

45

OK e Open

Page 46: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

46

Sim

Page 47: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

47

Olhe a saída S0!E confira se é o esperado.

Page 48: File > New Project Wizardvhdl.com.br/quartus/projeto-simulacao-quartus2.pdf · 14 MUX 4:1 em VHDL Entradas: i0, i1, i2 e i3 Seleções: sel1 e sel2 Saída: s0 É bom lembrar que o

48

Fim!