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.

circuit to Convert 16 bit to 8 bit

Status
Not open for further replies.

heythem2008

Newbie level 6
Joined
Jul 9, 2008
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
sherbrooke, canada
Activity points
1,373
i want to convert my signal from the output of fifo from 16 bit to 8 bit because i need to transmit it via the rS232 that support only the 8 bit
so who can help me to do this task
if it is possible a logic circuit because i m working with block diagram in quartus software of altera
 

heythem2008 said:
/.../signal from the output of fifo from 16 bit to 8/.../
no quartus sch. I have no experience with it;
you have to:
- create 16 to 8 multiplexer and connect its inputs to the fifo;
- divide the RS232 clock by 2 on a single flip-flop;
- 'Q' output of the divider connect as a control input to the MUX;
- connect [properly!] divided clock as a read clock to the fifo;

-- have fun;
 

a simple way of doing this would be to use a fifo whose data width is 8 bit itself, u don't need to write an extra glue logic outside the fifo.

While writing into the fifo, increment the write pointer by 2 for each write and write the 16bit data as two 8 bit data.

Read pointer should be incremented by 1 as expected.

This is one of the possible options i can think of. Also, u can use the mux as explained above.
 

If you are using xilinx devices it's too easy. Xilinx devices have block ram which are dual port/ you can easily use it as a dual port FIFO with different width. It's too easy check xilinx documents.
 

thank you sree205 for answering me, i cant use a fifo with 8bit width because with my quartus software i cant design a fifo with 16bit input and 8 bit output, the width of input and output must be the same,

Added after 2 minutes:

thank u zerox, yes if i'm working with xilinx it will be better, but i have no choice i m in a trainee and only this altera board that i have
 

Use a 16:8 Mux with a toggling register logic! if toggle register is 1 then get a new value from 16 bit FIFO and use low 8 bit, if toggle register is 0 use high 8 bit. It's a good approach
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top