Jonathan.O

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. Thank you all for replying! @elodg Thanks for the tip! I was indeed using the vivado library IP core. From opencores I presume you meant this controller? https://opencores.org/projects/sdcard_mass_storage_controller If so, it does look promising, since it will basically be a direct hardware link to the SD card (if I am reading this correctly), currently it's running on the microBlaze and going through SPI. I just hope that the PmodSD supports the opencores controller. I registered there and hope to download and test the code soon! It appears to be written in verilog, hopefully that wont clash with my vhdl code. @MirceaDabacan Thanks for the explanation! I will search for some low power speakers to use with the AMP2 that I have right now since I couldn't find the max vpp specs of my JBL charge 2+. Your suggestion for the I2S2 is also a very interesting solution and if I do want to hook up a separate amplifier then I will definitely look into that module! @D@n Thanks for the suggestion! Creating a high speed buffer, with a much larger capacity than the RAM that is available on my basys 3 is very interesting! Considering that the data files are about 13 MB worth of samples per track, I could easily load the music from the SD card minute by minute, giving me ample time to continuously buffer during playback. Thanks for the support! Much appreciated! I will post back with my new findings! Jonathan
  2. We are working with the Digilent Basys 3 FPGA's and are tasked with a project based around retro game design. For the game we are required to include music/sounds and for our implementation we required a bit more storage than the Basys 3 had to offer. To solve this problem, we searched for possible storage expansion modules and quickly found out that the Basys 3 supports a vast array of expansion modules. To facilitate the sound production we chose the pmod AMP2 module and for the storage expansion we chose the pmod SD module. We have successfully tested the example code that was provided within the IP library catalogue and got to testing. After some performance/feature testing we soon realised that there were some challenges with these modules based on our requirements. The modules are controlled through Microblaze, as the examples we found were written for the Microblaze soft core CPU. The challenges are: The latency/bandwidth of the SD module is a bit too high for our goals. We have tried to time the reading of different sized packets and concluded that the latency (tens of milliseconds with 2 kB read streams) that we are seeing might be too high and the bandwidth too low to get a sufficient amount of data through to stream high quality music and load in parts of the map from the SD card. Are there ways to increase the latency/bandwidth? Or is there VHDL code available that can handle reading data from the SD module at higher speeds (i.e. bypass Microblaze)? We need to be able to read samples (16 bit per sample at 44100 samples/s - 88.2 kB/s) from a text file to feed into the AMP2 module for music synthesis and also read bytes (18 kB per second) from another text file to generate a tile map for the game. Because the Basys 3 does not have a large amount of RAM available, we need to buffer a lot of information in relatively small buffers, which means that we require low latencies when it comes to reading data. The pmod AMP2 has a class D amplifier that can output as much as 2.5 W of power. We hope to connect an aux cable to the 3.5 mm port and connect it to a portable speaker amplifier input (JBL bluetooth speaker aux port that is usually connected to a phone, for instance.). Is this possible or will the high current damage the amplifier inside the bluetooth speaker? And if the high current will damage the board, is it possible to reduce the volume (power) through software or does it then require a hardware modification? We appreciate all the help! Jonathan
  3. Thank you D@n and jpeyron, I was worried about this indeed! I will have a look at the pmod SD modules! Thanks for the very quick assistance! Kind regards, Jonathan
  4. Hi! We are working with a Basys-3 FPGA and were wondering if it is possible to read large data files from a USB stick. We are trying to let the Basys 3 produce music through a module, but the internal ROM/Flash storage of the Basys is too small for, for instance, .Wav files or .Wav converted to .coe files. Is there a possibility to use the USB stick support for programming for this application or perhaps another method? Thanks! Kind regards, Jonathan