mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Merge pull request #82 from stineje/main
Update if-then-else for ram items
This commit is contained in:
		
						commit
						8d28524c35
					
				@ -55,7 +55,7 @@ module ram1p1rwbe #(parameter DEPTH=128, WIDTH=256) (
 | 
			
		||||
     logic [WIDTH-1:0] BitWriteMask;
 | 
			
		||||
     for (index=0; index < WIDTH; index++) 
 | 
			
		||||
       assign BitWriteMask[index] = bwe[index/8];
 | 
			
		||||
    TS1N28HPCPSVTB64X128M4SW sram1A (.CLK(clk), .CEB(~ce), .WEB(~we),
 | 
			
		||||
    ram1p1rwbe_64x128 sram1A (.CLK(clk), .CEB(~ce), .WEB(~we),
 | 
			
		||||
			      .A(addr), .D(din), 
 | 
			
		||||
			      .BWEB(~BitWriteMask), .Q(dout));
 | 
			
		||||
    
 | 
			
		||||
@ -69,15 +69,15 @@ module ram1p1rwbe #(parameter DEPTH=128, WIDTH=256) (
 | 
			
		||||
			      .A(addr), .D(din), 
 | 
			
		||||
			      .BWEB(~BitWriteMask), .Q(dout));
 | 
			
		||||
 | 
			
		||||
  end if (`USE_SRAM == 1 && WIDTH == 128 && DEPTH == 32) begin
 | 
			
		||||
  end else if (`USE_SRAM == 1 && WIDTH == 128 && DEPTH == 32) begin
 | 
			
		||||
     genvar index;
 | 
			
		||||
     // 64 x 128-bit SRAM
 | 
			
		||||
     logic [WIDTH-1:0] BitWriteMask;
 | 
			
		||||
     for (index=0; index < WIDTH; index++) 
 | 
			
		||||
       assign BitWriteMask[index] = bwe[index/8];
 | 
			
		||||
    TS1N28HPCPSVTB64X128M4SW sram1A (.CLK(clk), .CEB(~ce), .WEB(~we),
 | 
			
		||||
			      .A(addr), .D(din), 
 | 
			
		||||
			      .BWEB(~BitWriteMask), .Q(dout));
 | 
			
		||||
     ram1p1rwbe_128x128 sram1A (.CLK(clk), .CEB(~ce), .WEB(~we),
 | 
			
		||||
				.A(addr), .D(din), 
 | 
			
		||||
				.BWEB(~BitWriteMask), .Q(dout));
 | 
			
		||||
     
 | 
			
		||||
  end else if (`USE_SRAM == 1 && WIDTH == 22  && DEPTH == 32) begin
 | 
			
		||||
     genvar index;
 | 
			
		||||
@ -85,7 +85,7 @@ module ram1p1rwbe #(parameter DEPTH=128, WIDTH=256) (
 | 
			
		||||
     logic [WIDTH-1:0] BitWriteMask;
 | 
			
		||||
     for (index=0; index < WIDTH; index++) 
 | 
			
		||||
       assign BitWriteMask[index] = bwe[index/8];
 | 
			
		||||
     ram1p1rwbe_64x44 sram1B (.CLK(clk), .CEB(~ce), .WEB(~we),
 | 
			
		||||
     ram1p1rwbe_64x22 sram1B (.CLK(clk), .CEB(~ce), .WEB(~we),
 | 
			
		||||
			      .A(addr), .D(din), 
 | 
			
		||||
			      .BWEB(~BitWriteMask), .Q(dout));     
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -64,7 +64,7 @@ module ram2p1r1wbe #(parameter DEPTH=128, WIDTH=256) (
 | 
			
		||||
				  .QA(rd1),
 | 
			
		||||
				  .QB());
 | 
			
		||||
 | 
			
		||||
   end if (`USE_SRAM == 1 && WIDTH == 36 && DEPTH == 1024) begin
 | 
			
		||||
   end else if (`USE_SRAM == 1 && WIDTH == 36 && DEPTH == 1024) begin
 | 
			
		||||
   
 | 
			
		||||
      ram2p1r1wbe_1024x36 memory1(.CLKA(clk), .CLKB(clk), 
 | 
			
		||||
				  .CEBA(~ce1), .CEBB(~ce2),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user