Sunday, 15 May 2016

PSHDL

You can do PSHDL coding in cloud itself

In PSHDL if you just write


  1. module MyFirstModule{
  2. register uint<17> counter=counter+1;
  3. }


it means the system will count at rising edge of every count

But in case you want a register to count at falling edge then in that case you have to write code as follow:-



1) Adding a Two Number using PSHDL


Do you Know How Actually Simulation is coming out on Browser? The answer to this is you have converted your code into javascript.

2) Making a Counter Using PSHDL

  1. module MyFirstModule{
  2. register uint<17> counter=counter+1;
  3. out bit led=counter(13);
  4. }
And your output will be blinking led as shown on that screen


Now you can yourself see How simple is this PSHDL




No comments:

Post a Comment