Phil Does Tech
Phil Does Tech
  • 5
  • 54 240
#3 Ben Eater's 8 Bit Computer (SAP-1) in an FPGA: TCL
This is the third video in a series of videos on implementing Ben Eater's 8 Bit Computer in an FPGA.
Ben Eater's 8 Bit Computer is actually based on a computer called the SAP-1 from the book "Digital Computer Electronics" by Paul Malvino and Jerald Brown.
In this third video, I show how you can use Tcl (Tool Control Language) through Quartus Prime or Xilinx Vivado to interface with the 8-bit computer design.
Quartus Prime also supports Tk, so you can write your own GUI-based tools to interface with your design.
Once we have completed implementing the SAP-1/Ben Eater 8-bit computer architecture, we will expand this design with more memory, more CPU instructions, and we will even be creating an assembler for our expanded computer!
I hope this video will be educational and entertaining and maybe you will learn some Verilog and FPGA design along the way via a practical example.
The second video in this series can be found here:czcams.com/video/d9QEUMxw6O0/video.html
And make sure you subscribe to my channel!
Stuff I use and recommend:
Solderless Breadboard Kit: amzn.to/3wjR2SR
Breadboard Jumper Wires: amzn.to/3wfGmF7
Jumper Wire Kit: amzn.to/3GQIBDE
Vero/Strip Board: amzn.to/3wgv3wn
Double-Sided PCB: amzn.to/3CPzaBZ
Hakko Soldering Station: amzn.to/3kavUdf
Side Cutter: amzn.to/2ZW3RHB
Rigol SD1054Z Oscilloscope: amzn.to/3o5P98T
Rigol DG4062 Arbitrary Waveform Generator: amzn.to/2ZUZLz4
Heat Shrink Tubing for 18650 cells: amzn.to/3nXWfw9
Red 18650 Insulator Rings: amzn.to/3bNiM9f
Flush Cut Saw: amzn.to/2ZWGJZw
Kurt Milling Vice: amzn.to/3q81Ken
Bench Vise: amzn.to/3EN5dD8
Zanflare C4 Battery Charger: amzn.to/3qprovp
Side Cutters: amzn.to/3mNNmGb
Kester Solder: amzn.to/3kbOv8K
Kester Flux Pen: amzn.to/3o0PAkJ
Kester Soldering Flux: amzn.to/3bMyzVU
Hakko Soldering Station: amzn.to/3ka27B4
Hot Air Desoldering Station: amzn.to/3o0PTfn
Heat Gun: amzn.to/3q9RWjP
Needle Nose Plier Set: amzn.to/3q5hpLs
Get An Amazon Prime Business Membership: amzn.to/3B8euov
Check out Audible Books: amzn.to/3yYcGfP
Amazon Prime Music: amzn.to/2VEKlNd
Check out my Amazon store: www.amazon.com/shop/philipacovington
DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting my channel so I can continue to provide you with free content!
zhlédnutí: 2 601

Video

#2 Ben Eater's 8 Bit Computer (SAP-1) in an FPGA: The ALU
zhlédnutí 3,9KPřed 2 lety
This is the second video in a series of videos on implementing Ben Eater's 8 Bit Computer in an FPGA. Ben Eater's 8 Bit Computer is actually based on a computer called the SAP-1 from the book "Digital Computer Electronics" by Paul Malvino and Jerald Brown. In this second video, we will implement the Arithmetic Logic Unit or ALU module in a hardware definition language called Verilog. We can use...
#1 Ben Eater's 8 Bit Computer (SAP-1) in an FPGA: The Registers
zhlédnutí 17KPřed 2 lety
This is the first video in a series of videos on implementing Ben Eater's 8 Bit Computer in an FPGA. Ben Eater's 8 Bit Computer is actually based on a computer called the SAP-1 from the book "Digital Computer Electronics" by Paul Malvino and Jerald Brown. I wanted to do a series of videos that present a practical introduction to FPGAs and I thought it might be interesting to build Ben Eater’s 8...
A Small General Purpose AF Power Amplifier
zhlédnutí 30KPřed 2 lety
I needed an audio amplifier (AF amp) for a regenerative receiver that I am building. In 2015, Texas Instruments announced that they would discontinue the LM386 and the LM380. There are some alternate manufacturers, such as New Japan Radio Company and Unisonic Technologies, but New Japan Radio’s NJM386 is also marked as obsolete now. The LM386 was one of the most common amps used in DIY guitar p...
Opening Arris Modem Batteries : Easy 18650s!
zhlédnutí 741Před 2 lety
This is the easiest and safest way I have found to open these Arris modem batteries to recover the 18650 cells inside. I also show how to use heat shrink and positive terminal insulator rings to re-wrap the cells. The highest capacity cell was 2216 mAh. The modem batteries were purchased from JAG35.com. Items used in this video: Heat Shrink Tubing for 18650 cells: amzn.to/3nXWfw9 Red 18650 Insu...

