You can do PSHDL coding in cloud itself
In PSHDL if you just write
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
Now you can yourself see How simple is this PSHDL
In PSHDL if you just write
- module MyFirstModule{
- register uint<17> counter=counter+1;
- }
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
- module MyFirstModule{
- register uint<17> counter=counter+1;
- out bit led=counter(13);
- }
And your output will be blinking led as shown on that screen
No comments:
Post a Comment