core

package
v0.0.0-...-ec2b860 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package core defines a CGRA processing element.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder can create new cores.

func (Builder) Build

func (b Builder) Build(name string) *Core

Build creates a core.

func (Builder) WithEngine

func (b Builder) WithEngine(engine sim.Engine) Builder

WithEngine sets the engine.

func (Builder) WithFreq

func (b Builder) WithFreq(freq sim.Freq) Builder

WithFreq sets the frequency of the core.

type Core

type Core struct {
	*sim.TickingComponent
	// contains filtered or unexported fields
}

func (*Core) MapProgram

func (c *Core) MapProgram(program []string)

MapProgram sets the program that the core needs to run.

func (*Core) SetRemotePort

func (c *Core) SetRemotePort(side cgra.Side, remote sim.Port)

func (*Core) Tick

func (c *Core) Tick(now sim.VTimeInSec) (madeProgress bool)

Tick runs the program for one cycle.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL