Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hdl-js

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hdl-js - npm Package Compare versions

Comparing version 0.0.51 to 0.0.52

29

dist/emulator/hardware/BuiltInGate.js

@@ -19,2 +19,3 @@ /**

var Gate = require('./Gate');
var Pin = require('./Pin');

@@ -75,2 +76,9 @@ /**

}
/**
* Returns HDL code for this built-in gate.
*
* Describes inputs/outputs with the BUILTIN <Name> part.
*/
}, {

@@ -117,2 +125,23 @@ key: 'eval',

}], [{
key: 'getHDLCode',
value: function getHDLCode() {
if (!this._hdlCode) {
var spec = this.Spec;
var docBlock = spec.description.split('\n').map(function (line) {
return ' * ' + line;
});
var inputs = spec.inputPins.map(function (pin) {
return Pin.toFullName(pin);
}).join(', ');
var outputs = spec.outputPins.map(function (pin) {
return Pin.toFullName(pin);
}).join(', ');
this._hdlCode = '/**\n' + docBlock + '\n */\nCHIP ' + this.name + ' {\n IN ' + inputs + ';\n OUT ' + outputs + ';\n\n BUILTIN ' + this.name + ';\n}';
}
return this._hdlCode;
}
}, {
key: 'validateSpec',

@@ -119,0 +148,0 @@ value: function validateSpec(spec) {

2

package.json
{
"name": "hdl-js",
"version": "0.0.51",
"version": "0.0.52",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Hardware definition language (HDL) and Hardware simulator",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc