data/full_repos/permissive/112823543/Avalon_LedPanel _Client_Server/LedPanelClient.v
1: b'%Error: Cannot find file containing module: _Client_Server,data/full_repos/permissive/112823543\n        ... Looked in:\n             data/full_repos/permissive/112823543/Avalon_LedPanel/_Client_Server,data/full_repos/permissive/112823543\n             data/full_repos/permissive/112823543/Avalon_LedPanel/_Client_Server,data/full_repos/permissive/112823543.v\n             data/full_repos/permissive/112823543/Avalon_LedPanel/_Client_Server,data/full_repos/permissive/112823543.sv\n             _Client_Server,data/full_repos/permissive/112823543\n             _Client_Server,data/full_repos/permissive/112823543.v\n             _Client_Server,data/full_repos/permissive/112823543.sv\n             obj_dir/_Client_Server,data/full_repos/permissive/112823543\n             obj_dir/_Client_Server,data/full_repos/permissive/112823543.v\n             obj_dir/_Client_Server,data/full_repos/permissive/112823543.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/112823543/Avalon_LedPanel\n%Error: Cannot find file containing module: _Client_Server/LedPanelClient.v\n%Error: Exiting due to 3 error(s)\n'
module LedPanelClient(
    input   wire        CLK,
    input   wire        RST,
    output  wire [1:0]  RED,
    output  wire [1:0]  GREEN,
    output  wire [1:0]  BLUE,
    output  wire [3:0]  ADDR,
    output  wire        CLK_LED,
    output  wire        BLANK,
    output  wire        LATCH,
    
    input   wire [DISPLAY_ROWS_LINES + DISPLAY_COLS_LINES:0]   memAddrIn,
    input   wire [23:0] memDataIn,
	input   wire		memWrite,

    input   wire [COLOR_BITS-1:0]   gammaAddrIn,
    input   wire [3*COLOR_BITS-1:0]   gammaDataIn,
    output  wire [3*COLOR_BITS-1:0]   gammaDataOut,
    input   wire                    gammaWrite,
    input   wire                    gammaRead,

    input  wire			backbufferMst,
    input  wire  [DISPLAY_ROWS_LINES + DISPLAY_COLS_LINES-1:0]  memAddrMst,
    input  wire [2:0]    bitplaneMst,


    input  wire [3:0]    ADDR_MST,
    input  wire          CLK_LED_MST,
    input  wire          BLANK_MST,
    input  wire          LATCH_MST
    );
	 
	parameter COLOR_BITS = 8;
	parameter DISPLAY_ROWS_LINES = 4;
	parameter DISPLAY_COLS_LINES = 6;
    
    wire [COLOR_BITS-1:0]   redUpper, redLower, greenUpper, greenLower, blueUpper, blueLower;
	 
    assign RED[0]   = redUpper[bitplaneMst];
    assign RED[1]   = redLower[bitplaneMst];
    assign GREEN[0] = greenUpper[bitplaneMst];
    assign GREEN[1] = greenLower[bitplaneMst];
    assign BLUE[0]  = blueUpper[bitplaneMst];
    assign BLUE[1]  = blueLower[bitplaneMst];


	wire						memUpperCS = (!memAddrIn[DISPLAY_ROWS_LINES+DISPLAY_COLS_LINES] && memWrite) ? 1'b1 : 1'b0;
	wire						memLowerCS = ( memAddrIn[DISPLAY_ROWS_LINES+DISPLAY_COLS_LINES] && memWrite) ? 1'b1 : 1'b0;


    assign ADDR  = ADDR_MST;
    assign CLK_LED = CLK_LED_MST;
    assign BLANK = BLANK_MST;
    assign LATCH = LATCH_MST;



	 LedPanelMemory	#(
		.ADDR_LINES(DISPLAY_ROWS_LINES + DISPLAY_COLS_LINES+1), 
		.COLOR_BITS(COLOR_BITS)
	 ) UpperMemory (
		.clock(CLK),
		.reset(RST),
		
		.Address_a({backbufferMst, memAddrIn[DISPLAY_ROWS_LINES+DISPLAY_COLS_LINES-1:0]}),
		.DataIn_a(memDataIn),
		.Write_a(memUpperCS),

        .Address_gamma(gammaAddrIn),
        .DataIn_gamma(gammaDataIn),
        .DataOut_gamma(gammaDataOut),
        .Write_gamma(gammaWrite),
        .Read_gamma(gammaRead),
		
		.Address_b({!backbufferMst, memAddrMst}),
        .RedOut_b(redUpper),
        .GreenOut_b(greenUpper),
        .BlueOut_b(blueUpper)
	 );

	 LedPanelMemory	#(
		.ADDR_LINES(DISPLAY_ROWS_LINES + DISPLAY_COLS_LINES+1), 
		.COLOR_BITS(COLOR_BITS)
	 ) LowerMemory (
		.clock(CLK),
		.reset(RST),
		
		.Address_a({backbufferMst, memAddrIn[DISPLAY_ROWS_LINES+DISPLAY_COLS_LINES-1:0]}),
		.DataIn_a(memDataIn),
		.Write_a(memLowerCS),

        .Address_gamma(gammaAddrIn),
        .DataIn_gamma(gammaDataIn),
        .DataOut_gamma(),
        .Write_gamma(gammaWrite),
        .Read_gamma(1'b0),

		.Address_b({!backbufferMst, memAddrMst}),
        .RedOut_b(redLower),
        .GreenOut_b(greenLower),
        .BlueOut_b(blueLower)
	 );
	 
endmodule
module LedPanelClient(
    input   wire        CLK,
    input   wire        RST,
    output  wire [1:0]  RED,
    output  wire [1:0]  GREEN,
    output  wire [1:0]  BLUE,
    output  wire [3:0]  ADDR,
    output  wire        CLK_LED,
    output  wire        BLANK,
    output  wire        LATCH,
    
    input   wire [DISPLAY_ROWS_LINES + DISPLAY_COLS_LINES:0]   memAddrIn,
    input   wire [23:0] memDataIn,
	input   wire		memWrite,

    input   wire [COLOR_BITS-1:0]   gammaAddrIn,
    input   wire [3*COLOR_BITS-1:0]   gammaDataIn,
    output  wire [3*COLOR_BITS-1:0]   gammaDataOut,
    input   wire                    gammaWrite,
    input   wire                    gammaRead,

    input  wire			backbufferMst,
    input  wire  [DISPLAY_ROWS_LINES + DISPLAY_COLS_LINES-1:0]  memAddrMst,
    input  wire [2:0]    bitplaneMst,


    input  wire [3:0]    ADDR_MST,
    input  wire          CLK_LED_MST,
    input  wire          BLANK_MST,
    input  wire          LATCH_MST
    );

	 
	parameter COLOR_BITS = 8;
	parameter DISPLAY_ROWS_LINES = 4;
	parameter DISPLAY_COLS_LINES = 6;
    
    wire [COLOR_BITS-1:0]   redUpper, redLower, greenUpper, greenLower, blueUpper, blueLower;
	 
    assign RED[0]   = redUpper[bitplaneMst];
    assign RED[1]   = redLower[bitplaneMst];
    assign GREEN[0] = greenUpper[bitplaneMst];
    assign GREEN[1] = greenLower[bitplaneMst];
    assign BLUE[0]  = blueUpper[bitplaneMst];
    assign BLUE[1]  = blueLower[bitplaneMst];


	wire						memUpperCS = (!memAddrIn[DISPLAY_ROWS_LINES+DISPLAY_COLS_LINES] && memWrite) ? 1'b1 : 1'b0;
	wire						memLowerCS = ( memAddrIn[DISPLAY_ROWS_LINES+DISPLAY_COLS_LINES] && memWrite) ? 1'b1 : 1'b0;


    assign ADDR  = ADDR_MST;
    assign CLK_LED = CLK_LED_MST;
    assign BLANK = BLANK_MST;
    assign LATCH = LATCH_MST;



	 LedPanelMemory	#(
		.ADDR_LINES(DISPLAY_ROWS_LINES + DISPLAY_COLS_LINES+1), 
		.COLOR_BITS(COLOR_BITS)
	 ) UpperMemory (
		.clock(CLK),
		.reset(RST),
		
		.Address_a({backbufferMst, memAddrIn[DISPLAY_ROWS_LINES+DISPLAY_COLS_LINES-1:0]}),
		.DataIn_a(memDataIn),
		.Write_a(memUpperCS),

        .Address_gamma(gammaAddrIn),
        .DataIn_gamma(gammaDataIn),
        .DataOut_gamma(gammaDataOut),
        .Write_gamma(gammaWrite),
        .Read_gamma(gammaRead),
		
		.Address_b({!backbufferMst, memAddrMst}),
        .RedOut_b(redUpper),
        .GreenOut_b(greenUpper),
        .BlueOut_b(blueUpper)
	 );

	 LedPanelMemory	#(
		.ADDR_LINES(DISPLAY_ROWS_LINES + DISPLAY_COLS_LINES+1), 
		.COLOR_BITS(COLOR_BITS)
	 ) LowerMemory (
		.clock(CLK),
		.reset(RST),
		
		.Address_a({backbufferMst, memAddrIn[DISPLAY_ROWS_LINES+DISPLAY_COLS_LINES-1:0]}),
		.DataIn_a(memDataIn),
		.Write_a(memLowerCS),

        .Address_gamma(gammaAddrIn),
        .DataIn_gamma(gammaDataIn),
        .DataOut_gamma(),
        .Write_gamma(gammaWrite),
        .Read_gamma(1'b0),

		.Address_b({!backbufferMst, memAddrMst}),
        .RedOut_b(redLower),
        .GreenOut_b(greenLower),
        .BlueOut_b(blueLower)
	 );
	 
endmodule