디지키

페이지 정보

profile_image
작성자시갈 조회 187회 작성일 2021-11-30 10:49:29 댓글 0

본문

Introduction to FPGA Part 4 - Clocks and Procedural Assignments | Digi-Key Electronics

A field-programmable gate array (FPGA) is an integrated circuit (IC) that lets you implement custom digital circuits. You can use an FPGA to create optimized digital logic for things like digital signal processing (DSP), machine learning, and cryptocurrency mining. Because of the FPGA’s flexibility, you can often implement entire processors using its digital logic. You can find FPGAs in consumer electronics, satellites, and in servers used to perform specialized calculations.

In this series, we will see how an FPGA works and demonstrate how to create custom digital logic using the Verilog hardware description language (HDL).

Previously, we showed how to use continuous assignment statements to create custom digital circuits with logic gates using Verilog (
). In this episode, we demonstrate how to use procedural assignments to create sequential hardware logic.

The solution to the challenge at the end of the episode can be found here: https://www.digikey.com/en/maker/projects/introduction-to-fpga-part-4-clocks-and-procedural-assignments/356e12284daf48b5bd9b80af8a6ac5b8

All code examples and solutions for this series can be found here: https://github.com/ShawnHymel/introduction-to-fpga

We start by showing how the D flip-flop in an FPGA logic cell can be used to store a 1-bit value for one or (potentially) more clock cycles. Multiple D flip-flops can be combined with combinational logic gates to create hardware circuits that operate sequentially. We can control this sequential logic through Verilog blocks known as “procedural assignment statements.”

Next, we demonstrate a procedural assignment statement by constructing a simple 4-bit counter inside of an “always block.” Each time a button is pressed, the value increments by 1. The counter value is shown on the LEDs (in binary).

Note that you will likely experience button bounce that we have not accounted for in the demonstration. As a result, the counter will likely skip values each button press. You would need to implement button debounce circuitry (either in hardware or in HDL) to correct for this behavior. We will cover button debounce in a future episode.

Your challenge is to create a clock divider for the onboard 12 MHz oscillator (assuming you are using the iCEstick, the 12 MHz oscillator is connected to pin 21). The clock should be divided to 1 Hz, and this new clock signal should run the counter shown in the video. The new counter should increment on its own once per second.

Product Links:
https://www.digikey.com/en/products/detail/lattice-semiconductor-corporation/ICE40HX1K-STICK-EVN/4289604

Related Videos:
https://www.youtube.com/watch?v=z8Oldd-nrfs
https://www.youtube.com/watch?v=5kNXX67mchE
https://www.youtube.com/watch?v=iwcxLQ6AB88

Related Project Links:
https://www.digikey.com/en/maker/projects/introduction-to-fpga-part-4-clocks-and-procedural-assignments/356e12284daf48b5bd9b80af8a6ac5b8

Related Articles:
https://www.digikey.com/en/pdf/r/renesas-electronics-america/powering-fpga-applications
https://www.digikey.com/en/videos/d/dsp/edge-machine-deep-learning-on-fpga

Learn more:
Maker.io - https://www.digikey.com/en/maker
Digi-Key’s Blog – TheCircuit https://www.digikey.com/en/blog
Connect with Digi-Key on Facebook https://www.facebook.com/digikey.electronics/
And follow us on Twitter https://twitter.com/digikey
Iwbnwif Yiw : Perfect timing (no pun intended) - finished Parts 1 - 3 yesterday and hoping the next part would come out soon.
Anders Nielsen : Perfect amount of detail : )
Roshan DSouza : Very interesting, can't wait for next video! Big thanks!!
hraharahra : Awesome series!
CrimsonTide001 : What would happen if, instead of a single always block, we had two always blocks, one for rst and the second for clk? Was there a particular reason they were combined into a single always block apart from convenience?

Driving Meat Crazy [Maker Update] | Maker.io

This week on Maker Update, meals on wheels, Prusa goes big, Alexa Wheatley, a PC tower tavern, and fortune telling with a quantum computer.

This week on Maker Update, meals on wheels, Prusa goes big, Alexa Wheatley, a PC tower tavern, and fortune telling with a quantum computer.

Get Maker Update as a weekly email (w/bonus links!)
http://eepurl.com/cCJF21

++Show Notes [Maker Update Ep.260]++

-=Project of the Week=-

How to Transform a Piano into a BBQ Car by Handy Geng


-=News=-

Prusa XL
https://blog.prusaprinters.org/original-prusa-xl-first-look_58312/

-=More Projects=-

Wheatley: Personal Assistant by Steve Turner
https://create.arduino.cc/projecthub/MrRoboto19/wheatley-personal-assistant-d1b278

NerdForge Builds a PC Inside of a Fantasy Tavern Model by Martina
https://blog.adafruit.com/2021/11/18/nerdforge-builds-a-pc-inside-of-a-fantasy-tavern-model/

Quantum Death Machine By Görkem
https://www.instructables.com/-Quantum-Death-Machine-/

-=Tips \u0026 Tools=-

Dead Spray Paint Cans - Empty them the Easy way by Deek Diedricksen


Exotic Round Displays and How to Use Them by Mr. Volt
https://www.youtube.com/watch?v=eJBDXjI5Zu4

-=Digi-Key Spotlight=-

How to Use Logic Level Shifters


--------
#makerupdate

Maker Update is a weekly video series covering news, projects, tips, and events that interest the maker and DIY community.

Find more online:
Blog: http://makerprojectlab.com
Facebook: http://fb.me/makerprojectlab
Instagram: https://www.instagram.com/makerprojectlab/

Send snail mail to:
Maker Project Lab
PO Box 1016
Alameda, CA 94501
usafa1987 : That is.... the most amazing computer case I've ever seen. I'm flabbergasted. Wow! Thanks for showing it off, Donald!
Constantin : Wow! The projects and tips this week are incredible! Happy Thanksgiving Donald!
Kieran Meadows : Happy thanksgiving guys, excellent projects as always! Absolutley excellent :D
Geoffrey Griffiths : I just finished building a logic level shifter out of discrete components, because I had no choice. It is great to know there is solution, thanks for the updates they are very informative.
josh mcgee : yay, it's up! I was worried I was going to have to miss my weekly fix of Maker Update ... and I will next week

particularly enjoy the computer case, always love a container for things that isn't just a container

Digi-Key Presents: Supply Chain Transformed - The Product Journey

In this series, presented by Digi-Key Electronics, we explore the latest in digital transformation across the supply chain, discovering how leading suppliers are introducing new forms of technology, visibility, and asset monitoring, into the product life cycle and beyond.

Demand for electronics across industries is at an all-time high. With global component shortages impacting supply, efficient transportation and tracking of components on the move has become a top priority.

How can technology ensure that precious components are not damaged, lost, or delayed in their journey across the globe? In this episode, we follow the product’s journey as it travels across the supply chain.
Shiftedphase : Please just help us know when we can buy our favourite ICs again. :)
TweeBs : At 2:42 this does not look like a Digi-key warehouse. Is IKEA...
Robbie Paul : Interesting how supply chain is now a dinner party topic
Miguel Torres : Experts in logistics in 3,2,1...

... 

#디지키

댓글목록

등록된 댓글이 없습니다.

전체 6,490건 1 페이지
게시물 검색
Copyright © www.kpham.co.kr. All rights reserved.  Contact : help@oxmail.xyz