L
Linas Petras
Guest
Just wondered if anyone who be so kind to translate the following bit of
psuedo verilog to vhdl.
As I've just started VDHL, trying to understand Verilog is just a bit much
for me :-(
Linas
PS This is NOT a school project
--------------------------------------------------------------
SUBDESIGN glue
(
pci_clk, LP_RW, nCS : INPUT;
nRE, nWE : OUTPUT;
)
VARIABLE
Q[2..0] : DFF;
BEGIN
Q[].clk = pci_clk;
Q[].prn = NOT nCS;
Q[0].d = nCS;
Q[1].d = Q[0].q;
Q[2].d = Q[1].q;
nRE = nCS OR NOT LP_RW OR NOT Q[2].q;
nWE = nCS OR LP_RW OR NOT Q[1].q;
END
---------------------------
psuedo verilog to vhdl.
As I've just started VDHL, trying to understand Verilog is just a bit much
for me :-(
Linas
PS This is NOT a school project
--------------------------------------------------------------
SUBDESIGN glue
(
pci_clk, LP_RW, nCS : INPUT;
nRE, nWE : OUTPUT;
)
VARIABLE
Q[2..0] : DFF;
BEGIN
Q[].clk = pci_clk;
Q[].prn = NOT nCS;
Q[0].d = nCS;
Q[1].d = Q[0].q;
Q[2].d = Q[1].q;
nRE = nCS OR NOT LP_RW OR NOT Q[2].q;
nWE = nCS OR LP_RW OR NOT Q[1].q;
END
---------------------------