GithubHelp home page GithubHelp logo

molizane / jt49 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jotego/jt49

0.0 1.0 0.0 1.81 MB

Verilog clone of YM2149

License: GNU General Public License v3.0

Verilog 82.43% Shell 1.27% Forth 0.58% Coq 14.12% C++ 1.60%

jt49's Introduction

JT49 FPGA Clone of YM2149 hardware by Jose Tejada (@topapate)

You can show your appreciation through

YM2149 compatible Verilog core, with emphasis on FPGA implementation as part of JT12 in order to recreate the YM2203 part.

Usage

There are two top level files you can use:

  • jt49_bus: presents the expected AY-3-8910 interface
  • jt49: presents a simplified interface, ideal to embed. This is the one used by jt12

Port Description jt49

Name Direction Width Purpose
rst_n input active-low asynchronous reset signal
clk input clock
clk_en input clock enable. It cannot be a permanent 1
addr input 4 selects the register to access to
cs_n input chip-select, active low
wr_n input active-low write signal
din input 8 data to write to registers
sel input input clock is further divided by 2 when low
dout output 8 data read from registers. Updated when cs_n is low
sound output 10 Unsigned combined output of the three channels
A output 8 Unsigned output of channel A
B output 8 Unsigned output of channel B
C output 8 Unsigned output of channel C

The module is not designed to be used at full clk speed. The clock enable input signal should divide the clock at least by two. This is needed because the volume LUT is shared for all three channels and the pipeline does not include wait states for the LUT as wait states happen naturally when clk_en is used.

The ports of jt49_bus replace the CPU interface with that of the original AY-3-8910.

Name Direction Width Purpose
rst_n input active-low asynchronous reset signal
clk input clock
clk_en input clock enable. It cannot be a permanent 1
bdir input bdir pin of AY-3-8910
bc1 input bc1 pin of AY-3-8910
din input 8 data to write to registers
sel input input clock is further divided by 2 when low
dout output 8 data read from registers. Updated when cs_n is low
sound output 10 Unsigned combined output of the three channels
A output 8 Unsigned output of channel A
B output 8 Unsigned output of channel B
C output 8 Unsigned output of channel C
IOA_in input 8 I/O port A, input side
IOA_in output 8 I/O port A, output side
IOB_in input 8 I/O port B, input side
IOB_in output 8 I/O port B, output side

Resistor Load Modelling

The resistor load had an effect of gain compression on the chip. There is a parameter called COMP which can be used to model this effect. You can assign a value from 0 to 3.

Value Dynamic Range Equivalent resistor
0 43.6 dB <1000 Ohm
1 29.1 dB ~8000 Ohm
2 21.8 dB ~40 kOhm (?)
3 13.4 dB ~99 kOhm

Non Linear Effects

  • Saturation effects are not modelled
  • Channel mixing effects by short circuiting the outputs are not modelled

jt49's People

Contributors

jotego avatar sorgelig avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.