Jihwan_Park
Newbie level 4
Hi,
I'm totally beginner in FPGA board.
My board is Zybo Z7-20
I want to output four digital signals like a=0110, b=0010, c=0111, d=0001 with 200 us period.
Therefore I wrote the code like this :
module gate_signal(a, b, c, d);
output a;
output b;
output c;
output d;
always begin
a=0;b=0;c=0;d=0; #50000;
a=1;b=0;c=1;d=0; #50000;
a=1;b=1;c=1;d=0; #50000;
a=0;b=0;c=1;d=1; #50000;
end
endmodule
Moreover, My .xdc code like this :
##Pmod Header JA (XADC)
set_property -dict { PACKAGE_PIN N15 IOSTANDARD LVCMOS33 } [get_ports { a }];
set_property -dict { PACKAGE_PIN L14 IOSTANDARD LVCMOS33 } [get_ports { b }];
set_property -dict { PACKAGE_PIN K16 IOSTANDARD LVCMOS33 } [get_ports { c }];
set_property -dict { PACKAGE_PIN K14 IOSTANDARD LVCMOS33 } [get_ports { d }];
However, there is an error like "[Synth 8-2576] procedural assignment to a non-register a is not permitted".
How can I fix my code?
Thank you.
I'm totally beginner in FPGA board.
My board is Zybo Z7-20
I want to output four digital signals like a=0110, b=0010, c=0111, d=0001 with 200 us period.
Therefore I wrote the code like this :
module gate_signal(a, b, c, d);
output a;
output b;
output c;
output d;
always begin
a=0;b=0;c=0;d=0; #50000;
a=1;b=0;c=1;d=0; #50000;
a=1;b=1;c=1;d=0; #50000;
a=0;b=0;c=1;d=1; #50000;
end
endmodule
Moreover, My .xdc code like this :
##Pmod Header JA (XADC)
set_property -dict { PACKAGE_PIN N15 IOSTANDARD LVCMOS33 } [get_ports { a }];
set_property -dict { PACKAGE_PIN L14 IOSTANDARD LVCMOS33 } [get_ports { b }];
set_property -dict { PACKAGE_PIN K16 IOSTANDARD LVCMOS33 } [get_ports { c }];
set_property -dict { PACKAGE_PIN K14 IOSTANDARD LVCMOS33 } [get_ports { d }];
However, there is an error like "[Synth 8-2576] procedural assignment to a non-register a is not permitted".
How can I fix my code?
Thank you.