Thanks so much to all who replied to my previous messages I appreciate your concern.
Please help me on this.
I have written the code for my encoder below. It is synthesizable and has no errors.
What i want to do is after programming the FPGA(Spartan3 starter kit), I want to check the results from the harware.
Means using LEDs for 3 bit output and switch for the input.
My code also contains the clock signal.
IF i lock one switch to Clock and then toggle it's not working and i think it won't.
I want to test this code on hardware.
Some one suggested Using Picoblaze, RS232,UART connection.
I really have no clue of how to do it.
Where to get picoblaze, how to program it to take input from RS232, where to get UART models. And how will i be writing the text in hyperterminal to send the data through this port.Will i be actually toggling the switch which i have locked for input.
I badly need help on this.
thanks and regards
Code:
module encoder(outp,clk,res,inp); input clk,res,inp; outp[2:0] outp; reg [4:0]ff;
always@(posedge clk) begin
if(res) ff[4:0]