Komentáře

  • @L2.Lagrange
    @L2.Lagrange Před 2 měsíci

    Very interesting project

  • @The411
    @The411 Před 3 měsíci

    I really like the look of that construction. what pcb material did you use for the positive bus bar? It looks a lot thinner than normal clad pcb.

  • @timmorgan3673
    @timmorgan3673 Před 3 měsíci

    Most interesting - Thanks for putting it "out there" :)

  • @dazealex
    @dazealex Před 7 měsíci

    I bought nandland simplified FPGA. He has tutorials on his channel too. Haven't gotten into it yet because there I am on a Mac and there is no version of Ice. I applied for a personal license and havebn't gotten one yet in email -- maybe holidays.

  • @quasarpulsarspark
    @quasarpulsarspark Před 8 měsíci

    Excellent video !!! Thank you for your work. It help really helped me understand better Verilog HDL and how to make a CPU.

  • @drivers99
    @drivers99 Před 8 měsíci

    I built all of Ben Eater’s projects, and I’d love to learn an FPGA that doesn’t use Vivado so I’m going to love this. I even bought a copy of that Malvino book. Oh it appears you don’t answer questions and/or share the files you said you’d share, unfortunately. However! It appears we can just take screenshots after all.

  • @Ray-ej3jb
    @Ray-ej3jb Před 10 měsíci

    Sweet Jesus! Talk about jumping in at the deep end!!! Slow down and explain things - certainly not beginner friendly

    • @skunkwerx9674
      @skunkwerx9674 Před 6 dny

      This isn’t for beginners …. Do first year CS undergrads build CPUs from scratch in HDL? I’ll give you a hint. No.

  • @ahirvasudev5343
    @ahirvasudev5343 Před 10 měsíci

    Very nice explanation and very usefully and thanks for serving community

  • @singhpk99
    @singhpk99 Před 11 měsíci

    tda2822M is used very often has 2 channels which can be bridged. If you want to do discrete transistor 8050 8550 is a great pair. also used a thermally compensated bias with a pot and a sense transistor. 3-5 ma bias is enough. Opamp is not needed at all. just 1 single transistor can drive it . May want to bootstrap load resistor for driver transistor.

  • @user-nz8rv8ft5q
    @user-nz8rv8ft5q Před 11 měsíci

    sorry for a stupid question, but what is the purpose of R10?

    • @MikeinSoCal
      @MikeinSoCal Před 9 měsíci

      R10 is in the circuit to provide a load on the output transistors at high frequencies. The reactance of C4 is high at audio frequencies, which essentially takes R10 out of the circuit. But at much higher frequencies, the reactance of C4 is reduced and R10 becomes an increasingly heavy load on the output. This helps prevent high frequency oscillation.

  • @bitshuffler
    @bitshuffler Před rokem

    Fantastic! I've wanted to do this exact project t teach myself verilog. I am super limited with switches and indicators on my TinyFPGA Bx lattice board. Does anyone know if there's an equivalent to the in system sources and probes tool for the Ice storm tool chain? I'm using Ice studio. Can I use a tool from outside this toolchain?

  • @mustafaaljshamee6593

    Hi there, I got an error at statement of 171 of " assign w_bus = (a_enable) ? SW[7:0] : 8'bZZZZZZZZ; " the problem was w_bus is assigning on multiple therefore I've make it as previous, in which change a_enable with a_latch, my question is that correct please ???

  • @mustafaaljshamee6593

    The videos was very pleasant and I'm very enjoyed with you; please complete the SAP design to the end, and continue implementation of your 8-bit computer however we still waiting the upgrading to 16-bit computer, thanks in advance for your explain and interpretation . Kindly Regards Aljshamee

  • @alexanderquilty5705

    I really hope you continue the series!

  • @cirobermudez
    @cirobermudez Před rokem

    Excellent video, excellent explanation, I loved the way you explain how to program in verilog

  • @ctbram0627
    @ctbram0627 Před rokem

    You don't share your files so, although I am happy for you that you can do this, I would rather learn how and be able to follow along or buy a kit or something. As is, this is just a waste of my time watching someone else do what I would like to but cannot because I am not given the source.

  • @user-rq9po2zv4k
    @user-rq9po2zv4k Před rokem

    Це є великий клас

  • @Chris-hi2hn
    @Chris-hi2hn Před rokem

    Using in and out ports does that result in using different resources in the fpga? Tri-state buffers for example. And are these limited in availability

  • @Chris-hi2hn
    @Chris-hi2hn Před rokem

    It looks like you're calling these registers latches. what differentiates a latch from a flip flop?

  • @wolfgangbischoff1826

    cool

  • @m1geo
    @m1geo Před rokem

    Another 3 months from the last, and 10 months from the first, I really do hope this series continues.

  • @andrewstarks9433
    @andrewstarks9433 Před rokem

    Very nice video. You go super duper fast, especially for someone with 0.0 knowledge of FPGAs. Not a complaint, just feedback.

  • @ctbram0627
    @ctbram0627 Před rokem

    You mentioned you would make your verilog code available but I do not see any link. Could I please get a copy? I am trying to follow along and have a de2-70 so the code should be easily refactored. Possibly putting the quartus verilog files on a github site?

  • @ctbram0627
    @ctbram0627 Před rokem

    Looking forward to following this. I have a de2-70 and a couple other fpga dev boards and want to get back into hdl programming. Can you please tell me the verilog extension you are using in vs code? If you also program in vhdl and could suggest a code extension for that it would be appreciated. Thanks

  • @Allenw154
    @Allenw154 Před rokem

    For those opening these or the larger 2x2 version, there are really good tools for opening them. Two groove pliers, opened wide, and clamped near the bottom, will crack them open very easily. You can use a small pry bar flat curved end to pop them out of the case and I've also used an arrow staple puller. You can assembly line this job and achieve very large volume much quicker. I still hate the process of remove the spot welded strips. Flush cutters are the best so far, but it still sucks.

  • @MishaSvoiski
    @MishaSvoiski Před rokem

    I think R6 and C2 are redundant. The output of the first stage is at the correct DC bias to connect directly to the second stage.

  • @m1geo
    @m1geo Před rokem

    Back 6 months later... Hopeful that there would be more? 😢

    • @jdmaze1
      @jdmaze1 Před rokem

      Yes, I am also looking forward to a completion of this series. I hope that Phil still does tech.... :)

    • @m1geo
      @m1geo Před rokem

      @@jdmaze1 alas not! ☹️

  •  Před rokem

    I didn't know we got that kind of command line access in Vivado, thanks!

  • @elamericano
    @elamericano Před rokem

    Tda2822. 8 pins IC. 2channel 2x1watt or. 1x3watt. Work from 3 to 18 volt. Cost. 3 US dollar. ..

  • @wlan04wlan04
    @wlan04wlan04 Před rokem

    Would it be possible to release the Quartus project files at GitHub or somewhere so that people can download and study it?

  • @goofyrulez7914
    @goofyrulez7914 Před rokem

    I remember using a 741 as a simple amp some 50 years ago.

    • @user-rq9po2zv4k
      @user-rq9po2zv4k Před rokem

      Привітання,як вам гарно жилося, років 50 назад у нас не було такого для дітей 10-15 років,бо не було такого різноманіття у радіо деталях, дякую вам,але я всерівно мав успіх

    • @edgeeffect
      @edgeeffect Před 8 měsíci

      Back in the early 1980s the 741 was my first IC. I remember studying it's schematic and trying to work out how they got all those components into such a tiny plastic box.

    • @goofyrulez7914
      @goofyrulez7914 Před 8 měsíci

      @@user-rq9po2zv4k- Yes, I had electronics as a kid but I was very poor and had to save up to buy anything so it was all very precious to me.

  • @goofyrulez7914
    @goofyrulez7914 Před rokem

    Very interesting video. Thank you. (I just subscribed.)

  • @danny_racho
    @danny_racho Před rokem

    Hey! I am crazy interested in this and I got myself an Altera board to follow up. Sadly I noticed you haven't uploaded in a long time, so I hope you would continue with this series, as soon as you get the chance again! I am an Elec. Engineer and all about circuitry, MCUs and now thanks to you also FPGAs!

  • @acestudioscouk-Ace-G0ACE

    Thanks for the video, it didn't occur to me that the ubiquitous 386 would be put out to grass but it happens to us all in the end. Newbie question, what would be the nearest drop in replacement/alternative when a schematic calls for an LM 386?

  • @CornelisVermazen
    @CornelisVermazen Před 2 lety

    Hi Phil, very good instructive video's, when are the next video's coming ?.

    • @m1geo
      @m1geo Před 2 lety

      Looks like never? But I home I am wrong! 😑

  • @FoodCetera
    @FoodCetera Před 2 lety

    awesome content!! please, keep it coming!!

  • @jogreeen
    @jogreeen Před 2 lety

    thanks

  • @GrabbsRacing
    @GrabbsRacing Před 2 lety

    Awesome videos! Thanks for posting these. I can't wait to see the rest, like naikrovek said, super dense stuff, I watched the first one about 5-6 times following along with a go-board and de0-nano. Probably gonna watch the part where you dive into the ALU on this one about 10 times lol Thanks again!

  • @m1geo
    @m1geo Před 2 lety

    Are any more of these coming? I really hope so!

  • @m1geo
    @m1geo Před 2 lety

    Super useful series! Subscribed for more of the same!

  • @sc0or
    @sc0or Před 2 lety

    Buf634 saves everybody

  • @murrayhorn8817
    @murrayhorn8817 Před 2 lety

    One diode between the transistor bases halves the slewrate requirements.

  • @Sigmatechnica
    @Sigmatechnica Před 2 lety

    Nice use of cad to design manhatten boards

  • @ssubaihi
    @ssubaihi Před 2 lety

    Thank U for this video. By the way there is a lot of IC's which considered very good with less components as well as it has a wider operation voltage rang Such as TBA820m , TDA7052 , TDA2822 TDA7231 , TA7331 , TA7368 , CD7368 , LM4871 , FM8002a and the powerful TA7252AP

  • @naikrovek
    @naikrovek Před 2 lety

    these vids are awesome. so dense and so complete. excellent stuff.

  • @duckythescientist
    @duckythescientist Před 2 lety

    I don't think you need R9. Unless I'm missing something, I don't see it doing anything useful. I'm also worried that U1B is going to have stability problems. My quick suggestion would be to have a series resistor between its output and the bases of the transistors. (My gut says 47R to start.) I'd also add a small value capacitor as direct feedback from the output to the inverting input. It may be fine now, but I think you'll get oscillations if you use an opamp with a higher GBP. When using op-amps with output boost stages in the feedback loop, you need to keep the GPB of the op-amp lower than that of the boost stage. However, it's working for you, so my suggestions could be unnecessary. :D

  • @justingreen8006
    @justingreen8006 Před 2 lety

    I love the dub-ah-yah bus. 😊

  • @vinodreddy9819
    @vinodreddy9819 Před 2 lety

    Hi Phil, what are the extensions used for Verilog in 'vscode'?

  • @niklogin96
    @niklogin96 Před 2 lety

    Интересный материал, но не на русском. И переводчик технический не осилит.

  • @ScottGrammer
    @ScottGrammer Před 2 lety

    A couple of diodes between the bases of the output transistors, with a trimmer resistor across them to set idle current, would eliminate most all of your crossover distortion. Keep in mind that the fast slews of the op-amp trying to eliminate the crossover distortion (caused by running the output transistors in pure class B) might well create noise in your receiver. This would disappear with my suggested change, which converts the output stage to class AB.

    • @westelaudio943
      @westelaudio943 Před 2 lety

      But that would reduce efficiency and power handling. For voice reproduction class B with NFB is good enough and I don't think it creates much interference. 0

    • @ScottGrammer
      @ScottGrammer Před 2 lety

      @@westelaudio943 Well, that of course falls under the aegis of one of my favorite adages: "If it works, don't fix it." 🙂