kazuhikoarase / simcirjs

A circuit simulator in HTML5 and JavaScript
https://kazuhikoarase.github.io/simcirjs/
MIT License
291 stars 152 forks source link

Add propagation delay #7

Closed datusm closed 7 years ago

datusm commented 7 years ago

Can you add a propagation delay to the sim so that I can demo rising and falling edge detection circuits and edge trigger ff's?

Great tool...thanks for making it public!

kazuhikoarase commented 7 years ago

Hi, I added a new device named 'Delay' (short red line). https://kazuhikoarase.github.io/simcirjs/#-KpYsZON225_X-JiI9YX

datusm commented 7 years ago

Thank you...I really appreciate your work and I see it on your demo page at https://kazuhikoarase.github.io/simcirjs/, but when I download and put the zip file from github on my server, the sample.html does not have the new options (and when I try to copy the html from the active webpage, it also does not work). Is there a corrupted file on gethub?

kazuhikoarase commented 7 years ago

sample.html does not include optional devices. You have to open the file with text editor and add line as follows.

<script type="text/javascript" src="simcir-library.js"></script>
<!-- start add -->
<script type="text/javascript" src="misc/simcir-delay.js"></script>
<!-- end add -->
<style type="text/css">
datusm commented 7 years ago

Thank you again....it is working just as I need! I appreciate it!

Thank you Daniel KohnUniversity of MemphisMemphis TN

On Saturday, July 22, 2017, 4:32:57 PM CDT, kazuhiko arase notifications@github.com wrote:

sample.html does not include optional devices. You have to open the file with text editor and add line as follows.