Comments (4)
@AlkaidDoge sorry, my fault, the old example is out of date. The new implementation has been updated in e754d5e
from spinal-bootcamp.
@jijingg Thank you very much for your timely repair, but I had a little problem running the new implementation.
I copy your code into Intellij IDEA, then it tell me "protected" modifier is no allowed here.But I can run code in jupyter,why?
(Although I take out "protected" and it works....)
protected object CommonCellBlackBox {
private var _clear: Boolean = false
def clear: Boolean = _clear
def clear_=(x: Boolean) { _clear = x}
}
from spinal-bootcamp.
@AlkaidDoge protected
is not necessary here , but in the lib CommonCellBlackBox
is not need open for Users, so i limit it's scope.
It depends on your design.
package object commonCell {
.....
protected[commonCell] object CommonCellBlackBox {
private var _clear: Boolean = false
def clear: Boolean = _clear
def clear_=(x: Boolean) { _clear = x}
}
object clearCCBB{
def apply() = CommonCellBlackBox.clear = true
}
}
from spinal-bootcamp.
Okay.Thank you for your answer. I don't have any questions. : )
from spinal-bootcamp.
Related Issues (15)
- compilerPlugin fixed
- Is that possible to render the output waveform of simulation on jupyter notebooks? HOT 2
- A simple example for checking spinal-sim environment HOT 4
- how to run spinalhdl on ammonite
- object ops is not a member of package ammonite HOT 4
- Broken link in readme HOT 2
- 申请升级一下环境 HOT 1
- Errors running showRTL()
- Broken with Java 11 on Ubuntu HOT 2
- 'ReConfig your Soc' of Chapter 1.1-Spinal-quick-start.ipynb HOT 1
- Where can I find the introduction of library methods? HOT 1
- A example I can't understand in chapter 3.1 HOT 1
- SpinalHDL libraries will not load HOT 2
- fail to download Spinalhdl HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spinal-bootcamp.