module shizhong2( input wire clk , input wire rst_n , output wire clk_in,output reg [6:0] cnt_r ); parameter cnt_1us = 7'd100; always @(posedge clk or negedge rst_n) begin if (!rst_n) begin cnt_r <= 1'b0; end else if (cnt_r <= cnt_1us - 1'b1) begin cnt_r <= cnt_r + 1'b1; end else begin cnt_r <= 1'b0; end end assign clk_in = cnt_r; endmodule
时间: 2024-03-14 11:49:23 浏览: 59
这是一个 Verilog HDL 的模块,名为 shizhong2,它包含了一个时钟计数器和一个输出时钟信号的模块。模块的输入包括时钟信号 clk 和复位信号 rst_n,输出包括时钟信号 clk_in 和计数器 cnt_r。参数 cnt_1us 的值为 100,即计数器的最大值。当复位信号 rst_n 为低电平时,计数器 cnt_r 被清零。当时钟信号 clk 的上升沿到来时,计数器 cnt_r 加 1,当计数器 cnt_r 达到最大值时,时钟信号 clk_in 被置高电平,计数器 cnt_r 被清零。
相关问题
[{"yusuan_jine":"2333","ming_cheng":"增加视频监控存储设备项目","zi_jin_lai_yuan":"yn","zhong_biao_shang":"测试单位","zhong_biao_shi_jian":"2023-04-09 14:00:07"},{"ming_cheng":"医疗器械清洗工作站(器械预处理)","zi_jin_lai_yuan":"yn","zhong_biao_shang":"测试单位","zhong_biao_shi_jian":"2023-05-12 00:00:00"},{"yusuan_jine":"3000","ming_cheng":"医用冷藏箱采购","zi_jin_lai_yuan":"yn","zhong_biao_shang":"测试单位","zhong_biao_shi_jian":"2023-05-26 16:54:23"},{"yusuan_jine":"200","ming_cheng":"服务器采购","zi_jin_lai_yuan":"yn","zhong_biao_shang":"江西云数","zhong_biao_shi_jian":"2023-05-21 00:00:00"},{"yusuan_jine":"20000","ming_cheng":"摄像头采购测试","zi_jin_lai_yuan":"yn","zhong_biao_shang":"江西云数","zhong_biao_shi_jian":"2023-05-25 00:00:00"},{"yusuan_jine":"3000","ming_cheng":"医用冷藏箱采购","zi_jin_lai_yuan":"yn","zhong_biao_shang":"江西云数","zhong_biao_shi_jian":"2023-05-25 00:00:00"},{"yusuan_jine":"2333","ming_cheng":"增加视频监控存储设备项目","zi_jin_lai_yuan":"yn","zhong_biao_shang":"保利香槟","zhong_biao_shi_jian":"2023-05-28 18:00:33"}] 用element-ui -table显示出来
好的,以下是使用 Element UI Table 显示给定数据的示例代码:
```html
<template>
<div>
<el-table :data="tableData">
<el-table-column prop="ming_cheng" label="项目名称"></el-table-column>
<el-table-column prop="yusuan_jine" label="预算金额"></el-table-column>
<el-table-column prop="zi_jin_lai_yuan" label="资金来源"></el-table-column>
<el-table-column prop="zhong_biao_shang" label="中标商"></el-table-column>
<el-table-column prop="zhong_biao_shi_jian" label="中标时间"></el-table-column>
</el-table>
</div>
</template>
<script>
export default {
data() {
return {
tableData: [
{
yusuan_jine: "2333",
ming_cheng: "增加视频监控存储设备项目",
zi_jin_lai_yuan: "yn",
zhong_biao_shang: "测试单位",
zhong_biao_shi_jian: "2023-04-09 14:00:07",
},
{
ming_cheng: "医疗器械清洗工作站(器械预处理)",
zi_jin_lai_yuan: "yn",
zhong_biao_shang: "测试单位",
zhong_biao_shi_jian: "2023-05-12 00:00:00",
},
{
yusuan_jine: "3000",
ming_cheng: "医用冷藏箱采购",
zi_jin_lai_yuan: "yn",
zhong_biao_shang: "测试单位",
zhong_biao_shi_jian: "2023-05-26 16:54:23",
},
{
yusuan_jine: "200",
ming_cheng: "服务器采购",
zi_jin_lai_yuan: "yn",
zhong_biao_shang: "江西云数",
zhong_biao_shi_jian: "2023-05-21 00:00:00",
},
{
yusuan_jine: "20000",
ming_cheng: "摄像头采购测试",
zi_jin_lai_yuan: "yn",
zhong_biao_shang: "江西云数",
zhong_biao_shi_jian: "2023-05-25 00:00:00",
},
{
yusuan_jine: "3000",
ming_cheng: "医用冷藏箱采购",
zi_jin_lai_yuan: "yn",
zhong_biao_shang: "江西云数",
zhong_biao_shi_jian: "2023-05-25 00:00:00",
},
{
yusuan_jine: "2333",
ming_cheng: "增加视频监控存储设备项目",
zi_jin_lai_yuan: "yn",
zhong_biao_shang: "保利香槟",
zhong_biao_shi_jian: "2023-05-28 18:00:33",
},
],
};
},
};
</script>
```
这段代码将给定的数据渲染成一个表格,表格包含五列:项目名称、预算金额、资金来源、中标商和中标时间。你可以将这段代码复制到你的 Vue.js 工程中,然后根据实际情况修改数据和列配置即可。
阅读全文