Parallel to Serial (可以设置任意位宽)

本文介绍了如何使用Verilog实现一个并行到串行转换器,该转换器能够将并行数据流转换为串行输出,且允许设置任意位宽。通过模块ParToSerial展示了具体的代码实现,包括内部状态机和信号处理。同时,提供了测试激励tb_par_to_sel以验证模块的功能。
摘要由CSDN通过智能技术生成

Reference:

“Digital VLSI Design with Verilog”, John Williams, Springer, 2008.

Page 78 – 80.

1、Verilog Code

SerClock:a Serial Clock input;

ParValid: indicate when data on the parallel bus are stable and valid;

SerValidFlag: Clock out the data high-order bit (MSB) first, one bit per serial clock, setting a SerValidFlag when the first bit is on the serial bus and clearing it after the last bit is on the serial bus.

Done: use it to hold the state of the serialization.



`timescale 1ns / 1ps
//
// Company: SEU.IC
// Engineer: Ray
//
// Create Date:    15:27:50 04/03/2011
// Design Name:
// Module Name:    par_to_ser_2
//

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值