Advertisement
Guest User

Untitled

a guest
May 3rd, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. `define DATASET_BITS 11
  3. module GeneticAlg#(
  4.         parameter NCOUNT = 128,//number of all neurons
  5.         parameter DSAWIDTH = 10,//bit size of dataset address bus
  6.         parameter ROW_SIZE = 31,//size of data row in network
  7.         parameter NET_DELAY = 64 //net delay to stabilize result
  8.     )(
  9.         input wire clk,
  10.        
  11.         //address bus for all neurons
  12.         output wire writeEnable,
  13.         output wire[clog2(NCOUNT*32-1)-1:0] memAddr,
  14.         output wire[16:0] memData,
  15.        
  16.         //network input and output
  17.         output wire[`DATASET_BITS*ROW_SIZE-1:0] netParams,
  18.         input wire[`DATASET_BITS*ROW_SIZE-1:0] netResult,
  19.        
  20.         //dataset memory buses
  21.         input wire[15:0] rowCount,//number of data rows in memory, memory size = rowCount*ROW_SIZE
  22.         output wire[DSAWIDTH-1:0] datasetAddr,//addres of data
  23.         input wire[`DATASET_BITS-1:0] datasetData//read is delayed by 1 cycle
  24.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement