Coder Social home page Coder Social logo

system_console's Introduction

Tcl package library for Intel Quartus Prime System Console.

The System Console performs low-level hardware debugging of FPGA systems.

About

This library allows you to reduce the amount of code required to get started with the Intel Quartus Prime System Console.

use:

package require sc_avalonmm
namespace import sc_avalonmm::*

set_service_path 0 "master"

write32 0x00 0x1234abcd
read32 0x00 10

instead of:

set mp [lindex [get_service_paths master] 0]

proc write_memory {addr data} {
    global mp
    master_write_32 $mp $addr $data
}
proc read_memory {addr bytes_size} {
    global mp
    master_read_32 $mp $addr $bytes_size
}

write_memory 0x00 0x1234abcd
read_memory 0x00 10

Contents

Package library

lib - directory with Tcl packages

  • sc_service - System Console Service: Console Commands
  • sc_avalonmm - System Console Service: Avalon-MM Commands

Configuration file

system_console_rc.tcl - System Console user configuration file

Installation

Installing system_console packages for the System Console

  • Download system_console: git clone https://github.com/yuravg/system_console.git or zip-file
  • Copy system_console directory to your Home ($HOME) directory

Usage

An example of using system_console packages in a your System Console script

# Load package
package require sc_avalonmm
namespace import sc_avalonmm::*

# Select System Console service path (service <index>, <type_name>)
set_service_path 0 "master"

# Write, read (to/from selected above service with <index>, <type_name>)
# the service will be automatically opened before reading or writing
write32 0x00 0x12345678
write8  0x10 0xab 0xcd 0xef

puts "read16: [read16  0x0 100]"

# Closes the service type (selected above service with <index>, <type_name>)
close_service_path

Links

system_console's People

Contributors

yuravg avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.