Changeset 72 for trunk/MultiChannelUSB/histogram.v
- Timestamp:
- Nov 25, 2009, 11:02:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MultiChannelUSB/histogram.v
r70 r72 1 1 module histogram 2 #( 3 parameter W = 32 // bin resolution 4 ) 2 5 ( 3 6 input wire clk, reset, 4 7 input wire data_ready, 5 8 input wire [11:0] data, address, 6 output wire [ 31:0] q9 output wire [W-1:0] q 7 10 ); 8 11 … … 12 15 reg wren_reg, wren_next; 13 16 reg [11:0] addr_reg, addr_next; 14 reg [ 31:0] data_reg, data_next;17 reg [W-1:0] data_reg, data_next; 15 18 16 wire [ 31:0] q_a_wire, q_b_wire;19 wire [W-1:0] q_a_wire, q_b_wire; 17 20 18 21 wire [11:0] addr_wire; 19 wire [ 31:0] data_wire;22 wire [W-1:0] data_wire; 20 23 21 24 assign addr_wire = (flag_reg) ? data : addr_reg; … … 42 45 .widthad_a(12), 43 46 .widthad_b(12), 44 .width_a( 32),45 .width_b( 32),47 .width_a(W), 48 .width_b(W), 46 49 .width_byteena_a(1), 47 50 .width_byteena_b(1),
Note:
See TracChangeset
for help on using the changeset viewer.