Giter Site home page Giter Site logo

icsvg's Introduction

icsvg

Use snapsvg to show the IC components

Demo

http://icsvg.icsteve.com

<svg id="svg"></svg>

<script>
var s = Snap("#svg");
s.attr({ viewBox: "0 0 500 130" });

var startx = 20 ;
var starty = 20 ;

var conf={
  x: startx,
  y: starty,
  latch: false,
  size: 50,
  color: "#f00",
  reset: -1,
  triggle: 1,
  d_length: 0,
  q_length: 28,
  ck_to_q: true
} ;
var reg1=icsvg_reg(s,conf) ;

var conf={
  x: startx+130,
  y: starty,
  size: 50,
  color: "#123456",
  reset: -1,
  latch: false,
  triggle: 1,
  d_length: 28,
  q_length: 0,
  ck_to_q: false
} ;
var reg2=icsvg_reg(s,conf) ;

var conf={
  x: startx+80,
  y: starty,
  scale: 0.3
};

icsvg_logic(s,conf);

var conf={
  x: startx+80,
  y: starty+60,
  size: 18,
  type:"buffer",
  color:"#123456",
  orient:"r0"
};

var buf1=icsvg_repeater(s,conf);
var conf={
  x: startx-10,
  y: starty+60,
  size: 9,
  type:"buffer",
  color:"#123456",
  orient:"r270"
};

var buf2=icsvg_repeater(s,conf);

//console.log(buf1.A.x) ;

conf= {
  from:buf2.Z,
  to:reg1.CK,
  dir:"clockwise",
  color:"#123456"
} ;
icsvg_connect(s,conf) ;
conf= {
  from:buf2.A,
  to:buf1.A,
  dir:"clockwise",
  color:"#123456"
} ;
icsvg_connect(s,conf) ;conf= {
  from:buf1.Z,
  to:reg2.CK,
  dir:"anticlockwise",
  color:"#123456"
} ;
icsvg_connect(s,conf) ;

var tmp=s.circle(50,50,2);
tmp.click(function(){
  tmp.animate({cx: 90}, 30);
  //tmp.animate({
  //      fill: "#00f"
  //  }, 1500, mina.bounce, function() {
  //      console.log("animate") ;
  //  });
}) ;

</script>

$\Huge T\huge \scriptscriptstyle arrival \Huge = T\huge \scriptscriptstyle latency(launch) \Huge + T\huge \scriptscriptstyle ck\to q \Huge + T \huge \scriptscriptstyle prop\newline \Huge T\huge \scriptscriptstyle required \Huge = T\huge \scriptscriptstyle latency(capture) \Huge + T \huge \scriptscriptstyle period(l\to c) \Huge - T \huge \scriptscriptstyle setup\newline \Huge T\huge \scriptscriptstyle slack\Huge = T\huge \scriptscriptstyle required \Huge - T\huge \scriptscriptstyle arrival$

$\Huge T\huge \scriptscriptstyle latency(launch) \Huge + T\huge \scriptscriptstyle ck\to q \Huge + T \huge \scriptscriptstyle prop \Huge + T \huge \scriptscriptstyle uncertainty \Huge <= T\huge \scriptscriptstyle latency(capture) \Huge + T \huge \scriptscriptstyle period(l\to c) \Huge - T \huge \scriptscriptstyle setup \newline \Huge T\huge \scriptscriptstyle skew \Huge = T\huge \scriptscriptstyle latency(capture) \Huge - T\huge \scriptscriptstyle latency(launch)\newline \Huge T\huge \scriptscriptstyle ck\to q \Huge + T \huge \scriptscriptstyle prop \Huge <= T\huge \scriptscriptstyle skew \Huge + T \huge \scriptscriptstyle period(l\to c) \Huge - T \huge \scriptscriptstyle setup$

> [!Note]
> $\Large T \large \scriptscriptstyle period$ means the period from launch clock edge to capture edge.
> 
> That may be one cycle of clock, half or 60% of clock cycle based on duty cycle.

icsvg's People

Watchers

 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.