1.2.2 • Published 5 years ago

canarium v1.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Canarium - PERIDOT board driver

CanariumはChrome/Node.jsアプリケーション用のPERIDOTボードドライバです。

通信仕様

通信仕様世代対応ボードのシリーズコンフィグ*1Avalon-MMマスタ*2ストリーム入出力*3Canariumバージョンプラットフォーム
Gen1PERIDOT Classic およびPERIDOT New Generations対応対応非対応^0.9>=1.0Chrome (^0.9.x)Node.js (>=1.0)
Gen2PERIDOT New Generations非対応対応対応>=1.0Node.js

1) RBF(やRPD)を転送して、FPGAのコンフィグレーションをリアルタイムで行う機能。
2) CanariumからQsys上のペリフェラル(Avalon-MM Slave)にアクセスする機能。
*3) Avalon-STやNiosII上の疑似ストリームファイルにデータを入出力する機能。

APIリファレンス

使用例 / Examples (Gen1)

const { Canarium } = require('canarium');
const fs = require('fs');

let canarium = new Canarium();
// Connect to PERIDOT Classic (PS mode) on COM3 port
canarium.open('COM3')
.then(() => {
    // Program FPGA
    return canarium.config(fs.readFileSync('test.rbf'));
})
.then(() => {
    // Read memory
    return canarium.avm.read(0x10000000, 256);
})
.then((data) => {
    // Show memory dump
    console.log(data);

    // Disconnect
    return canarium.close();
});

使用例 / Examples (Gen2)

const { CanariumGen2 } = require('canarium');

// Connect to PERIDOT with Gen2 I/F on COM3 port
let canarium = new CanariumGen2('COM3');
canarium.open()
.then(() => {
    // Create writable stream on Channel 8
    let txStream = canarium.createWriteStream(8);
    txStream.write(...);
.then(() => {
    // ...
})
.then(() => {
    // Disconnect from board
    canarium.close();
});

インストール方法 / How to install

  • npm install canarium

変更履歴 / History

See CHANGELOG.md

ライセンス / License

This package is distributed under MIT license.

1.2.2

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0-beta4

7 years ago

1.0.0-beta3

7 years ago

1.0.0-beta2

7 years ago

1.0.0-beta1

7 years ago

0.9.18

7 years ago

0.9.16

7 years ago

0.9.14

7 years ago

0.9.12

8 years ago

0.9.11

8 years ago

0.9.9

8 years ago

0.9.8

8 years ago