Содержание
- 2. Стандартные этапы проектирования устройства на FPGA Ввод описания проекта Моделирование, преобразование пользовательского описания в компоненты и
- 3. Verilog tutorial ( ) Contents Етапы проектирования Модули Объявление Создание экземпляров Подключение портов Test-bench файлы Adder
- 4. Verilog tutorial ( ) Объявление модуля Модуль – базовая единица проекта. Модуль должен быть задекларирован (объявлен).
- 5. Verilog tutorial ( ) Создание экземпляра модуля module ModG (AA, BB, CC); input AA; inout [7:0]
- 6. Соединение портов Позиционный принцип – сопоставление портов в объявлении модуля и в его экземпляре: module ModF
- 7. Типы данных Типы данных Verilog Net - соединение (связь, цепь) wire – простой провод wand, wor
- 8. Introduction to Verilog Basic ( ) Nets (2/2) wire Y; // declaration assign Y = A
- 9. Verilog значения Verilog tutorial ( ) Integer constants Decimal (123, 4’d15) Hexadecimal (‘h12F, 4’haBcD) Octal (‘o763,
- 10. Verilog tutorial ( ) Правила соединения портов Входной порт модуля должен иметь тип соединение (связь) Выходной
- 11. Четырехзначный алфавит Verylog Символ «?» так же используется для альтернативного представления «Z» состояния
- 12. Verilog tutorial ( ) Test-bench файлы «Тest-bench» это специальный уровень кода, который создает пользовательские входные параметры
- 13. Verilog tutorial ( ) Разработка структурной схемы сумматора Сумматор цифровая схема которая выполняет сложение чисел Одноразрядный
- 14. Структура директории adder design sim syn sim.gate Папка с исходными кодами проекта Папка с результатами симуляции
- 15. Проект “adder” - сумматор Содержимое папки ‘design’ top.v full_adder.v half_adder_gate.v half_adder_rtl.v stimulus.v full_adder_ref.v checker.v
- 16. full_adder reset clk cin in1 in2 sum cout A B S C half_adder module half_adder (S,
- 17. Verilog tutorial ( ) Модуль full_adder (1/3) module full_adder(sum,cout,in1,in2,cin,clk,resetb); output sum, cout; /выходные сигналы input in1,
- 18. Verilog tutorial ( ) Full adder (2/3) module full_adder(sum,cout,in1,in2,cin,clk,resetb); output sum, cout; input in1, in2, cin;
- 19. Verilog tutorial ( ) Full adder (3/3) module full_adder(sum,cout,in1,in2,cin,clk,resetb); output sum, cout; input in1, in2, cin;
- 20. Структурная модель полусумматора (gate level) module half_adder_gate (S, C, A, B); output S, C; input A,
- 21. Поведенческое описание объектов Полусумматор. Процессная форма описания поведения (Behavior model) module half_adder_beh1 (S, C, A, B);
- 22. Поведенческое описание объектов Полусумматор. Потоковое описание архитектуры (Data-flow model (RTL-модель)) (RTL, Register Transfer Level, Уровень регистровых
- 23. Модели мультиплексора (Behavior model) always @ (sel or a or b or c or d) if
- 24. Test-bench: stimulus module stimulus(out1,out2,out3,clk,resetb); output out1,out2,out3; input clk,resetb; reg out1,out2,out3; initial begin out1 / ожидание сброса
- 25. Verilog tutorial ( ) Test-bench: full_adder_ref module full_adder_ref(sum,cout,in1,in2,cin,clk,resetb); output sum, cout; input in1, in2, cin; input
- 26. Verilog tutorial ( ) Test-bench: checker module checker(in1,in2,cin,sum,cout,sumr,coutr,clk,resetb); input in1,in2,cin,sum,cout,sumr,coutr,clk,resetb; always @ (clk) begin if ({cout,sum}=={coutr,sumr})
- 27. Verilog tutorial ( ) Test-bench: top module top; wire in1, in2, cin; wire sum, cout, sumr,
- 28. Verilog tutorial ( ) Contents Design flow overview Hello world GUI based Command based Module Declaration
- 29. Verilog tutorial ( ) Contents Adder example What is adder Directory structure Example design Simulation Synthesis
- 30. Результаты моделирования
- 32. Verilog tutorial ( ) Моделирование с использованием ModelSim GUI Invoking ModelSim form start menu Create new
- 33. Verilog tutorial ( ) Invoking ModelSim from start menu
- 34. Verilog tutorial ( ) File->New->Project
- 35. Verilog tutorial ( ) Specify project name and location
- 36. Verilog tutorial ( ) File->Add to Project->Existing File
- 37. Verilog tutorial ( ) Add files
- 38. Verilog tutorial ( ) After adding files
- 39. Verilog tutorial ( ) Compile->Compile All
- 40. Verilog tutorial ( ) After compilation
- 41. Verilog tutorial ( ) View->Debug Windows->Wave
- 42. Verilog tutorial ( ) After adding wave window
- 43. Verilog tutorial ( ) Select Library tab
- 44. Verilog tutorial ( ) Run simulation with top-level
- 45. Verilog tutorial ( ) After simulation
- 46. Verilog tutorial ( ) Selecting signals to be view
- 47. Verilog tutorial ( ) After selection
- 48. Verilog tutorial ( ) Run-All
- 49. Verilog tutorial ( ) Create a new project Invoke ModelSim File ? New ? Project Specify
- 50. Verilog tutorial ( ) Add existing file Add the Verilog design file
- 51. Verilog tutorial ( ) Compile
- 52. Verilog tutorial ( ) Compile
- 53. Verilog tutorial ( ) Compile
- 54. Verilog tutorial ( ) Simulation
- 55. Verilog tutorial ( ) Quit There should be ‘hello.mpf’, which is ModelSim project file.
- 57. Скачать презентацию