Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

interface between 2 FPGA via RS232

Status
Not open for further replies.
" the receive code is called, and if sw1==0 the async_transmitter code is called !!!! "

Yes, I guessed this might have been your Software Land induced fantasy. But in Hardware Country it doesn't work like that. The best advice here is to actually think how the hardware should look. After all, verilog is a Hardware Desciption Language.

Besides ... doesn't the fpga4fun site have a complete module in it already with transmit + receive? I recall from back then just taking the code, and simply plonking it in and it works. All I had to adjust was the bitrate.

---------- Post added at 00:28 ---------- Previous post was at 00:25 ----------

besides ... waitaminute. You said you already had it working for 1 fpga to PC using hyperterminal right? So why this curious construction?

For each fpga you will have both the RX + TX modules in there. So first do 1 fpga that has both RX + TX, and hook that up to PC with hyperterminal. Then you can send data between fpga and pc in both directions. Once you got that working simply duplicate it and put it in 2nd fpga.
 

please i want to understand what is the purpose of this part in the receiver code


always @(posedge clk)
if(Baud8Tick)
begin
if( RxD_sync_inv[1] && RxD_cnt_inv!=2'b11) RxD_cnt_inv <= RxD_cnt_inv + 2'h1;
else
if(~RxD_sync_inv[1] && RxD_cnt_inv!=2'b00) RxD_cnt_inv <= RxD_cnt_inv - 2'h1;

if(RxD_cnt_inv==2'b00) RxD_bit_inv <= 1'b0;
else
if(RxD_cnt_inv==2'b11) RxD_bit_inv <= 1'b1;
end
?????

thanx
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top