Call by Value & Call by Reference in Javascript

We are familiar with 2 parameters calling methods in programming languages such as C: called by value or by reference. Basically if you want to change the value of the original variables outside the function, you need to call by reference, or you can just call by value.

繼續閱讀

分享到 評論

TransEra HTBasic Syntax

HTBasic is the languange used by Trans Era, aiming for measurement equipment controlling usages.

However, it is different from normal programming languages, there are specific syntax and kind of bugs when you code.

繼續閱讀

分享到 評論

Verilog Circuits Design - 2/2

Course Memo of digital IC design, including following contents:

  • Low Power
  • System Verilog
  • Testbed Constraint and Patterns
  • APR

繼續閱讀

分享到 評論

Verilog Circuits Design - 1/2

Course Memo of digital IC design, including following contents:

  • Basic of Design Flow
  • Sequential and Combination Circuit
  • Timing Issues
  • Intellectual Property
  • Basic of Sythesis Flow
  • Clock Latency

繼續閱讀

分享到 評論

Verilog Combinational Circuits Design

Verilog 是一種硬體描述語言(Hardware Description Langage, HDL),由於描述與執行方法和軟體不同,所以思考邏輯也不一樣。

基本的設計流程:

  1. Design Specification
  2. Algorithmic Model
  3. RTL Model
  4. Gate-Level Model
  5. Switch-Level Model
  6. Physical Layout

其中的 2 – 5 就會根據我們寫的 Verilog 程式,來合成出對應的電路。一個好的 Coding Style 、以及完善的邏輯,將可以確保電路的正常運作。

繼續閱讀

分享到 評論

PHPUnit (1) 安裝

Installation

For a system-wide installation via Composer, you can run:

1
$ composer global require "phpunit/phpunit=5.5.*"

In MacOS Sierra, you might need to use sudo for permission issue.

After installation, you can check PHPUnit version by:

1
2
$ phpunit --version
PHPUnit 5.5.7 by Sebastian Bergmann and contributors.

If it shows up command not found, try:

1
2
3
4
5
6
7
$ ~/.composer/vendor/bin/phpunit --version
PHPUnit 5.5.7 by Sebastian Bergmann and contributors.

# Then you can use alias for short
$ alias phpunit='~/.composer/vendor/bin/phpunit'
$ phpunit --version
PHPUnit 5.5.7 by Sebastian Bergmann and contributors.

繼續閱讀

分享到 評論

Laravel - Blade Notes

Blade 是 Laravel 框架中所使用的切版,可以根據需求把重複的版面適當的分開,減少重複、也方便日後做維護。這邊記錄下在 Blade 之中常用到的一些函式。

繼續閱讀

分享到 評論

Hexo Memo

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

繼續閱讀

分享到 評論