Changeset 45 for trunk/MultiChannelUSB/histogram.v
- Timestamp:
- Sep 15, 2009, 3:27:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MultiChannelUSB/histogram.v
r27 r45 4 4 input wire data_ready, 5 5 input wire [11:0] data, address, 6 output wire [ 31:0] q6 output wire [23:0] q 7 7 ); 8 8 … … 11 11 reg wren_reg, wren_next; 12 12 reg [11:0] addr_reg, addr_next; 13 reg [ 31:0] data_reg, data_next;13 reg [23:0] data_reg, data_next; 14 14 15 wire [ 31:0] q_a_wire, q_b_wire;15 wire [23:0] q_a_wire, q_b_wire; 16 16 17 ram4096x 32 ram4096x32_unit (17 ram4096x24 ram4096x24_unit ( 18 18 .address_a(addr_reg), 19 19 .address_b(address), … … 92 92 // increment and write 93 93 wren_next = 1'b1; 94 data_next = q_a_wire + 32'd1;94 data_next = q_a_wire + 24'd1; 95 95 state_next = 4'd3; 96 96 end … … 104 104 105 105 // output logic 106 assign q =q_b_wire;106 assign q = q_b_wire; 107 107 endmodule
Note:
See TracChangeset
for help on using the changeset viewer.