data/full_repos/permissive/174008594/icestorm/up5k_6502_top.v
1: b"%Error: data/full_repos/permissive/174008594/icestorm/up5k_6502_top.v:25: Cannot find file containing module: 'SB_HFOSC'\n SB_HFOSC inthosc (\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/174008594/icestorm,data/full_repos/permissive/174008594/SB_HFOSC\n             data/full_repos/permissive/174008594/icestorm,data/full_repos/permissive/174008594/SB_HFOSC.v\n             data/full_repos/permissive/174008594/icestorm,data/full_repos/permissive/174008594/SB_HFOSC.sv\n             SB_HFOSC\n             SB_HFOSC.v\n             SB_HFOSC.sv\n             obj_dir/SB_HFOSC\n             obj_dir/SB_HFOSC.v\n             obj_dir/SB_HFOSC.sv\n%Error: data/full_repos/permissive/174008594/icestorm/up5k_6502_top.v:60: Cannot find file containing module: 'tst_6502'\n tst_6502 uut(\n ^~~~~~~~\n%Error: data/full_repos/permissive/174008594/icestorm/up5k_6502_top.v:74: Cannot find file containing module: 'SB_RGBA_DRV'\n SB_RGBA_DRV #(\n ^~~~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module up5k_6502_top(

    output [7:0] gpio_o,
    input [7:0] gpio_i,
    

    input RX,
    output TX,
	

    output tst_rst,
    output tst_clk,
    output tst_irq,
	

	output RGB0, RGB1, RGB2
);

	wire clk_48;

	SB_HFOSC inthosc (
		.CLKHFPU(1'b1),
		.CLKHFEN(1'b1),
		.CLKHF(clk_48)
	);
	

	reg [1:0] cnt;
	initial
        cnt <= 2'b00;
        
	always @(posedge clk_48)
	begin
        cnt <= cnt + 2'b01;
	end
    wire clk = cnt[1];
	

	reg [7:0] reset_cnt;
	reg reset;
	initial
        reset_cnt <= 8'h00;
    
	always @(posedge clk)
	begin
		if(reset_cnt != 8'hff)
        begin
            reset_cnt <= reset_cnt + 8'h01;
            reset <= 1'b1;
        end
        else
            reset <= 1'b0;
	end
    

	tst_6502 uut(
		.clk(clk),
		.reset(reset),
		
		.gpio_o(gpio_o),
		.gpio_i(gpio_i),
    
        .RX(RX),
        .TX(TX),
    
        .CPU_IRQ(tst_irq)
	);
    

	SB_RGBA_DRV #(
		.CURRENT_MODE("0b1"),
		.RGB0_CURRENT("0b000111"),
		.RGB1_CURRENT("0b000111"),
		.RGB2_CURRENT("0b000111")
	) RGBA_DRIVER (
		.CURREN(1'b1),
		.RGBLEDEN(1'b1),
		.RGB0PWM(~gpio_o[7]),
		.RGB1PWM(~gpio_o[6]),
		.RGB2PWM(~gpio_o[5]),
		.RGB0(RGB0),
		.RGB1(RGB1),
		.RGB2(RGB2)
	);
    

    assign tst_rst = reset;
    assign tst_clk = clk;
endmodule
module up5k_6502_top(

    output [7:0] gpio_o,
    input [7:0] gpio_i,
    

    input RX,
    output TX,
	

    output tst_rst,
    output tst_clk,
    output tst_irq,
	

	output RGB0, RGB1, RGB2
);


	wire clk_48;

	SB_HFOSC inthosc (
		.CLKHFPU(1'b1),
		.CLKHFEN(1'b1),
		.CLKHF(clk_48)
	);
	

	reg [1:0] cnt;
	initial
        cnt <= 2'b00;
        
	always @(posedge clk_48)
	begin
        cnt <= cnt + 2'b01;
	end
    wire clk = cnt[1];
	

	reg [7:0] reset_cnt;
	reg reset;
	initial
        reset_cnt <= 8'h00;
    
	always @(posedge clk)
	begin
		if(reset_cnt != 8'hff)
        begin
            reset_cnt <= reset_cnt + 8'h01;
            reset <= 1'b1;
        end
        else
            reset <= 1'b0;
	end
    

	tst_6502 uut(
		.clk(clk),
		.reset(reset),
		
		.gpio_o(gpio_o),
		.gpio_i(gpio_i),
    
        .RX(RX),
        .TX(TX),
    
        .CPU_IRQ(tst_irq)
	);
    

	SB_RGBA_DRV #(
		.CURRENT_MODE("0b1"),
		.RGB0_CURRENT("0b000111"),
		.RGB1_CURRENT("0b000111"),
		.RGB2_CURRENT("0b000111")
	) RGBA_DRIVER (
		.CURREN(1'b1),
		.RGBLEDEN(1'b1),
		.RGB0PWM(~gpio_o[7]),
		.RGB1PWM(~gpio_o[6]),
		.RGB2PWM(~gpio_o[5]),
		.RGB0(RGB0),
		.RGB1(RGB1),
		.RGB2(RGB2)
	);
    

    assign tst_rst = reset;
    assign tst_clk = clk;
endmodule