ca0132-tools

所属分类:DSP编程
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2021-03-23 01:12:28
上 传 者sh-1993
说明:  用于ca0132 HDA编解码器的工具。包括用于集成自定义DSP的汇编程序反汇编程序。,
(Tools for the ca0132 HDA codec. Includes an assembler disassembler for the integrated custom DSP.,)

文件列表:
Makefile (2843, 2021-03-22)
ca0132-8051-command-line.c (5987, 2021-03-22)
ca0132-8051-dump-state.c (20373, 2021-03-22)
ca0132-8051-read-exram-to-file.c (2229, 2021-03-22)
ca0132-8051-read-exram.c (631, 2021-03-22)
ca0132-8051-write-exram-from-file.c (1787, 2021-03-22)
ca0132-8051-write-exram.c (879, 2021-03-22)
ca0132-chipio-read-data.c (583, 2021-03-22)
ca0132-chipio-read-to-file.c (2078, 2021-03-22)
ca0132-chipio-write-data-from-file.c (1636, 2021-03-22)
ca0132-chipio-write-data.c (851, 2021-03-22)
ca0132-dsp-assembler.c (2338, 2021-03-22)
ca0132-dsp-disassembler.c (21112, 2021-03-22)
ca0132-dsp-op-test.c (21230, 2021-03-22)
ca0132-frame-dump-formatted.c (20356, 2021-03-22)
ca0132-get-chipio-flags.c (614, 2021-03-22)
ca0132-get-chipio-stream-data.c (2890, 2021-03-22)
ca0132-get-chipio-stream-ports.c (1651, 2021-03-22)
ca0132-send-dsp-scp-cmd.c (1371, 2021-03-22)
ca0132_base_functions.c (28964, 2021-03-22)
ca0132_defs.h (26776, 2021-03-22)
ca0132_dsp_functions.c (158289, 2021-03-22)
documentation/ (0, 2021-03-22)
documentation/emu10k1-explog.c (4549, 2021-03-22)
documentation/quartet-dsp.md (79497, 2021-03-22)
hda_hwdep.h (1412, 2021-03-22)

# ca0132-tools A collection of tools for debugging the ca0132 HDA codec. Also included is an assembler/disassembler for the onboard "Quartet" DSP. Most of the tools are self explanatory, however the more unique ones are described below. As always, be careful with these, as you can lock up the DSP or the 8051 if you mess with the wrong things. ## ca0132-dsp-op-test: Assembles a register dumping program, and takes a hexadecimal opcode. Runs the opcode you entered, and then prints out the difference between the register dump before/after the opcode was run. Once this program has been run, you'll have to either do a suspend/resume cycle to restore the DSP, or a full shutdown and startup. ## ca0132-dsp-disassembler: Disassembles a binary file containing DSP opcodes. DISCLAIMER: DO NOT USE THIS ON THE DSP FIRMWARE. Only use it on programs you've made yourself using the included assembler. ## ca0132-dsp-assembler: Assembles a DSP assembly string into a DSP opcode. Without arguments, it takes a single string as input and outputs the hexadecimal opcode. This is a really basic assembler, I plan on adding more documentation soon. ## ca0132-dump-state Create a simulator state by dumping the contents of a running ca0132. Uploads a custom dumping program to the onboard 8051 to dump the memory, using an unused ChipIO ParamID verb handler. The created save state can then be used in the ca0132 simulator for testing verbs. ## ca0132-8051-command-line Allows use of the onboard 8051's serial command console by storing commands in the buffer and updating the write pointer. Commands are: * ver - Prints out device version information. Same data for all ca0132 codecs it seems. * echo - On or off. Turns off command echo in console. * sfr - Takes an address, returns the value of the 8051 SFR at that address. * dmem - Takes an address, returns the value of the 8051 iram at that address. * xmem - Takes an address, returns the value of the 8051 xram at that address. * cmem - Takes an address, returns the value of the 8051 pmem at that address. * hci - Takes an address, returns the value of the HCI bus at that address. The HCI bus is the chipio data interface. For some reason, in the driver, it's referred to as both HCI and HIC. * apb - Takes an address, returns the value of the APB bus at that address. Not sure what this address bus is used for, if it's in use at all. Range is only 8-bits, returns a 32-bit value. * hda - Takes an address, returns data at that address. This seems to be the actual HDA link interface control, uses SFR 0xdb for the address, and 0xdc for the data. Things written here are streamID's and stream format values. Range is 8-bits. * pmu - Takes an address, returns the value of the 8051 PLL PMU at that address. * eepr - Takes an address, returns data. Not sure if the eeprom actually exists, or if this is just left over from development. * i2c - Has multiple forms: i2c target - sets the master target address. i2c mode <7/10> - Sets the op and address modes. op modes are: slave, std, fast, fast+. i2c rd - Reads 1-8 bytes from i2c. i2c wr < ... > - Writes 1-8 bytes to i2c. None of these seem functional, reads/writes always return I/O error. * flag - With no arguments, prints all flag values. With a value argument, prints out the flag value, string, and if it's set. * ctrl - Same as flag command, either prints all chipio control param values or a specific one specified in an argument. * log - Prints a log of some sort, not sure from where. * pin - Prints out HDA node pin values. Not sure what they represent. * codec - Takes a codec number value, seems to print out the codecs power state. * q - Prints out the high water mark of the verb buffer.

近期下载者

相关文件


收藏者