T
Thomas Heller
I'm trying to create a phase frequency detector, like the one
in figure 1 of this article:
http://www.analog.com/library/analogDialogue/archives/33-07/phase3/
I believe the VHDL code would be something like this:
process(in_a, in_b, up, down)
begin
if up = '1' and down = '1' then
up <= '0';
down <= '0';
else
if rising_edge(in_a) then
up <= '1';
end if;
if rising_edge(in_b) then
down <= '1';
end if;
end if;
end process;
Now, what I *actually* want to do is to model this circuit in MyHDL: www.myhdl.org
MyHDL follows the verilog coding style (I understand a little bit of VHDL
but not verilog).
My question is: Is it possible to write the above code in a similar
way in verilog (or MyHDL)? Is it possible to have a 'process' or what
it's called in verilog that has two edge sensitive signals in the sensitivity list?
Hope you can understand my question and thanks,
Thomas
in figure 1 of this article:
http://www.analog.com/library/analogDialogue/archives/33-07/phase3/
I believe the VHDL code would be something like this:
process(in_a, in_b, up, down)
begin
if up = '1' and down = '1' then
up <= '0';
down <= '0';
else
if rising_edge(in_a) then
up <= '1';
end if;
if rising_edge(in_b) then
down <= '1';
end if;
end if;
end process;
Now, what I *actually* want to do is to model this circuit in MyHDL: www.myhdl.org
MyHDL follows the verilog coding style (I understand a little bit of VHDL
but not verilog).
My question is: Is it possible to write the above code in a similar
way in verilog (or MyHDL)? Is it possible to have a 'process' or what
it's called in verilog that has two edge sensitive signals in the sensitivity list?
Hope you can understand my question and thanks,
Thomas