wuchy143
Member
Hello All,
I'm a noob to FPGA's and have been able to take some code load it into the Platform flash on my Spartan 3 dev board and see LED's turn on. I would like to try and flash one of the LED's but cannot figure out how to do it. Can anyone help? I just want one of the LED's to blink on and off at a visible frequency to a human.
My code thus far:
module exp1 (SW, LED);
input <3:0> SW;
output <7:0> LED;
assign LED<0> = 1'b1; // turns on LEDs 0 and 1
assign LED<1> = 1'b1;
assign LED<2> = SW<0>; // assigns the input SW<0> <1> to the LEDs 2 and 3. Whatever that input is.
assign LED<3> = SW<1>;
endmodule
I'm a noob to FPGA's and have been able to take some code load it into the Platform flash on my Spartan 3 dev board and see LED's turn on. I would like to try and flash one of the LED's but cannot figure out how to do it. Can anyone help? I just want one of the LED's to blink on and off at a visible frequency to a human.
My code thus far:
module exp1 (SW, LED);
input <3:0> SW;
output <7:0> LED;
assign LED<0> = 1'b1; // turns on LEDs 0 and 1
assign LED<1> = 1'b1;
assign LED<2> = SW<0>; // assigns the input SW<0> <1> to the LEDs 2 and 3. Whatever that input is.
assign LED<3> = SW<1>;
endmodule