Dec 9, 2017 #1 A ananthan95 Junior Member level 3 Joined Oct 19, 2017 Messages 31 Helped 0 Reputation 0 Reaction score 0 Trophy points 6 Activity points 289 I am trying to write a VHDL test bench. the issue is, I have to write a code in such a way that a delay of 1000ns has to be executed in the beginning and later on the delay period is 620ns. so what should i do?
I am trying to write a VHDL test bench. the issue is, I have to write a code in such a way that a delay of 1000ns has to be executed in the beginning and later on the delay period is 620ns. so what should i do?
Dec 9, 2017 #2 KlausST Advanced Member level 7 Joined Apr 17, 2014 Messages 25,155 Helped 4,868 Reputation 9,757 Reaction score 5,535 Trophy points 1,393 Activity points 168,327 Hi, Use a counter with variable "TOP" value: Example: counter with 100MHz clock. Counting from 0...99 gives a 1000ns delay Counting from 0...61 gives a 620ns delay Klaus
Hi, Use a counter with variable "TOP" value: Example: counter with 100MHz clock. Counting from 0...99 gives a 1000ns delay Counting from 0...61 gives a 620ns delay Klaus
Dec 9, 2017 #3 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,397 Helped 14,748 Reputation 29,778 Reaction score 14,091 Trophy points 1,393 Location Bochum, Germany Activity points 297,992 Code VHDL - [expand]1 2 3 4 5 6 7 8 process -- action code wait for 1000 ns; loop -- action code wait for 620 ns; end loop; end process;
Code VHDL - [expand]1 2 3 4 5 6 7 8 process -- action code wait for 1000 ns; loop -- action code wait for 620 ns; end loop; end process;
Dec 9, 2017 #4 KlausST Advanced Member level 7 Joined Apr 17, 2014 Messages 25,155 Helped 4,868 Reputation 9,757 Reaction score 5,535 Trophy points 1,393 Activity points 168,327 Hi, yes: test bench My solution is for chip inside solutions. Klaus