data/full_repos/permissive/174263347/crtv10/hdl/crt_sys.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b"%Error: data/full_repos/permissive/174263347/crtv10/hdl/crt_sys.v:9: syntax error, unexpected ')', expecting IDENTIFIER or do or final\nmodule crt_sys (clk, _reset, db, ds, as, _wr, ma, md,  _mcs, _mrd, _mwr, med_res, pixel, csync, a, b, hsync_in, vsync_in, extsyncon, int);\n                                                                                                                                        ^\n%Error: data/full_repos/permissive/174263347/crtv10/hdl/crt_sys.v:54: syntax error, unexpected assign\n    assign reset    = ~_reset;\n    ^~~~~~\n%Error: Exiting due to 2 error(s)\n"
module crt_sys (clk, _reset, db, ds, as, _wr, ma, md,  _mcs, _mrd, _mwr, med_res, pixel, csync, a, b, hsync_in, vsync_in, extsyncon, int);



    input           clk, _reset;
    inout   [7:0]   db;
    input           ds, as, _wr;
    input           med_res;
    output  [3:0]   pixel;
    output  [19:0]  ma;
    inout   [7:0]   md;
    output          _mcs, _mrd, _mwr;
    output          csync;
    input   [3:0]   a,b;
    input           hsync_in, vsync_in;
    input           extsyncon;
    output          int;



    wire            reset;
    wire            pxclk;
    wire            video_data_latch;
    wire    [7:0]   video_data_in;
    wire            href;
	wire	[9:0]	hcnt;
	wire	[8:0]	vcnt;
	wire 	[7:0] 	cpu_to_mem,
                    mem_to_cpu;
   	wire 	[19:0] 	cpu_address;
	wire 	[6:0] 	page;
    wire            mem_cs, mem_rd,
                    mem_wr;     
    wire            bus_dir_out;
    wire            db_dir_out;
	wire			wr;
	wire			hsync, vsync;
    wire            onemks;
    wire            mem_hold;
    wire            excsync;
    wire            intcsync;
	wire 			extnoice;



    assign reset    = ~_reset;
    assign wr       = ~_wr;
    assign intcsync = (hsync ^ vsync);
    assign csync    = extsyncon ? excsync : intcsync;
    assign int      =  vsync;



    assign extnoice = vcnt[0] ^ vcnt[5] ^ hcnt[0] ^ hcnt[5] ^ md[3] ^ md[5] ^ hsync_in ^ vsync_in;



    crt_clock ob_clock    ( clk, reset, pxclk,  med_res, onemks );


        
    crt_pix   ob_crt_pix  ( clk, reset, pxclk,  video_data_in, 
                                                video_data_latch, 
                                                ~href, 
                                                pixel );



    crt_scan  ob_crt_scan ( clk, reset, pxclk,  med_res, 
                                                video_data_latch, 
                                                hcnt, 
                                                vcnt, 
                                                href, 
                                                hsync, 
                                                vsync);



    crt_cpu   ob_crt_cpu  ( clk, reset,         db, 
                                                as, 
                                                ds, 
                                                wr, 
                                                mem_to_cpu, 
                                                cpu_to_mem, 
                                                cpu_address, 
                                                mem_hold, 
                                                page,
                                                onemks,
                                                a,
                                                b,
												hsync_in, 
												vsync_in,
												extnoice);



    crt_mem   ob_crt_mem  ( clk, reset,         video_data_latch, 
                                                href, 
                                                { page, vcnt[5:0], hcnt[7:1] }, 
                                                video_data_in, 
                                                cpu_address, 
                                                cpu_to_mem, 
                                                mem_to_cpu,
                                                mem_hold, 
                                                wr, 
                                                ds,
                                                md, 
                                                ma, 
                                                _mcs, 
                                                _mwr, 
                                                _mrd);



    crt_syncsinv ob_crt_syncsinv(clk, reset, onemks, hsync_in, vsync_in, excsync);

endmodule
module crt_sys (clk, _reset, db, ds, as, _wr, ma, md,  _mcs, _mrd, _mwr, med_res, pixel, csync, a, b, hsync_in, vsync_in, extsyncon, int);




    input           clk, _reset;
    inout   [7:0]   db;
    input           ds, as, _wr;
    input           med_res;
    output  [3:0]   pixel;
    output  [19:0]  ma;
    inout   [7:0]   md;
    output          _mcs, _mrd, _mwr;
    output          csync;
    input   [3:0]   a,b;
    input           hsync_in, vsync_in;
    input           extsyncon;
    output          int;



    wire            reset;
    wire            pxclk;
    wire            video_data_latch;
    wire    [7:0]   video_data_in;
    wire            href;
	wire	[9:0]	hcnt;
	wire	[8:0]	vcnt;
	wire 	[7:0] 	cpu_to_mem,
                    mem_to_cpu;
   	wire 	[19:0] 	cpu_address;
	wire 	[6:0] 	page;
    wire            mem_cs, mem_rd,
                    mem_wr;     
    wire            bus_dir_out;
    wire            db_dir_out;
	wire			wr;
	wire			hsync, vsync;
    wire            onemks;
    wire            mem_hold;
    wire            excsync;
    wire            intcsync;
	wire 			extnoice;



    assign reset    = ~_reset;
    assign wr       = ~_wr;
    assign intcsync = (hsync ^ vsync);
    assign csync    = extsyncon ? excsync : intcsync;
    assign int      =  vsync;



    assign extnoice = vcnt[0] ^ vcnt[5] ^ hcnt[0] ^ hcnt[5] ^ md[3] ^ md[5] ^ hsync_in ^ vsync_in;



    crt_clock ob_clock    ( clk, reset, pxclk,  med_res, onemks );


        
    crt_pix   ob_crt_pix  ( clk, reset, pxclk,  video_data_in, 
                                                video_data_latch, 
                                                ~href, 
                                                pixel );



    crt_scan  ob_crt_scan ( clk, reset, pxclk,  med_res, 
                                                video_data_latch, 
                                                hcnt, 
                                                vcnt, 
                                                href, 
                                                hsync, 
                                                vsync);



    crt_cpu   ob_crt_cpu  ( clk, reset,         db, 
                                                as, 
                                                ds, 
                                                wr, 
                                                mem_to_cpu, 
                                                cpu_to_mem, 
                                                cpu_address, 
                                                mem_hold, 
                                                page,
                                                onemks,
                                                a,
                                                b,
												hsync_in, 
												vsync_in,
												extnoice);



    crt_mem   ob_crt_mem  ( clk, reset,         video_data_latch, 
                                                href, 
                                                { page, vcnt[5:0], hcnt[7:1] }, 
                                                video_data_in, 
                                                cpu_address, 
                                                cpu_to_mem, 
                                                mem_to_cpu,
                                                mem_hold, 
                                                wr, 
                                                ds,
                                                md, 
                                                ma, 
                                                _mcs, 
                                                _mwr, 
                                                _mrd);



    crt_syncsinv ob_crt_syncsinv(clk, reset, onemks, hsync_in, vsync_in, excsync);

endmodule